-
Notifications
You must be signed in to change notification settings - Fork 6
In-source @parcel/source-map and the native code into Atlaspack #789
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
🦋 Changeset detectedLatest commit: 566bde7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 115 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 |
🦀 Ferris' Rust Changeset CheckI can see you have now included |
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.
This file is currently a copy of https://github.com/parcel-bundler/source-map/blob/master/parcel_sourcemap_node/src/lib.rs
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.
This whole folder is a copy of https://github.com/parcel-bundler/source-map/tree/master/parcel_sourcemap
Merging this into the existing atlaspack_sourcemap would be a next step, as that crate is (mostly) a wrapper around this one.
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.
The files in here are mostly copied from https://github.com/parcel-bundler/source-map/tree/master/src, with a conversion to TS and other minor changes to make things work with TS.
d7904d4 to
17c0457
Compare
17c0457 to
51ecd1d
Compare
📊 Type Coverage ReportCoverage Comparison
Files with Most Type Issues (Top 15)
This report was generated by the Type Coverage GitHub Action |
5779cd2 to
932473e
Compare
c5cb7e0 to
fd073fc
Compare
fd073fc to
8b7ca45
Compare
In sources the @parcel/source-map Rust and JavaScript code into Atlaspack, and updates all of the usages. Introduces a `safeToBuffer` method to ensure that any Parcel sourcemaps don't cause problems from the outside.
8b7ca45 to
566bde7
Compare
📊 Benchmark Results🎉 Performance improvements detected! 📊 Benchmark ResultsOverall Performance
🔍 Detailed Phase AnalysisThree.js Real Repository (JS)
Three.js Real Repository (Native)
💾 Unified Memory AnalysisThree.js Real Repository (JS) Memory Statistics
Sample Counts: JS: 6, Native: 262 Three.js Real Repository (Native) Memory Statistics
Sample Counts: JS: 6, Native: 510 🖥️ Environment
|
As this change touches a lot of files, I've done a Loom overview to highlight the important parts: https://www.loom.com/share/432549b7b21545a49e78829c13bb2206?sid=4887a78a-df6d-4b77-82a4-803ea6393e55
Motivation
We want to interate / experiment with changes to source maps, and currently as an external library this is complicated. If we in-source the source map library we are free to make breaking changes that suit our use cases and Atlaspack more directly.
Changes
parcel_sourcemapparcel_sourcemapfor the native CSS Transformer as it expects aparcel_sourcemapas input@atlaspack/source-mappackage that is what@parcel/source-mapwasChecklist
docs/folder