Skip to content

Document webpack change: add __webpack_module__ and __webpack_module_id__ to the api #5918

@webpack-bot

Description

@webpack-bot

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

See pull request: webpack/webpack#15282


What kind of change does this PR introduce?
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?

  • __webpack_module__ equals to module but is always available (module is not available in strict ESM)
  • __webpack_module__.id equals to module.id but is always available (module is not available in strict ESM)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions