import.meta.glob
与 rollupOptions.external
同时使用会将原始代码 import 到编译后的 js中
#18576
Unanswered
WangJincheng4869
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rollupOptions.external
配置了排除掉了src/test/
下的文件src/test
目录下存在一些路由,我在 index 中 进行了动态加载,使用到了import.meta.glob
import.meta.glob
的内容会出现在编译后的源码中路由 index.ts
Beta Was this translation helpful? Give feedback.
All reactions