Join GitHub today
Importing Accordion.js into Webpack2 build isn't Uglifying #1969
Recently the build of my project breaks when it is building a bundle.js. Uglifying fails. The error is:
Steps to reproduce the issue
Hey, sorry for the late reply here... I'm guessing this might be an issue with babel/webpack configuration--judging by the unexpected character it's running into, it might not be transpiling the code to es5 before passing it on to uglify? Another way to determine this may be by not uglifying it and checking the output--if it contains string template literals (search for the backtick character) then it likely hasn't been transpiled to es5.
Based on the module rule you provided, it seems like it should be transpiled to es5, but webpack/babel can be extremely finicky about configuration; I've spent hours debugging my own configurations, unfortunately.
If you need further help, could you upload a ZIP file containing a minimum project that reproduces the error?