8000 ESM distribution / `exports` in `package.json` · Issue #4592 · jquery/jquery · GitHub
[go: up one dir, main page]

Skip to content
ESM distribution / exports in package.json #4592
Closed
@brettz9

Description

@brettz9

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 module exports 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 module as links at https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for *For native ESM that works with Node, see https://nodejs.org/api/packages.html *

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0