File tree 1 file changed +6
-9
lines changed
packages/compiler-core/src
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ export function baseCompile(
82
82
onError ( createCompilerError ( ErrorCodes . X_SCOPE_ID_NOT_SUPPORTED ) )
83
83
}
84
84
85
- const ast = isString ( source ) ? baseParse ( source , options ) : source
85
+ const resolvedOptions = extend ( { } , options , {
86
+ prefixIdentifiers
87
+ } )
88
+ const ast = isString ( source ) ? baseParse ( source , resolvedOptions ) : source
86
89
const [ nodeTransforms , directiveTransforms ] =
87
90
getBaseTransformPreset ( prefixIdentifiers )
88
91
@@ -95,8 +98,7 @@ export function baseCompile(
95
98
96
99
transform (
97
100
ast ,
98
- extend ( { } , options , {
99
- prefixIdentifiers,
101
+ extend ( { } , resolvedOptions , {
100
102
nodeTransforms : [
101
103
...nodeTransforms ,
102
104
...( options . nodeTransforms || [ ] ) // user transforms
@@ -109,10 +111,5 @@ export function baseCompile(
109
111
} )
110
112
)
111
113
112
- return generate (
113
- ast ,
114
- extend ( { } , options , {
115
- prefixIdentifiers
116
- } )
117
- )
114
+ return generate ( ast , resolvedOptions )
118
115
}
You can’t perform that action at this time.
0 commit comments