Skip to content

fix(language-core): should re-export SourceMap#210

Merged
johnsoncodehk merged 1 commit intovolarjs:masterfrom
kermanx:fix/re-add-SourceMap-export
Jun 22, 2024
Merged

fix(language-core): should re-export SourceMap#210
johnsoncodehk merged 1 commit intovolarjs:masterfrom
kermanx:fix/re-add-SourceMap-export

Conversation

@kermanx
Copy link
Contributor

@kermanx kermanx commented Jun 22, 2024

fix slidevjs/slidev#1695.

#207 removed the re-exporting of SourceMap (https://github.com/volarjs/volar.js/pull/207/files#diff-9b91681a6cad2a7185ae1fa36e153880167c7081a2a664a52c279e3c7f89a52eL1), which should be a breaking change. However, because #207 has been published in a patch version, users installing the downstream packages like twoslash-vue and slidev will install the new version without being notified. This caused errors, which can only be fixed by overriding the dependencies manually.

This PR re-adds the re-exporting of SourceMap. I don't know whether it's good to re-export it, but I think it should be re-added until the next major (or at least minor) version.

@kermanx kermanx marked this pull request as draft June 22, 2024 13:51
@kermanx kermanx marked this pull request as ready for review June 22, 2024 13:52
@johnsoncodehk
Copy link
Member

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.

SyntaxError: Named export 'SourceMap' not found.

2 participants