KilledByAPixel / JSONCrush

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

Update package.json #22

Closed odama626 closed 2 years ago

odama626 commented 2 years ago

since its in esm syntax, using type: module is required

KilledByAPixel commented 2 years ago

Ok thanks! I don't know too much about this stuff so let me know if it's working.

odama626 commented 2 years ago

without it it shows up like this in vite

Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
Unexpected token 'export'
node_modules/.pnpm/jsoncrush@1.1.6/node_modules/jsoncrush/JSONCrush.js:7
export default
^^^^^^
SyntaxError: Unexpected token 'export

I have it modified in my node_modules currently to get it to work, would you mind releasing a version with this change?

KilledByAPixel commented 2 years ago

Ok, just published 1.1.8, should be good, let me know if that works for you.