When building a production build I get this error:
scripts/main_0282ea08.js from UglifyJs
Unexpected token: operator (>) [scripts/main_0282ea08.js:471,43]
The issue comes from this import:
import Swiper from 'swiper';
This issue seems to be related to
But no jsx files are currently used and the proposed fixes either don’t work (!babel) or don’t apply (comment out exclude for jsx).
I cannot find a babel-specific webpack loader, instead I found buble which seems to be a lightweight replacement for ES-style imports. Uglifyjs is installed (2.x) and some report that updating it to v3.x resolves the issue. For this I need to know first, what exactly is using uglifyjs during the webpack build.