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

Allow to define the "compilerOptions" of the VueTransformer #8031

Merged
merged 2 commits into from May 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/transformers/vue/src/VueTransformer.js
Expand Up @@ -43,6 +43,7 @@ export default (new Transformer({
return {
customBlocks: contents.customBlocks || {},
filePath: conf && conf.filePath,
compilerOptions: contents.compilerOptions || {},
};
},
canReuseAST({ast}) {
Expand Down Expand Up @@ -230,6 +231,7 @@ async function processPipeline({
scoped: styles.some(style => style.scoped),
isFunctional,
id,
compilerOptions: config.compilerOptions,
});
if (templateComp.errors.length) {
throw new ThrowableDiagnostic({
Expand Down