This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一、为Create-react-app项目配置支持绝对路径引入模块 | |
Messing around I just found one setting that works without craco for the absolute paths: | |
1 - Update .env file to NODE_PATH=./; | |
2 - Create one tsconfig.paths.json: | |
{ | |
"compilerOptions": { |
OlderNewer