Skip to content

Best way to tell Webpack to use the "esm5" exports? #6017

Answered by hsubox76
nfarina asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the webpack docs, it looks like the field to use is resolve.conditionNames: https://webpack.js.org/configuration/resolve/#resolveconditionnames

The webpack docs also have this table of how to access condition names in different tools if possible, which is handy and I will put the link here for myself and any others: https://webpack.js.org/guides/package-exports/#conditions-custom

Replies: 1 comment 1 reply

Comment options

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

Answer selected by nfarina
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