SFCScriptCompileOptions
interface SFCScriptCompileOptions {
babelParserPlugins?: ParserPlugin[];
id: string;
inlineTemplate?: boolean;
isProd?: boolean;
propsDestructureTransform?: boolean;
reactivityTransform?: boolean;
refSugar?: boolean;
refTransform?: boolean;
sourceMap?: boolean;
templateOptions?: Partial<SFCTemplateCompileOptions>;
}§Properties
§
babelParserPlugins?: ParserPlugin[]
[src]§
id: string
[src]Scope ID for prefixing injected CSS variables.
This must be consistent with the id
passed to compileStyle
.
§
inlineTemplate?: boolean
[src]Compile the template and inline the resulting render function directly inside setup().
- Only affects
<script setup>
- This should only be used in production because it prevents the template from being hot-reloaded separately from component state.
§
propsDestructureTransform?: boolean
[src](Experimental) Enable syntax transform for destructuring from defineProps() https://github.com/vuejs/rfcs/discussions/394
§
reactivityTransform?: boolean
[src](Experimental) Enable syntax transform for using refs without .value
and
using destructured props with reactivity
§
refTransform?: boolean
[src](Experimental) Enable syntax transform for using refs without .value
https://github.com/vuejs/rfcs/discussions/369
§
templateOptions?: Partial<SFCTemplateCompileOptions>
[src]Options for template compilation when inlining. Note these are options that
would normally be passed to compiler-sfc
's own compileTemplate()
, not
options passed to compiler-dom
.