Skip to content

[WIP] ES modules#1787

Open
goto-bus-stop wants to merge 4 commits intomasterfrom
esm
Open

[WIP] ES modules#1787
goto-bus-stop wants to merge 4 commits intomasterfrom
esm

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.

3 participants