feat(persist): add 'exports' field for proper ESM/CJS resolution (#4611)
* feat(persist): add 'exports' field for proper ESM/CJS resolution
What: add "exports" field to package.json, mapping ESM to ./dist/module.esm.js and CJS to ./dist/module.cjs.js
Why: tools like Vite default to main when exports is absent, causing CJS to be used in dev server and breaking default export detection.
How: update package.json, built & tested locally with Vite and Node (import/require).
Backward compatibility: keeps existing main & module fields.
* Format package.json