File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export async function transformMain(
83
83
84
84
// template
85
85
const hasTemplateImport =
86
- descriptor . template && ! isUseInlineTemplate ( options , descriptor )
86
+ descriptor . template && ! isUseInlineTemplate ( descriptor , options )
87
87
88
88
let templateCode = ''
89
89
let templateMap : RawSourceMap | undefined
Original file line number Diff line number Diff line change @@ -37,12 +37,13 @@ export function setResolvedScript(
37
37
// inside <script setup>. This can only be done for build because
38
38
// inlined template cannot be individually hot updated.
39
39
export function isUseInlineTemplate (
40
- options : ResolvedOptions ,
41
40
descriptor : SFCDescriptor ,
41
+ options : ResolvedOptions ,
42
42
) : boolean {
43
43
return (
44
44
options . inlineTemplate &&
45
45
! options . devServer &&
46
+ ! options . devToolsEnabled &&
46
47
! ! descriptor . scriptSetup &&
47
48
! descriptor . template ?. src
48
49
)
@@ -72,7 +73,7 @@ export function resolveScript(
72
73
...options . script ,
73
74
id : descriptor . id ,
74
75
isProd : options . isProduction ,
75
- inlineTemplate : isUseInlineTemplate ( options , descriptor ) ,
76
+ inlineTemplate : isUseInlineTemplate ( descriptor , options ) ,
76
77
templateOptions : resolveTemplateCompilerOptions ( descriptor , options , ssr ) ,
77
78
sourceMap : options . sourceMap ,
78
79
genDefaultAs : canInlineMain ( framework , descriptor , options )
You can’t perform that action at this time.
0 commit comments