-
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(module-tools): alias not working on re-export #4784
Conversation
🦋 Changeset detectedLatest commit: bce066c The changes in this PR will be included in the next version bump. This PR includes changesets to release 257 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 ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4784 +/- ##
==========================================
- Coverage 57.59% 50.75% -6.85%
==========================================
Files 672 669 -3
Lines 17794 18623 +829
Branches 3876 4303 +427
==========================================
- Hits 10249 9452 -797
- Misses 6934 8446 +1512
- Partials 611 725 +114 ☔ View full report in Codecov by Sentry. |
Summary
🤖 Generated by Copilot at ab6b6ad
This pull request fixes a bug in the
redirect
feature of the@modern-js/module-tools
package, which did not work on re-export statements with aliases. It also adds test cases and updates the changeset file for the patch version update.Details
🤖 Generated by Copilot at ab6b6ad
@modern-js/module-tools
(link)redirect
feature to handle double quotes in export statements (link)alias.ts
andindex.ts
to demonstrate alias rewriting byredirect
feature (link, link)redirect
feature to check output file does not include original alias (link)Related Issue
Checklist
pnpm run change
.