sagold / json-schema-library

Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation
MIT License
175 stars 18 forks source link

ESM-Bundle for using in browser #29

Closed lqdchrm closed 7 months ago

lqdchrm commented 1 year ago

Thanks a lot for this library, which I plan to use for model-validation in the browser.

Currently I'm a bit stuck, because I can't use the es6-bundle inside dist/module. The generated code imports files without file-extension .js, but this would be needed for browser imports.

Ideally, everything would be bundles into a single jsonSchemaLibrary.esm.min.js.

I can give it a try and add a bundle-script in package.json using esbuild.

sagold commented 7 months ago

Closing this along with https://github.com/sagold/json-schema-library/issues/51. Thank you for your efforts @lqdchrm!