React-id-swiper: Unexpected token: name 芦Dom7禄, expected: punc 芦;禄

Created on 29 Jul 2019  路  8Comments  路  Source: kidjp85/react-id-swiper

when I build the project, the error is appeard.
I only use the component with the normal config.

Most helpful comment

I fixed this with switching UglifyJS with TerserPlugin

Below is my options.

javascript optimization: { minimizer: [ new TerserPlugin({ parallel: true, cache: true, extractComments: true, terserOptions: { ecma: 5, ie8: false, compress: true, warnings: true, }, }), ],

All 8 comments

js/3.bundle.js from UglifyJs

When the project build with UglifyJs, Unexpected token

@codeSnipe Same here! project unable to compile with UglifyJs.

If you remove uglifyjs from webpack config. Then compilation works but other issues occur.

any updates on this issues???

I fixed this with switching UglifyJS with TerserPlugin

Below is my options.

javascript optimization: { minimizer: [ new TerserPlugin({ parallel: true, cache: true, extractComments: true, terserOptions: { ecma: 5, ie8: false, compress: true, warnings: true, }, }), ],

I ran into this issue. Is switching to terser the only way? Currently I'm trying to exclude the folder but it seems not to work.

Ok nevermind. Here is the explanation: https://github.com/mishoo/UglifyJS2/issues/659#issuecomment-447820525

right the solution with switching is just a cheep workaround.

Yes, i ended up staying with uglify and running dom7 and swiper through babel first. I kinda like that it breaks because it warns me for errors that otherwise we would only see after building when testing IE.

Was this page helpful?
0 / 5 - 0 ratings