-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error from UglifyJS #8
Comments
I don't see any ES6 stuff in the lib directory. Can you provide your webpack configuration? |
I'm using Roots Sage, you can see the webpack configuration here: https://github.com/roots/sage/tree/9.0.0-beta.4/resources/assets/build |
I installed a test project using the vue-cli (which uses webpack internally) and did not encounter an issue running and doing a production build with polymorph-js. I can safely rule out that polymorph is built incorrectly. What version of polymorph are you currently using? The current version is 0.2.2. Better yet, please provide your package.json. Perhaps this is an issue with a particular version of webpack? |
I'm using 0.2.2. Here is my package.json { |
I think this might be an issue with that particular version of webpack + the uglify plugin: webpack-contrib/uglifyjs-webpack-plugin#78 (comment) The resolution I see in those is to upgrade webpack or the plugin. Alternatively, the npm package ships with a dist folder. You can configure webpack to alias |
Closing due to inactivity. If you are still having issues, please reopen this with further details. |
Hi,
When I run this package through Webpack and through Uglify JS I am getting the following error:
Unexpected token name «key», expected punc «;»
I think it has to do with the ES5/6 compatibility.
Thanks
Rob
The text was updated successfully, but these errors were encountered: