fix(compiler-sfc): support const enum

This commit is contained in:
Evan You
2021-07-19 17:31:13 -04:00
parent b771fdbef9
commit 93a950d60d
3 changed files with 28 additions and 1 deletions

View File

@@ -1008,7 +1008,7 @@ export function compileScript(
if (isTS) {
// runtime enum
if (node.type === 'TSEnumDeclaration' && !node.const) {
if (node.type === 'TSEnumDeclaration') {
registerBinding(setupBindings, node.id, BindingTypes.SETUP_CONST)
}