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

Fix sourcemaps for large minified bundles #2571

Merged
merged 1 commit into from Dec 3, 2018

Conversation

mislav
Copy link
Contributor

@mislav mislav commented Nov 27, 2018

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

Sourcemaps were broken for lines longer than 32767 characters, which can happen if a large bundle was generated and minifed using Rollup.

Rich-Harris/sourcemap-codec#77

Regressed in v0.66.3 8a8721e

Sourcemaps were broken for lines longer than 32767 characters, which can
happen if a large bundle was generated and minifed using Rollup.

Rich-Harris/sourcemap-codec#77

Regressed in v0.66.3 8a8721e
@Havunen
Copy link

Havunen commented Nov 27, 2018

@lukastaegert

Please merge this PR. It fixes issue where source maps are not generated correctly. This defect was initially caused by my PR to sourcemap-codec to speed it up. But int16 cannot hold enough information when bundle sizes are large. Rich-Harris/sourcemap-codec@5d0d168

Please merge and release new version to npm.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this!

@lukastaegert lukastaegert merged commit 8986604 into rollup:master Dec 3, 2018
@lukastaegert
Copy link
Member

Published as 0.67.4

lukastaegert pushed a commit that referenced this pull request Dec 7, 2018
Sourcemaps were broken for lines longer than 32767 characters, which can
happen if a large bundle was generated and minifed using Rollup.

Rich-Harris/sourcemap-codec#77

Regressed in v0.66.3 8a8721e
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.

rollup is producing invalid sourcemaps
3 participants