Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] ES modules #1787

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[WIP] ES modules #1787

wants to merge 4 commits into from

Conversation

goto-bus-stop
Copy link
Member

@goto-bus-stop goto-bus-stop commented Dec 26, 2017

This is currently on hold until Node decides on a modules implementation. See the https://github.com/nodejs/modules repo for proogress.


Adds a Node-style --experimental-modules flag that tells module-deps (browserify/module-deps#137) to treat .mjs files as ES modules. browserify/browser-pack#81 adds a source code transform to browser-pack that wires up ES modules correctly (live bindings etc).

@dy
Copy link

dy commented Mar 5, 2020

node@13.1 has unflagged esm. Just wonder what's the right way to organize modules support.

@ljharb
Copy link
Member

ljharb commented Mar 5, 2020

  • 13.2

It is indeed time for browserify to recognize .cjs files, .mjs files, and the “type” and “exports” fields in package.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants