Skip to content

fix: always add semicolon in concaten module and tweak#18713

Merged
alexander-akait merged 1 commit intowebpack:mainfrom
fi3ework:revert-semi
Sep 3, 2024
Merged

fix: always add semicolon in concaten module and tweak#18713
alexander-akait merged 1 commit intowebpack:mainfrom
fi3ework:revert-semi

Conversation

@fi3ework
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Revert the source change in #18709, the test cases are reserved. Resolve web-infra-dev/rspack#7591.

After adding new tests cases in this PR, I found it's hard to determine when to add the leading semicolon, as comments may appear before real code. Considering the risks and benefits of implementation, I decide to revert #18709 until we found a cheap and safe implementation. I also added new test cases by the way.

There's still a little change I made to resolve web-infra-dev/rspack#7591: remove CONCATENATED MODULE: prefix to make it easier for users to understand.

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?

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.

[Feature]: provide better comment annotation

3 participants