Skip to content

[WIP] ES modules - #1787

Open
goto-bus-stop wants to merge 4 commits into
masterfrom
esm
Open

goto-bus-stop wants to merge 4 commits into
masterfrom
esm

Conversation

@goto-bus-stop

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

Copy link
Copy Markdown
Member

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

dy commented Mar 5, 2020

Copy link
Copy Markdown

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

@ljharb

ljharb commented Mar 5, 2020

Copy link
Copy Markdown
Member
  • 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