KilledByAPixel / JSONCrush

Compress JSON into URL friendly strings
https://killedbyapixel.github.io/JSONCrush
MIT License
1.57k stars 45 forks source link

Feature/Build an ES Module #10

Closed wchen-obj closed 3 years ago

wchen-obj commented 3 years ago

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

KilledByAPixel commented 3 years ago

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

wchen-obj commented 3 years ago

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 https://github.com/facebook/jest/issues/2081

KilledByAPixel commented 3 years ago

Modules are added!