- Notifications
You must be signed in to change notification settings - Fork20.6k
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 usingimport jquery from './node_modules/jquery/dist/jquery-esm.js';
or such).
And can you point to a non-bundled entry point withmodule
exports
inpackage.json
so bundlers like Rollup can discover it, so thatimport 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, seehttps://nodejs.org/api/packages.html *module
as links athttps://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for