Bundle browser version in NPM package
Is there any possibility of distributing the browser version of Saxon-JS in the NPM module?
For context, the package.json may include a
browser attribute, that specifies a browser package that web bundlers may use when the library is imported. https://docs.npmjs.com/cli/v7/configuring-npm/package-json#browser
module attribute may specify an ESM module.
Including the browser bundle in the NPM package would ease dependency management, and facilitate library usage in applications with both node.js and browser-based components.
#1 Updated by Norm Tovey-Walsh 4 months ago
I'll definitely investigate creating an NPM package for the browser version.
Regarding modules, the distribution is compiled with the Closure compiler and my investigations didn't turn up any leads for how to get the Closure compiler to produce ESM modules (see bug #4655 on which you've already commented).
I'd be happy to hear about ways that we could make the distribution easier to use.
Please register to edit this issue