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

enable named exports for commonjs as node.js supports it now #11885

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

sokra
Copy link
Member

@sokra sokra commented Oct 30, 2020

fixes #11878

What kind of change does this PR introduce?
bugfix, feature

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
Even in .mjs named exports of commonjs modules are supported. In contrast to node.js webpack supports all possible runtime values not only static analysables.

__esModule is intentionally not supported from .mjs for compat reasons

@webpack-bot
Copy link
Contributor

webpack-bot commented Oct 30, 2020

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@webpack-bot
Copy link
Contributor

I've created an issue to document this in webpack/webpack.js.org.

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

Successfully merging this pull request may close these issues.

Named exports for CJS
4 participants