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

在chunk中出现了 default 关键字。 #38

Closed
gagayang opened this issue Aug 26, 2016 · 2 comments
Closed

在chunk中出现了 default 关键字。 #38

gagayang opened this issue Aug 26, 2016 · 2 comments

Comments

@gagayang
Copy link

我已经使用了es3ify-loader但是在 chunk文件中还是发现有default 关键字。这个问题怎么解决呢

@xcatliu
Copy link
Owner

xcatliu commented Aug 26, 2016

简单的方式可以用 uglifyjs 压缩,压缩之后就没有 default 关键字了
复杂的方式就慢慢 debug 看看为什么会还有 default

@gagayang
Copy link
Author

恩 我试试 我用es3ify-loader 之后发现 主文件是没有default关键字了,但是渐进加载的chunk还是有。我先压缩混淆下试试。谢谢了

@xcatliu xcatliu closed this as completed Oct 19, 2016
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