Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/Build an ES Module #10

Closed
wants to merge 1 commit into from

Conversation

wchen-obj
Copy link

Introduce babel to compile a ES syntax module into ES2015 syntax.

When I import JSONCrush into a react APP and run npm test the test fail.
Jest encountered an unexpected token

Precompile es module
@KilledByAPixel
Copy link
Owner

What was the token? Can you find any more info?

@wchen-obj
Copy link
Author

It is not related to specific token but import a ES6 syntax module into react app and run test.
https://stackoverflow.com/a/52870851
https://stackoverflow.com/a/55526344
jestjs/jest#2081

@KilledByAPixel
Copy link
Owner

Modules are added!

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

Successfully merging this pull request may close these issues.

2 participants