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.
include existing module identifiers to used names to avoid conflict after renaming symbols.
refactor some logic to make it cleaner.
correct the typo in the test case path.
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?
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 aindex_value
identifier whichvalue
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.