-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(sourcemaps): Handle null mappings properly #2149
Conversation
@@ -2,6 +2,7 @@ const assert = require('assert'); | |||
const fs = require('@parcel/fs'); | |||
const path = require('path'); | |||
const mapValidator = require('sourcemap-validator'); | |||
const SourceMap = require('../src/SourceMap'); |
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.
Looks like the tests are failing because of this import. Maybe this test should be inside the parcel-bundler
package rather than the integration tests?
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.
It probably should although maybe it would be a good idea to extract the sourcemap implementation into it's own package, for use in plugins and integration tests?
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.
yeah eventually
seems like some html minification tests are failing? doesn't seem related though |
↪️ Pull Request
This allows null mappings in parcels sourcemaps.
Creating more accurate sourcemaps.
Also adds a couple extra tests for sourcemaps, using the SourceMap class directly, giving a more in depth coverage of SourceMap
Closes #1825
Original PR: #1851
💻 Examples
🚨 Test instructions
Run unit tests
✔️ PR Todo