Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ESM distribution /exports inpackage.json #4592

Closed
Assignees
mgol
Milestone
@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 usingimport jquery from './node_modules/jquery/dist/jquery-esm.js'; or such).

And can you point to a non-bundled entry point withmoduleexports 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 aboutmodule as links athttps://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for *For native ESM that works with Node, seehttps://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


    [8]ページ先頭

    ©2009-2025 Movatter.jp