-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Turbopack: remove sourcemapping comments #88217
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
Conversation
1e95fe7 to
2620abc
Compare
|
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
90cdcdf to
89781ab
Compare
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles: **430 kB** → **430 kB** ✅ -29 B82 files with content-based hashes (individual files not comparable between builds) Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
|
Merging this PR will not alter performance
Comparing Footnotes
|
| file_content.rfind("\n//").and_then(|start| { | ||
| let line = &file_content[start..]; | ||
| SOURCE_MAP_FILE_REFERENCE | ||
| .captures(line) | ||
| .map(|m| m.get(1).unwrap().as_str()) | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not completely correct. It's doesn't have to be the fall comment:
//# sourceMappingURL=...
//# sourceURL=...
// could be any extra comment too...
Here is the spec how to extract the comment: https://tc39.es/ecma426/#sec-linking-inline
But also see the ISSUE 1 box here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. But to be fair, this codepath is only used by RawEcmascriptModule right now (i.e. the devtools bundle).
89781ab to
281fde8
Compare
…by position in file, per ECMAScript spec
281fde8 to
5e82116
Compare
Tests Passed |

Otherwise there are stray sourceMappingURL comments in the middle of the chunks.