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

support template compilerOptions for sfc with script setup #1838

Closed
b2nil opened this issue Jun 12, 2021 · 0 comments
Closed

support template compilerOptions for sfc with script setup #1838

b2nil opened this issue Jun 12, 2021 · 0 comments

Comments

@b2nil
Copy link

b2nil commented Jun 12, 2021

What problem does this feature solve?

Configuring compilerOptions with the latest version 16.2.0 does not work for sfc with script setup, as the function resolveScript does not yet pass compilerOptions to compileScript.

resolved = compileScript(descriptor, {
id: scopeId,
isProd,
inlineTemplate: enableInline,
babelParserPlugins: options.babelParserPlugins,
templateOptions: {
compiler,
ssr: isServer,
transformAssetUrls: options.transformAssetUrls || true,
},
})

What does the proposed API look like?

Passing compilerOptions to compileScript's templateOptions so that resolved code of sfc with script setup honors the compilerOptions provided in vue-loader configuration.

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

No branches or pull requests

1 participant