deprecate some playground transformers
This commit is contained in:
parent
75dda10057
commit
2c05303813
@ -11,6 +11,7 @@ build(exports, {
|
||||
},
|
||||
|
||||
build(node, file) {
|
||||
console.error("The memoization operator is deprecated and will be removed in 5.0.0");
|
||||
return t.unaryExpression(
|
||||
"!",
|
||||
t.callExpression(
|
||||
|
||||
@ -20,6 +20,8 @@ export function MethodDefinition(node, parent, scope, file) {
|
||||
if (node.kind !== "memo") return;
|
||||
node.kind = "get";
|
||||
|
||||
console.error("Object getter memoization is deprecated and will be removed in 5.0.0");
|
||||
|
||||
var value = node.value;
|
||||
t.ensureBlock(value);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user