Replies: 1 comment
-
这是一个非常好的问题,但其实文档也讲的非常明白 而目前我们的工程模板并不一定会有以上问题。可以根据自己的代码规范来调整相应代码,使用桶文件能更好的规范导入路径以及管理目录下的代码文件,当然,凡事都要适量嘛 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://cn.vitejs.dev/guide/performance.html#avoid-barrel-files
其中提到的避免使用桶文件和导入时添加文件后缀以减少解析操作
这个工程里貌似都没处理 以后工程代码量大起来后会出问题吗?
Beta Was this translation helpful? Give feedback.
All reactions