-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token: operator (>) from UglifyJs #459
Comments
Please ask questions on the forum or StackOverflow. It'll be easier if you share your project code too |
Zysce
changed the title
ES6 syntax is not transpiled from import in Vue file
Unexpected token: operator (>) from UglifyJs
May 10, 2017
This was referenced Jun 1, 2020
This was referenced Apr 13, 2021
This was referenced Apr 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have 2 Vue-Cli webpack projects (ClientApp and Lib).
Lib is my components library (shared with other projects)
Problem
When I build my project ClientApp
npm run build
, I have the following error:Questions
It seems like the error comes from an arrow function in the file
escape-key.js
.This is ES6 syntax and UglifyJS can't parse this.
Shouldn't Babel go first, before Uglify?
Note that is works well with
*.vue
files.Project structure
ClientApp's webpack.base.conf.js file
Note there is an alias to Lib.
Please feel free to ask for more details if required.
The text was updated successfully, but these errors were encountered: