-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Description
Description
With your ESM work on source, will you provide an ESM distribution file as well? An ESM distribution can be handy for (ESM-based) projects that don't have a compilation step but which wish to avoid polluting HTML with their dependencies (i.e., by using import jquery from './node_modules/jquery/dist/jquery-esm.js'; or such).
And can you point to a non-bundled entry point with moduleexports in package.json so bundlers like Rollup can discover it, so that import jquery from 'jquery' will work for such projects out of the box, e.g., without need for adding additional Rollup plugins or having to dig through source to find the entry point?
There are various references about *For native ESM that works with Node, see https://nodejs.org/api/packages.html *module as links at https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for