Seb-L / pinia-plugin-persist

Persist pinia state data in sessionStorage or other storages.
https://Seb-L.github.io/pinia-plugin-persist/
MIT License
214 stars 37 forks source link

Add the documented "type": "module" flag line to package.json, #51

Open narration-sd opened 2 years ago

narration-sd commented 2 years ago

so that ESM module files (.mjs) can successfully import this package, while keeping the .js extension. This feature was added to Nodejs at v12.0.0. Documented to present here, widely needed and used.

craigrileyuk commented 1 year ago

Second this.

Not having this line is breaking my SSR build which imports this plugin.