Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

ES6 syntax #2

Open
felipemsantana opened this issue May 9, 2018 · 2 comments
Open

ES6 syntax #2

felipemsantana opened this issue May 9, 2018 · 2 comments

Comments

@felipemsantana
Copy link

The usage of ES6 syntax in this lib is breaking in UglifyJS when bundling in webpack

ERROR in app-7d11380495e59eb43349.js from UglifyJs
SyntaxError: Name expected [app-7d11380495e59eb43349.js:132037,46]

And would fail to be parsed in old browsers

@searls
Copy link
Member

searls commented May 9, 2018

What's the issue? I'd welcome a PR to fix this issue.

For what it's worth, this library is meant to support Node 6 & up and current versions of the evergreen browsers.

@felipemsantana
Copy link
Author

It is not possible use this lib in webpack < 4
https://stackoverflow.com/questions/45870467/error-in-bundle-js-from-uglifyjs-name-expected

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants