I am trying to use UglifyJS to minimize/compress my bundle.js
file. When I run webpack -p
, I am getting the following:
ERROR in bundle.js from UglifyJs
Name expected [bundle.js:105519,6]
Line 105519 is as follows:
const {M, l, pattern} = __webpack_require__(862)
.
I am using React w/ ES6. Any thoughts as to what is wrong?