feat(experimental): allow const for ref sugar declarations

This commit is contained in:
Evan You 2021-12-10 14:05:40 +08:00
parent d955cfacd6
commit 9823bd95d1

View File

@ -217,9 +217,6 @@ export function transformAST(
statement: VariableDeclaration statement: VariableDeclaration
) { ) {
excludedIds.add(call.callee as Identifier) excludedIds.add(call.callee as Identifier)
if (statement.kind !== 'let') {
error(`${method}() bindings can only be declared with let`, call)
}
if (method === TO_VAR_SYMBOL) { if (method === TO_VAR_SYMBOL) {
// $ // $
// remove macro // remove macro