webpack / webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
https://webpack.js.org
MIT License
64.26k stars 8.73k forks source link

fix: should count in module scope variables #18349

Closed fi3ework closed 3 weeks ago

fi3ework commented 1 month ago

What kind of change does this PR introduce?

Fix some issues introduced in https://github.com/webpack/webpack/pull/18348.

Did you add tests for your changes?

Yes, in test/configCases/output-module/inlined-module/index.js, adding a index_value identifier which value will be renamed to, this will break the runtime before the PR as we didn't count existing identifiers in.

Does this PR introduce a breaking change?

No.

What needs to be documented once your changes are merged?

No.

webpack-bot commented 1 month ago

For maintainers only: