Skip to content

Using es modules in node with workspaces #2891

Answered by merceyz
wdfinch asked this question in Q&A
Discussion options

You must be logged in to vote

Yarn PnP doesn't support ESM yet (#638), I implemented it in #2161 but due to the state of loaders in Node I've left it alone in a draft state. Last time I tested it it did work so if you want to give it a try feel free to do so.

yarn set version from sources --branch 2161
yarn config set enableExperimentalESMLoader true
yarn

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wdfinch
Comment options

Answer selected by wdfinch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants