1.配置
tsconfig.json中加入如下配置
{
  "compilerOptions": {
    "baseUrl": "src"
  },
  "include": ["src"]
}
2.而后便可以相对于src路径引入
不再需要 ../../../繁琐模式
import { modulList, commonKeyList, secondTable, list } from 'package/constant'
                
            
                        
                        cra引入文件非全称
                    
                        
                        hoc高阶组件