Skip to content

Fix ExistingRawSourceMap type - #2507

Merged
lukastaegert merged 1 commit into
rollup:masterfrom
aMarCruz:fix-source-map-typings
Oct 14, 2018
Merged

Fix ExistingRawSourceMap type#2507
lukastaegert merged 1 commit into
rollup:masterfrom
aMarCruz:fix-source-map-typings

Conversation

@aMarCruz

@aMarCruz aMarCruz commented Oct 14, 2018

Copy link
Copy Markdown

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

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

2 participants