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

Babili's sourcemaps causes error in collapseSourcemaps.js #1255

Merged
merged 4 commits into from Mar 9, 2017
Merged

Babili's sourcemaps causes error in collapseSourcemaps.js #1255

merged 4 commits into from Mar 9, 2017

Conversation

Comandeer
Copy link
Contributor

This PR fixes issue described in #1254.

Due to Babili returning last line mapping with only one segment inside, source variable in Link.traceMappings remains undefined and all operations on this variable fails.

The proposed fix just checks if source is really set before doing anything with it.

@kzc
Copy link
Contributor

kzc commented Jan 12, 2017

The one line fix to src/utils/collapseSourcemaps.js is fine, but rollup shouldn't have a devDependency on babel, so the test is not required - unless it can be rewritten without babel.

@Comandeer
Copy link
Contributor Author

Sorry, I've found test with uglify.js and thought that I could do the same with Babili.

I've simplified test. It doesn't require Babili anymore.

@Rich-Harris Rich-Harris merged commit 9929d1b into rollup:master Mar 9, 2017
@Rich-Harris
Copy link
Contributor

Thanks!

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.

None yet

3 participants