webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

Document webpack change: enable named exports for commonjs as node.js supports it now

Open webpack-bot opened this issue 4 years ago • 2 comments

A pull request by @sokra was merged and maintainers requested a documentation change.

See pull request: https://github.com/webpack/webpack/pull/11885


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 avatar Nov 03 '20 14:11 webpack-bot

Yes, feel free to send PR

alexander-akait avatar Nov 06 '20 17:11 alexander-akait

@evilebottnawi ok

PratishShrivastava avatar Nov 06 '20 17:11 PratishShrivastava