Banno / polymer-webpack-loader

WebPack Loader for Polymer Web Components
MIT License
192 stars 48 forks source link

Cannot uglify the bundle #75

Closed nicolasmoise closed 6 years ago

nicolasmoise commented 6 years ago

Putting a plugins: [new webpack.optimize.UglifyJsPlugin()] breaks the build with the following message

ERROR in main.js from UglifyJs
    Unexpected token: name (dedupeId)

Because you cannot uglify ES2015.

ChadKillingsworth commented 6 years ago

This is known - you need a transpiler. See the demo:

https://github.com/webpack-contrib/polymer-webpack-loader/blob/master/demo/webpack.config.js#L40-L46