Skip to content

Fix: inputSourceMap should work when it is an external file#10623

Merged
JLHwung merged 3 commits intobabel:masterfrom
JLHwung:fix-10534
Oct 31, 2019
Merged

Fix: inputSourceMap should work when it is an external file#10623
JLHwung merged 3 commits intobabel:masterfrom
JLHwung:fix-10534

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Oct 31, 2019

Q                       A
Fixed Issues? Fixes #10534
Patch: Bug Fix? Yes
Tests Added + Pass? Yes
License MIT

This PR fixes invalid fromMapFileComment call signature via prepending parsed comment text by //, which is required in convert-source-map.

This PR is a follow up to #9960.

@JLHwung JLHwung added PR: Bug Fix 🐛 A type of pull request used for our changelog categories area: sourcemaps labels Oct 31, 2019
return 4;
};

//# sourceMappingURL=input.js.map
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test case is copied and later transformed from packages/babel-core/test/fixtures/transformation/source-maps/input-source-map.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: sourcemaps outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input source maps are ignored in v7.6.0 and up

3 participants