Skip to content
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

v3 breaks Webpack / UglifyJS bundling process #35

Closed
natorojr opened this issue Jan 13, 2017 · 1 comment
Closed

v3 breaks Webpack / UglifyJS bundling process #35

natorojr opened this issue Jan 13, 2017 · 1 comment

Comments

@natorojr
Copy link

I've been using the stringify-object package for quite some time in both my Node projects and Web projects. Recently, I upgraded from v2.4.0 to v3.1.0 and that broke my Webpack build process as follows:

ERROR in app.22a5f0a6.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [../~/stringify-object/index.js:6,0]

Seems like this line is the culprit.

If I change that line to regular function syntax notation (instead of ES6 arrow syntax), it seems to fix the problem.

Any ideas why Uglify would complain there?

I use stringify-object heavily for debugging purposes throughout my projects, so I'd love to get this fixed.

@sindresorhus
Copy link
Owner

Uglify doesn't support ES2015. It's up to you to transpile with Babel or stay at the older version.

Explanation: sindresorhus/file-type#70 (comment)

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

No branches or pull requests

2 participants