Closed gijo-varghese closed 6 years ago
I don't know much about Rollup sorry, let's ask @chimon2000 who contributed to this branch
This happened to me on the webpack build
ERROR in my-vue-component.js from UglifyJs Unexpected token: punc (()
UglifyJs did not seem to understand the ES2015 Enhanced Object Literal syntax. The second line where a method is declared.
methods: { share ($event) { window.alert('Share on ' + $event.target.innerHTML); }
I have node 8 and npm 5.5.1
I don't understand Babel well enough to figure it out yet. Maybe it needs a .babelrc file or an update to babel-preset-env.
I fixed this by adding a .babelrc file with the following content:
{ "presets": [ ["es2015", {"modules": false}] ] }
This was with the webpack build.
would you please send a PR ?
Just merged this commit to master
and added .babelrc
to branch rollup
I'm getting the following error when I run :
npm run dev