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

Webpack build error #8

Closed
iabok opened this issue Sep 20, 2018 · 4 comments
Closed

Webpack build error #8

iabok opened this issue Sep 20, 2018 · 4 comments

Comments

@iabok
Copy link

iabok commented Sep 20, 2018

Each time i run a production build, the build fails on Vue-cache module with this error.
UglifyJs Unexpected token: operator (>) [./node_modules/vuex-cache/index.module.js:1,0][app.js:43610,17]

@iabok iabok changed the title Wepack build error Webpack build error Sep 20, 2018
@VitorLuizC
Copy link
Collaborator

module bundle uses es2015 syntax. You can bundle it down before minify or use something like babel-minify instead

@VitorLuizC
Copy link
Collaborator

You can also target index.umd.js module, which is bundled as ES5

@iabok
Copy link
Author

iabok commented Oct 1, 2018

Thank you.

@superwf
Copy link
Owner

superwf commented Oct 11, 2018

thanks @VitorLuizC

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

3 participants