feat(experimental): allow const for ref sugar declarations
This commit is contained in:
parent
d955cfacd6
commit
9823bd95d1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user