Skip to content

Commit f112c45

Browse files
fix(core): cssVars support
1 parent a5d1357 commit f112c45

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/createVue3SFCModule.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,12 @@ export async function createSFCModule(source : string, filename : string, option
144144
});
145145

146146
let ast;
147-
if ( !scriptBlock.scriptAst ) {
147+
if ( true /*!scriptBlock.scriptAst*/ ) {
148148

149-
// need to re-parse because script compilation errors are not reported by sfc_compileScript
149+
// need to re-parse because
150+
// - script compilation errors are not reported by sfc_compileScript
151+
// - scriptAst does not contain cssVars & inheritAttrsFlag
152+
//
150153
try {
151154

152155
ast = babel_parse(scriptBlock.content, {

0 commit comments

Comments
 (0)