Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于rollup打包被tree-shaking的问题 #27

Open
Alfred-Skyblue opened this issue Dec 29, 2021 · 0 comments
Open

关于rollup打包被tree-shaking的问题 #27

Alfred-Skyblue opened this issue Dec 29, 2021 · 0 comments

Comments

@Alfred-Skyblue
Copy link

rollup打包的时候,需要按需导入主题配置,因为是静态资源,并没有导入什么方法之类的东西,所以打包的时候被tree-shaking掉了,有没有什么办法规避这个问题?
require('codemirror/mode/javascript/javascript')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant