-
Notifications
You must be signed in to change notification settings - Fork 917
Closed
Description
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.
vue-loader/src/resolveScript.ts
Lines 56 to 66 in 65c9110
| 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.
transtone and Chen-jj
Metadata
Metadata
Assignees
Labels
No labels