Skip to content

Commit

Permalink
feat(experimental): allow const for ref sugar declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 10, 2021
1 parent d955cfa commit 9823bd9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/ref-transform/src/refTransform.ts
Expand Up @@ -217,9 +217,6 @@ export function transformAST(
statement: VariableDeclaration
) {
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) {
// $
// remove macro
Expand Down

0 comments on commit 9823bd9

Please sign in to comment.