Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

fi3ework
Copy link
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
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)

@alexander-akait alexander-akait merged commit 27cf3e5 into webpack:main Sep 3, 2024
55 of 57 checks passed
@fi3ework fi3ework deleted the revert-semi branch September 3, 2024 14:05
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