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

node_modules/warning/warning.js does not provide an export named 'default' #61

Open
baiyuxiong opened this issue Jun 16, 2021 · 2 comments

Comments

@baiyuxiong
Copy link

image
run dev加了external报错:
node_modules/warning/warning.js does not provide an export named 'default'

@ci010
Copy link
Owner

ci010 commented Jun 22, 2021

external 是让 rollup 跳过这些 deps,在 production 中不 bundle 他们。
其实vue,vuex,等vue的应该不需要external吧,除非你需要在 main process 那边访问他们。

@baiyuxiong
Copy link
Author

external 是让 rollup 跳过这些 deps,在 production 中不 bundle 他们。
其实vue,vuex,等vue的应该不需要external吧,除非你需要在 main process 那边访问他们。

嗯,文档可以完善一下这个部分的说明。要不然每个人都得踩一下坑,还得研究打包的源码

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

2 participants