Error running tests: Unexpected token: punc ()
[issue link]I’m having trouble running tests on the latest dev branch. Multiple errors like below:
ERROR in pages/async-data.d75fdc644a911e620031.js from UglifyJs
Unexpected token: punc (() [pages/async-data.d75fdc644a911e620031.js:25,11]
I’ve tried following the suggestion below (using uglifyjs-webpack-plugin) but it still fails, I think this has to be something to do with babel. Has anything changed with webpack setup recently? Should there be a .babelrc file?
https://stackoverflow.com/questions/42375468/uglify-syntaxerror-unexpected-token-punc