-
Notifications
You must be signed in to change notification settings - Fork 353
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(builder): support enableLatestDecorators in rspack mode #4637
Conversation
🦋 Changeset detectedLatest commit: 694785d The changes in this PR will be included in the next version bump. This PR includes changesets to release 255 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4637 +/- ##
==========================================
- Coverage 57.59% 53.56% -4.04%
==========================================
Files 672 665 -7
Lines 17794 18129 +335
Branches 3876 4158 +282
==========================================
- Hits 10249 9711 -538
- Misses 6934 7759 +825
- Partials 611 659 +48 ☔ View full report in Codecov by Sentry. |
Summary
🤖 Generated by Copilot at 694785d
This pull request fixes a bug and adds tests for the
decorator
feature of the@modern-js/builder-rspack-provider
package. It updates theswc
compiler configuration to support the latest decorator syntax when theenableLatestDecorators
option istrue
. It also adds test cases for both the legacy and the latest decorator syntax, using different source files and checking the expected global variables. It creates a.changeset
file to document the change and bump the package version.Details
🤖 Generated by Copilot at 694785d
enableLatestDecorators
option in therspack
mode of the builder (link, link)decorator
feature of the builder with different syntax and options (link, link, link, link, link, link)Related Issue
Checklist
pnpm run change
.