designate all playground and es7 transformers as optional
This commit is contained in:
parent
5a319fd553
commit
1c6ac0a07a
@ -4,6 +4,7 @@ import * as util from "../../../util";
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var experimental = true;
|
||||
export var optional = true;
|
||||
|
||||
var container = function (parent, call, ret, file) {
|
||||
if (t.isExpressionStatement(parent) && !file.isConsequenceExpressionStatement(parent)) {
|
||||
|
||||
@ -4,6 +4,7 @@ import * as util from "../../../util";
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var experimental = true;
|
||||
export var optional = true;
|
||||
|
||||
export function ComprehensionExpression(node, parent, scope, file) {
|
||||
var callback = array;
|
||||
|
||||
@ -4,6 +4,7 @@ import build from "../../helpers/build-binary-assignment-operator-transformer";
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var experimental = true;
|
||||
export var optional = true;
|
||||
|
||||
var MATH_POW = t.memberExpression(t.identifier("Math"), t.identifier("pow"));
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var experimental = true;
|
||||
export var optional = true;
|
||||
|
||||
export function manipulateOptions(opts) {
|
||||
if (opts.whitelist.length) opts.whitelist.push("es6.destructuring");
|
||||
|
||||
@ -3,6 +3,7 @@ import build from "../../helpers/build-conditional-assignment-operator-transform
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var playground = true;
|
||||
export var optional = true;
|
||||
|
||||
build(exports, {
|
||||
is(node, file) {
|
||||
|
||||
@ -2,6 +2,7 @@ import build from "../../helpers/build-conditional-assignment-operator-transform
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var playground = true;
|
||||
export var optional = true;
|
||||
|
||||
build(exports, {
|
||||
is(node) {
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var playground = true;
|
||||
export var optional = true;
|
||||
|
||||
export function BindMemberExpression(node, parent, scope) {
|
||||
console.error("Method binding is deprecated and will be removed in 5.0.0");
|
||||
|
||||
var object = node.object;
|
||||
var prop = node.property;
|
||||
|
||||
@ -25,6 +28,8 @@ export function BindMemberExpression(node, parent, scope) {
|
||||
}
|
||||
|
||||
export function BindFunctionExpression(node, parent, scope) {
|
||||
console.error("Method binding is deprecated and will be removed in 5.0.0");
|
||||
|
||||
var buildCall = function (args) {
|
||||
var param = scope.generateUidIdentifier("val");
|
||||
return t.functionExpression(null, [param], t.blockStatement([
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import * as t from "../../../types";
|
||||
|
||||
export var playground = true;
|
||||
export var optional = true;
|
||||
|
||||
var visitor = {
|
||||
enter(node, parent, scope, state) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user