Skip to content

fix: should count in module scope variables#18349

Merged
alexander-akait merged 1 commit intowebpack:mainfrom
fi3ework:fix-iife
May 7, 2024
Merged

fix: should count in module scope variables#18349
alexander-akait merged 1 commit intowebpack:mainfrom
fi3ework:fix-iife

Conversation

@fi3ework
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Fix some issues introduced in #18348.

  • 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?

No.

@webpack-bot
Copy link
Copy Markdown
Contributor

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)

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.

3 participants