ajv icon indicating copy to clipboard operation
ajv copied to clipboard

Add module to package.json

Open denisx opened this issue 1 year ago • 3 comments

What issue does this pull request resolve?

To emulate esm build, you need couple thing at package.json: module and sideeffects

What changes did you make?

Bundlers will cut unused code better then now. Goog for named imports.

denisx avatar Dec 05 '24 15:12 denisx

@eventualbuddha @Delapouite hello here! )

denisx avatar Dec 05 '24 15:12 denisx

Thanks for your contribution @denisx. This change seems to be correct to me, just give me some time to double check.

jasoniangreen avatar Dec 09 '24 22:12 jasoniangreen

@jasoniangreen Thanks again for maintaining Ajv! With ESM support, this PR removes the need for interop shims and enables much cleaner imports, especially as projects move toward Node’s ESM defaults. Excited to see it land.

michaelgiraldo avatar Oct 03 '25 16:10 michaelgiraldo