superwf / vuex-cache

cache vuex action when dispatch
MIT License
510 stars 32 forks source link

Webpack build error #8

Closed iabok closed 6 years ago

iabok commented 6 years ago

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]

VitorLuizC commented 6 years ago

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

VitorLuizC commented 6 years ago

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

iabok commented 6 years ago

Thank you.

superwf commented 6 years ago

thanks @VitorLuizC