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

Revert "Revert "Fix compressed source-maps have non-terminated segments"" #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fabiosantoscode
Copy link
Collaborator

Reverts #381, which is a revert of #342

Context:

The #342 PR was reverted to quickly work around a bug caused by source-map.

Merge this when mozilla/source-map#385 is closed.

@alexander-akait
Copy link

@fabiosantoscode can we do this asap webpack-contrib/terser-webpack-plugin#100?

@fabiosantoscode
Copy link
Collaborator Author

@evilebottnawi the fix is in 4.0.2. This PR is to put back the feature that created the issue in 4.0.1, as soon as mozilla/source-map#385 gets a fix.

@devversion
Copy link
Contributor

Thanks @fabiosantoscode for trying to get this fixed again once the root cause issue on source-map is fixed. 🎉

@fabiosantoscode
Copy link
Collaborator Author

NP @devversion but we won't be integrating the new source-map version. There's been talk on another issue, #385, regarding the fact that it isn't sync anymore. We have to use something else for sourcemaps as terser is not going to become async anytime soon :(

2 similar comments
@fabiosantoscode
Copy link
Collaborator Author

NP @devversion but we won't be integrating the new source-map version. There's been talk on another issue, #385, regarding the fact that it isn't sync anymore. We have to use something else for sourcemaps as terser is not going to become async anytime soon :(

@fabiosantoscode
Copy link
Collaborator Author

NP @devversion but we won't be integrating the new source-map version. There's been talk on another issue, #385, regarding the fact that it isn't sync anymore. We have to use something else for sourcemaps as terser is not going to become async anytime soon :(

@devversion
Copy link
Contributor

@fabiosantoscode I was looking at the Mozilla issue again and I'm actually surprised this was reported on mozilla's side. It seems like the source validation is correct there, and also the source map generation from Terser side is correct.

I assume back then this was/still is? an issue from the webpack generation: mozilla/source-map#385 (comment)

@devversion
Copy link
Contributor

I've sent #1106 which resolves the conflicts + fixes the test to actually be more correct + adds a test assertion that ensures that SourceMapGenerator.fromSourceMap does not fail as it was assumed to be a bug by mozilla/source-map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants