Skip to content

Commit 9823bd9

Browse files
committed
feat(experimental): allow const for ref sugar declarations
1 parent d955cfa commit 9823bd9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: packages/ref-transform/src/refTransform.ts

-3
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@ export function transformAST(
217217
statement: VariableDeclaration
218218
) {
219219
excludedIds.add(call.callee as Identifier)
220-
if (statement.kind !== 'let') {
221-
error(`${method}() bindings can only be declared with let`, call)
222-
}
223220
if (method === TO_VAR_SYMBOL) {
224221
// $
225222
// remove macro

0 commit comments

Comments
 (0)