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

Code Doesn't Compile #3

Open
HoldOffHunger opened this issue Aug 21, 2017 · 2 comments
Open

Code Doesn't Compile #3

HoldOffHunger opened this issue Aug 21, 2017 · 2 comments

Comments

@HoldOffHunger
Copy link

Hi, there,

It seems that the code does not compile in serialize-json.

static/js/main.7ceea777.js from UglifyJs
Unexpected token: name (JSONDecoder) [./~/serialize-json/lib/decoder.js:21,0][static/js/main.7ceea777.js:55947,6]

Thanks!

@HoldOffHunger
Copy link
Author

Just a note, to others who find themselves stuck on this problem:

The following NPM package turned out to be optimal for my solution: https://www.npmjs.com/package/json-cycle

@krasimir
Copy link

The problem is that the decoder file uses class keyword which uglify can not understand. The module needs to be bundled via webpack or something like this so it gets transpiled to ES5.

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