fix(compiler-sfc): support runtime Enum in normal script (#4698)
This commit is contained in:
@@ -834,7 +834,8 @@ export function compileScript(
|
||||
} else if (
|
||||
(node.type === 'VariableDeclaration' ||
|
||||
node.type === 'FunctionDeclaration' ||
|
||||
node.type === 'ClassDeclaration') &&
|
||||
node.type === 'ClassDeclaration' ||
|
||||
node.type === 'TSEnumDeclaration') &&
|
||||
!node.declare
|
||||
) {
|
||||
walkDeclaration(node, scriptBindings, userImportAlias)
|
||||
@@ -1504,6 +1505,7 @@ function walkDeclaration(
|
||||
}
|
||||
}
|
||||
} else if (
|
||||
node.type === 'TSEnumDeclaration' ||
|
||||
node.type === 'FunctionDeclaration' ||
|
||||
node.type === 'ClassDeclaration'
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user