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 ExistingRawSourceMap type #2507

Merged
merged 1 commit into from Oct 14, 2018
Merged

Fix ExistingRawSourceMap type #2507

merged 1 commit into from Oct 14, 2018

Conversation

aMarCruz
Copy link
Contributor

@aMarCruz aMarCruz commented Oct 14, 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

The current definition of the (TypeScript) ExistingRawSourceMap type is wrong, the property version is defined as "string" but the correct type is "number".

This conflicts with libraries that returns sourceMap with the correct type, like the next version of gen-pug-source-map used in the rollup-plugin-pug.

This is a screenshot with such error:

image

After applying this fix the issue disappears.

See the Source Map Revision 3 Proposal

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 a lot for digging into this, looks good!

@lukastaegert lukastaegert merged commit 57cc10a into rollup:master Oct 14, 2018
@aMarCruz aMarCruz deleted the fix-source-map-typings branch October 14, 2018 14:31
@aMarCruz
Copy link
Contributor Author

@lukastaegert thank you

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

2 participants