-
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): change transform options to make sourcemap correct #4765
Conversation
🦋 Changeset detectedLatest commit: 6755efb 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 #4765 +/- ##
==========================================
- Coverage 57.59% 51.18% -6.42%
==========================================
Files 672 680 +8
Lines 17794 18960 +1166
Branches 3876 4377 +501
==========================================
- Hits 10249 9705 -544
- Misses 6934 8526 +1592
- Partials 611 729 +118 ☔ View full report in Codecov by Sentry. |
9d1c6fe
to
6755efb
Compare
Summary
🤖 Generated by Copilot at 0a3ac02
This pull request fixes the sourcemap generation for the module builder and the babel plugin by using only the file name instead of the full file path. It also updates the changeset file and the documentation to reflect the changes.
Details
🤖 Generated by Copilot at 0a3ac02
sourceFileName
andfilename
options from babel and swc transformations to fix sourcemap issue (link, link, link, link)basename
function frompath
module and use it to pass file name instead of file path to swc compiler (link, link)@modern-js/plugin-module-babel
and@modern-js/module-tools
packages and add brief description in English and Chinese (link)Related Issue
Checklist
pnpm run change
.