Skip to content

Allow Source Mapping inside destructuring assignment #37298

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

Merged
merged 2 commits into from
Apr 3, 2020

Conversation

orta
Copy link
Contributor

@orta orta commented Mar 9, 2020

Fixes #30364

also includes #37111 - but I can rebase that out (this just keeps all the baseline changes in on one merged commit instead of two saving on some history/disk space)

@sandersn sandersn assigned sheetalkamat and unassigned orta Mar 25, 2020
@sandersn sandersn added the For Milestone Bug PRs that fix a bug with a specific milestone label Mar 27, 2020
@@ -847,12 +847,28 @@ namespace Harness {
result.maps.forEach(sourceMap => {
if (sourceMapCode) sourceMapCode += "\r\n";
sourceMapCode += fileOutput(sourceMap, harnessSettings);
if (!options.inlineSourceMap) {
Copy link
Member

Choose a reason for hiding this comment

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

If this is anyways going to be part of json file, canyou instead move emitting .map files into jsEmit baselines.. (we reduce number of files plus its easier to look at as well and get read of sourceMap.baseline.txt?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. These changes got merged in #37111 - but I'm open to changing how it works!

Just to make sure I get the idea: This would be editingdoJsEmitBaseline to also include the sourcemap and link to the sourcemap file at the bottom of the emitted JS files as another section? (then I delete all the sourcemap files from test suite)

@orta
Copy link
Contributor Author

orta commented Apr 3, 2020

👋 - I've updated this PR to just be the changes rebased on master. There's still a lot of testfile changes (reading them, they seem to fit - anywhere where we had a destructured object now has a lot more sourcemap nodes )

@orta orta merged commit 20ecbb0 into microsoft:master Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Broken Source Maps
4 participants