Skip to content
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

Don't muck with source maps if file doesn't match #44

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

goto-bus-stop
Copy link
Member

Source maps were stripped and generated for files that did not contain
any modules. But those files were never parsed so their source maps were
not initialised correctly. Then the source map merge step would merge
the input source map with the uninitialised source map, essentially
throwing away all mappings.

With this patch the input is passed through entirely if it does not
contain any modules, before any source map related checks.

Source maps were stripped and generated for files that did not contain
any modules. But those files were never parsed so their source maps were
not initialised correctly. Then the source map merge step would merge
the input source map with the uninitialised source map, essentially
throwing away all mappings.

With this patch the input is passed through entirely if it does not
contain any modules, before any source map related checks.
@goto-bus-stop goto-bus-stop merged commit 03941dc into master Apr 4, 2018
@goto-bus-stop goto-bus-stop deleted the fix/no-match branch June 15, 2020 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant