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(compiler-sfc): custom blocks sourcemap #1812

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

kazupon
Copy link
Member

@kazupon kazupon commented Aug 8, 2020

There are cases in which we need the sourcemap of the content in custom blocks.
In the case of vue-i18n, when is compiling i18n resources from custom blocks to JS codes, we need the sourcemap to support DX.

In vue-loader@next, it does pass the sourcemap, but vue-i18n-loader can't receive it.
https://github.com/vuejs/vue-loader/blob/next/src/select.ts#L46

@yyx990803 yyx990803 merged commit 619efd9 into vuejs:master Aug 14, 2020
@kazupon kazupon deleted the fix/custom-blocks-sourcemap branch August 15, 2020 06:39
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