Scoped: change src imports to @babel/ [skip ci]
This commit is contained in:
parent
8e5e27577a
commit
cde0054227
@ -1,5 +1,5 @@
|
|||||||
import commander from "commander";
|
import commander from "commander";
|
||||||
import { buildExternalHelpers } from "babel-core";
|
import { buildExternalHelpers } from "@babel/core";
|
||||||
|
|
||||||
function collect(value, previousValue): Array<string> {
|
function collect(value, previousValue): Array<string> {
|
||||||
// If the user passed the option with no value, like "babel-external-helpers --whitelist", do nothing.
|
// If the user passed the option with no value, like "babel-external-helpers --whitelist", do nothing.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import commander from "commander";
|
import commander from "commander";
|
||||||
import { version } from "babel-core";
|
import { version } from "@babel/core";
|
||||||
import uniq from "lodash/uniq";
|
import uniq from "lodash/uniq";
|
||||||
import glob from "glob";
|
import glob from "glob";
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import commander from "commander";
|
import commander from "commander";
|
||||||
import readdirRecursive from "fs-readdir-recursive";
|
import readdirRecursive from "fs-readdir-recursive";
|
||||||
import * as babel from "babel-core";
|
import * as babel from "@babel/core";
|
||||||
import includes from "lodash/includes";
|
import includes from "lodash/includes";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import merge from "lodash/merge";
|
|||||||
import removed from "./removed";
|
import removed from "./removed";
|
||||||
import buildConfigChain from "./build-config-chain";
|
import buildConfigChain from "./build-config-chain";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import traverse from "babel-traverse";
|
import traverse from "@babel/traverse";
|
||||||
import clone from "lodash/clone";
|
import clone from "lodash/clone";
|
||||||
import { makeWeakCache } from "./caching";
|
import { makeWeakCache } from "./caching";
|
||||||
import { getEnv } from "./helpers/environment";
|
import { getEnv } from "./helpers/environment";
|
||||||
|
|||||||
@ -8,9 +8,9 @@ export { resolvePlugin, resolvePreset } from "./config/loading/files";
|
|||||||
export { version } from "../package";
|
export { version } from "../package";
|
||||||
export { getEnv } from "./config/helpers/environment";
|
export { getEnv } from "./config/helpers/environment";
|
||||||
|
|
||||||
export * as types from "babel-types";
|
export * as types from "@babel/types";
|
||||||
export { default as traverse } from "babel-traverse";
|
export { default as traverse } from "@babel/traverse";
|
||||||
export { default as template } from "babel-template";
|
export { default as template } from "@babel/template";
|
||||||
|
|
||||||
import loadConfig from "./config";
|
import loadConfig from "./config";
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import * as helpers from "babel-helpers";
|
import * as helpers from "@babel/helpers";
|
||||||
import generator from "babel-generator";
|
import generator from "@babel/generator";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const buildUmdWrapper = template(`
|
const buildUmdWrapper = template(`
|
||||||
(function (root, factory) {
|
(function (root, factory) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import loadConfig from "./config";
|
import loadConfig from "./config";
|
||||||
import runTransform, { type FileResult } from "./transformation";
|
import runTransform, { type FileResult } from "./transformation";
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import getHelper from "babel-helpers";
|
import getHelper from "@babel/helpers";
|
||||||
import { NodePath, Hub, Scope } from "babel-traverse";
|
import { NodePath, Hub, Scope } from "@babel/traverse";
|
||||||
import { codeFrameColumns } from "babel-code-frame";
|
import { codeFrameColumns } from "@babel/code-frame";
|
||||||
import traverse from "babel-traverse";
|
import traverse from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
import type { NormalizedFile } from "../normalize-file";
|
import type { NormalizedFile } from "../normalize-file";
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import convertSourceMap, { type SourceMap } from "convert-source-map";
|
import convertSourceMap, { type SourceMap } from "convert-source-map";
|
||||||
import sourceMap from "source-map";
|
import sourceMap from "source-map";
|
||||||
import generate from "babel-generator";
|
import generate from "@babel/generator";
|
||||||
|
|
||||||
import type File from "./file";
|
import type File from "./file";
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import traverse from "babel-traverse";
|
import traverse from "@babel/traverse";
|
||||||
import type { SourceMap } from "convert-source-map";
|
import type { SourceMap } from "convert-source-map";
|
||||||
|
|
||||||
import type { ResolvedConfig, PluginPasses } from "../config";
|
import type { ResolvedConfig, PluginPasses } from "../config";
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import convertSourceMap, { typeof Converter } from "convert-source-map";
|
import convertSourceMap, { typeof Converter } from "convert-source-map";
|
||||||
import { parse } from "babylon";
|
import { parse } from "babylon";
|
||||||
import { codeFrameColumns } from "babel-code-frame";
|
import { codeFrameColumns } from "@babel/code-frame";
|
||||||
|
|
||||||
const shebangRegex = /^#!.*/;
|
const shebangRegex = /^#!.*/;
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export function ClassDeclaration(node: Object, parent: Object) {
|
export function ClassDeclaration(node: Object, parent: Object) {
|
||||||
if (
|
if (
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import * as n from "../node";
|
import * as n from "../node";
|
||||||
|
|
||||||
export function UnaryExpression(node: Object) {
|
export function UnaryExpression(node: Object) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import { ExportAllDeclaration } from "./modules";
|
import { ExportAllDeclaration } from "./modules";
|
||||||
|
|
||||||
export function AnyTypeAnnotation() {
|
export function AnyTypeAnnotation() {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export function _params(node: Object) {
|
export function _params(node: Object) {
|
||||||
this.print(node.typeParameters, node);
|
this.print(node.typeParameters, node);
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export function ImportSpecifier(node: Object) {
|
export function ImportSpecifier(node: Object) {
|
||||||
if (node.importKind === "type" || node.importKind === "typeof") {
|
if (node.importKind === "type" || node.importKind === "typeof") {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export function WithStatement(node: Object) {
|
export function WithStatement(node: Object) {
|
||||||
this.word("with");
|
this.word("with");
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import jsesc from "jsesc";
|
import jsesc from "jsesc";
|
||||||
|
|
||||||
export function Identifier(node: Object) {
|
export function Identifier(node: Object) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import * as whitespace from "./whitespace";
|
import * as whitespace from "./whitespace";
|
||||||
import * as parens from "./parentheses";
|
import * as parens from "./parentheses";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
function expandAliases(obj) {
|
function expandAliases(obj) {
|
||||||
const newObj = {};
|
const newObj = {};
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const PRECEDENCE = {
|
const PRECEDENCE = {
|
||||||
"||": 0,
|
"||": 0,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import map from "lodash/map";
|
import map from "lodash/map";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
type WhitespaceObject = {
|
type WhitespaceObject = {
|
||||||
before?: boolean,
|
before?: boolean,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import isInteger from "lodash/isInteger";
|
|||||||
import repeat from "lodash/repeat";
|
import repeat from "lodash/repeat";
|
||||||
import Buffer from "./buffer";
|
import Buffer from "./buffer";
|
||||||
import * as n from "./node";
|
import * as n from "./node";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
import * as generatorFunctions from "./generators";
|
import * as generatorFunctions from "./generators";
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const PURE_ANNOTATION = "#__PURE__";
|
const PURE_ANNOTATION = "#__PURE__";
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function bindifyDecorators(
|
export default function bindifyDecorators(
|
||||||
decorators: Array<NodePath>,
|
decorators: Array<NodePath>,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import explode from "babel-helper-explode-assignable-expression";
|
import explode from "@babel/helper-explode-assignable-expression";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function(opts: { build: Function, operator: string }): Object {
|
export default function(opts: { build: Function, operator: string }): Object {
|
||||||
const { build, operator } = opts;
|
const { build, operator } = opts;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import esutils from "esutils";
|
import esutils from "esutils";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
type ElementState = {
|
type ElementState = {
|
||||||
tagExpr: Object, // tag node
|
tagExpr: Object, // tag node
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import hoistVariables from "babel-helper-hoist-variables";
|
import hoistVariables from "@babel/helper-hoist-variables";
|
||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const visitor = {
|
const visitor = {
|
||||||
enter(path, state) {
|
enter(path, state) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
import has from "lodash/has";
|
import has from "lodash/has";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
function toKind(node: Object) {
|
function toKind(node: Object) {
|
||||||
if (t.isClassMethod(node) || t.isObjectMethod(node)) {
|
if (t.isClassMethod(node) || t.isObjectMethod(node)) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import type { Scope } from "babel-traverse";
|
import type { Scope } from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
function getObjRef(node, nodes, file, scope) {
|
function getObjRef(node, nodes, file, scope) {
|
||||||
let ref;
|
let ref;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import bindifyDecorators from "babel-helper-bindify-decorators";
|
import bindifyDecorators from "@babel/helper-bindify-decorators";
|
||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function(classPath) {
|
export default function(classPath) {
|
||||||
classPath.assertClass();
|
classPath.assertClass();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import getFunctionArity from "babel-helper-get-function-arity";
|
import getFunctionArity from "@babel/helper-get-function-arity";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const buildPropertyMethodAssignmentWrapper = template(`
|
const buildPropertyMethodAssignmentWrapper = template(`
|
||||||
(function (FUNCTION_KEY) {
|
(function (FUNCTION_KEY) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function(node): number {
|
export default function(node): number {
|
||||||
const params: Array<Object> = node.params;
|
const params: Array<Object> = node.params;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const visitor = {
|
const visitor = {
|
||||||
Scope(path, state) {
|
Scope(path, state) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class to track and accumulate mutations to the AST that will eventually
|
* A class to track and accumulate mutations to the AST that will eventually
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
import ImportBuilder from "./import-builder";
|
import ImportBuilder from "./import-builder";
|
||||||
import isModule from "./is-module";
|
import isModule from "./is-module";
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import chunk from "lodash/chunk";
|
import chunk from "lodash/chunk";
|
||||||
|
|
||||||
import { isModule } from "babel-helper-module-imports";
|
import { isModule } from "@babel/helper-module-imports";
|
||||||
|
|
||||||
import rewriteThis from "./rewrite-this";
|
import rewriteThis from "./rewrite-this";
|
||||||
import rewriteLiveReferences from "./rewrite-live-references";
|
import rewriteLiveReferences from "./rewrite-live-references";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { basename, extname } from "path";
|
import { basename, extname } from "path";
|
||||||
|
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export type ModuleMetadata = {
|
export type ModuleMetadata = {
|
||||||
exportName: string,
|
exportName: string,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import simplifyAccess from "babel-helper-simple-access";
|
import simplifyAccess from "@babel/helper-simple-access";
|
||||||
|
|
||||||
import type { ModuleMetadata } from "./";
|
import type { ModuleMetadata } from "./";
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function(callee, thisNode, args) {
|
export default function(callee, thisNode, args) {
|
||||||
if (
|
if (
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import testRunner from "babel-helper-transform-fixture-test-runner";
|
import testRunner from "@babel/helper-transform-fixture-test-runner";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
export default function(loc) {
|
export default function(loc) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
|
|
||||||
const awaitTemplate = `
|
const awaitTemplate = `
|
||||||
function* wrapper() {
|
function* wrapper() {
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
/* @noflow */
|
/* @noflow */
|
||||||
|
|
||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "@babel/traverse";
|
||||||
import wrapFunction from "babel-helper-wrap-function";
|
import wrapFunction from "@babel/helper-wrap-function";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import rewriteForAwait from "./for-await";
|
import rewriteForAwait from "./for-await";
|
||||||
|
|
||||||
const awaitVisitor = {
|
const awaitVisitor = {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import type { NodePath, Scope } from "babel-traverse";
|
import type { NodePath, Scope } from "@babel/traverse";
|
||||||
import optimiseCall from "babel-helper-optimise-call-expression";
|
import optimiseCall from "@babel/helper-optimise-call-expression";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
// ✌️
|
// ✌️
|
||||||
const HARDCORE_THIS_REF = new WeakSet();
|
const HARDCORE_THIS_REF = new WeakSet();
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function simplifyAccess(path: NodePath, bindingNames) {
|
export default function simplifyAccess(path: NodePath, bindingNames) {
|
||||||
path.traverse(simpleAssignmentVisitor, {
|
path.traverse(simpleAssignmentVisitor, {
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
import * as babel from "babel-core";
|
import * as babel from "@babel/core";
|
||||||
import { buildExternalHelpers } from "babel-core";
|
import { buildExternalHelpers } from "@babel/core";
|
||||||
import getFixtures from "babel-helper-fixtures";
|
import getFixtures from "@babel/helper-fixtures";
|
||||||
import sourceMap from "source-map";
|
import sourceMap from "source-map";
|
||||||
import { codeFrameColumns } from "babel-code-frame";
|
import { codeFrameColumns } from "@babel/code-frame";
|
||||||
import defaults from "lodash/defaults";
|
import defaults from "lodash/defaults";
|
||||||
import includes from "lodash/includes";
|
import includes from "lodash/includes";
|
||||||
import * as helpers from "./helpers";
|
import * as helpers from "./helpers";
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "@babel/traverse";
|
||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const buildWrapper = template(`
|
const buildWrapper = template(`
|
||||||
(() => {
|
(() => {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/* eslint max-len: "off" */
|
/* eslint max-len: "off" */
|
||||||
|
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
|
|
||||||
const helpers = {};
|
const helpers = {};
|
||||||
export default helpers;
|
export default helpers;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import traverse from "babel-traverse";
|
import traverse from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import helpers from "./helpers";
|
import helpers from "./helpers";
|
||||||
|
|
||||||
function makePath(path) {
|
function makePath(path) {
|
||||||
|
|||||||
@ -3,10 +3,10 @@ import Module from "module";
|
|||||||
import { inspect } from "util";
|
import { inspect } from "util";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import repl from "repl";
|
import repl from "repl";
|
||||||
import * as babel from "babel-core";
|
import * as babel from "@babel/core";
|
||||||
import vm from "vm";
|
import vm from "vm";
|
||||||
import "babel-polyfill";
|
import "babel-polyfill";
|
||||||
import register from "babel-register";
|
import register from "@babel/register";
|
||||||
|
|
||||||
import pkg from "../package.json";
|
import pkg from "../package.json";
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import asyncSyntaxPlugin from "babel-plugin-syntax-async-functions";
|
import asyncSyntaxPlugin from "@babel/plugin-syntax-async-functions";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
|
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
|
||||||
import syntaxAsyncGenerators from "babel-plugin-syntax-async-generators";
|
import syntaxAsyncGenerators from "@babel/plugin-syntax-async-generators";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
const yieldStarVisitor = {
|
const yieldStarVisitor = {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
|
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
|
||||||
import syntaxAsyncFunctions from "babel-plugin-syntax-async-functions";
|
import syntaxAsyncFunctions from "@babel/plugin-syntax-async-functions";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
|
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
|
||||||
import syntaxAsyncFunctions from "babel-plugin-syntax-async-functions";
|
import syntaxAsyncFunctions from "@babel/plugin-syntax-async-functions";
|
||||||
|
|
||||||
import { addNamed } from "babel-helper-module-imports";
|
import { addNamed } from "@babel/helper-module-imports";
|
||||||
|
|
||||||
export default function({ types: t }, options) {
|
export default function({ types: t }, options) {
|
||||||
const { method, module } = options;
|
const { method, module } = options;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import syntaxClassProperties from "babel-plugin-syntax-class-properties";
|
import syntaxClassProperties from "@babel/plugin-syntax-class-properties";
|
||||||
|
|
||||||
export default function({ types: t }, options) {
|
export default function({ types: t }, options) {
|
||||||
const { loose } = options;
|
const { loose } = options;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Fork of https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy
|
// Fork of https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy
|
||||||
|
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import syntaxDecorators from "babel-plugin-syntax-decorators";
|
import syntaxDecorators from "@babel/plugin-syntax-decorators";
|
||||||
|
|
||||||
const buildClassDecorator = template(`
|
const buildClassDecorator = template(`
|
||||||
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
|
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxDoExpressions from "babel-plugin-syntax-do-expressions";
|
import syntaxDoExpressions from "@babel/plugin-syntax-do-expressions";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import type NodePath from "babel-traverse";
|
import type NodePath from "@babel/traverse";
|
||||||
|
|
||||||
export default function(babel, options) {
|
export default function(babel, options) {
|
||||||
const { spec } = options;
|
const { spec } = options;
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import type NodePath from "babel-traverse";
|
import type NodePath from "@babel/traverse";
|
||||||
import type Scope from "babel-traverse";
|
import type Scope from "@babel/traverse";
|
||||||
import type File from "../../../file";
|
import type File from "../../../file";
|
||||||
import traverse from "babel-traverse";
|
import traverse from "@babel/traverse";
|
||||||
import { visitor as tdzVisitor } from "./tdz";
|
import { visitor as tdzVisitor } from "./tdz";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
import values from "lodash/values";
|
import values from "lodash/values";
|
||||||
import extend from "lodash/extend";
|
import extend from "lodash/extend";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
|
|
||||||
const DONE = new WeakSet();
|
const DONE = new WeakSet();
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
function getTDZStatus(refPath, bindingPath) {
|
function getTDZStatus(refPath, bindingPath) {
|
||||||
const executionStatus = bindingPath._guessExecutionStatusRelativeTo(refPath);
|
const executionStatus = bindingPath._guessExecutionStatusRelativeTo(refPath);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import LooseTransformer from "./loose";
|
import LooseTransformer from "./loose";
|
||||||
import VanillaTransformer from "./vanilla";
|
import VanillaTransformer from "./vanilla";
|
||||||
import annotateAsPure from "babel-helper-annotate-as-pure";
|
import annotateAsPure from "@babel/helper-annotate-as-pure";
|
||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
|
|
||||||
export default function({ types: t }, options) {
|
export default function({ types: t }, options) {
|
||||||
const { loose } = options;
|
const { loose } = options;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import type { Scope } from "babel-traverse";
|
import type { Scope } from "@babel/traverse";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function(
|
export default function(
|
||||||
decorators: Array<Object>,
|
decorators: Array<Object>,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
import VanillaTransformer from "./vanilla";
|
import VanillaTransformer from "./vanilla";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default class LooseClassTransformer extends VanillaTransformer {
|
export default class LooseClassTransformer extends VanillaTransformer {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "@babel/traverse";
|
||||||
import { visitors } from "babel-traverse";
|
import { visitors } from "@babel/traverse";
|
||||||
import ReplaceSupers from "babel-helper-replace-supers";
|
import ReplaceSupers from "@babel/helper-replace-supers";
|
||||||
import optimiseCall from "babel-helper-optimise-call-expression";
|
import optimiseCall from "@babel/helper-optimise-call-expression";
|
||||||
import * as defineMap from "babel-helper-define-map";
|
import * as defineMap from "@babel/helper-define-map";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const buildDerivedConstructor = template(`
|
const buildDerivedConstructor = template(`
|
||||||
(function () {
|
(function () {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
function getName(key) {
|
function getName(key) {
|
||||||
if (t.isIdentifier(key)) {
|
if (t.isIdentifier(key)) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import {
|
import {
|
||||||
isModule,
|
isModule,
|
||||||
rewriteModuleStatementsAndPrepareHeader,
|
rewriteModuleStatementsAndPrepareHeader,
|
||||||
@ -7,7 +7,7 @@ import {
|
|||||||
buildNamespaceInitStatements,
|
buildNamespaceInitStatements,
|
||||||
ensureStatementsHoisted,
|
ensureStatementsHoisted,
|
||||||
wrapInterop,
|
wrapInterop,
|
||||||
} from "babel-helper-module-transforms";
|
} from "@babel/helper-module-transforms";
|
||||||
|
|
||||||
const buildWrapper = template(`
|
const buildWrapper = template(`
|
||||||
define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {
|
define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import {
|
|||||||
buildNamespaceInitStatements,
|
buildNamespaceInitStatements,
|
||||||
ensureStatementsHoisted,
|
ensureStatementsHoisted,
|
||||||
wrapInterop,
|
wrapInterop,
|
||||||
} from "babel-helper-module-transforms";
|
} from "@babel/helper-module-transforms";
|
||||||
import simplifyAccess from "babel-helper-simple-access";
|
import simplifyAccess from "@babel/helper-simple-access";
|
||||||
|
|
||||||
export default function({ types: t, template }, options) {
|
export default function({ types: t, template }, options) {
|
||||||
const {
|
const {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import hoistVariables from "babel-helper-hoist-variables";
|
import hoistVariables from "@babel/helper-hoist-variables";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
|
|
||||||
const buildTemplate = template(`
|
const buildTemplate = template(`
|
||||||
SYSTEM_REGISTER(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {
|
SYSTEM_REGISTER(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { basename, extname } from "path";
|
import { basename, extname } from "path";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import {
|
import {
|
||||||
isModule,
|
isModule,
|
||||||
rewriteModuleStatementsAndPrepareHeader,
|
rewriteModuleStatementsAndPrepareHeader,
|
||||||
@ -8,7 +8,7 @@ import {
|
|||||||
buildNamespaceInitStatements,
|
buildNamespaceInitStatements,
|
||||||
ensureStatementsHoisted,
|
ensureStatementsHoisted,
|
||||||
wrapInterop,
|
wrapInterop,
|
||||||
} from "babel-helper-module-transforms";
|
} from "@babel/helper-module-transforms";
|
||||||
|
|
||||||
const buildPrerequisiteAssignment = template(`
|
const buildPrerequisiteAssignment = template(`
|
||||||
GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}
|
GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import ReplaceSupers from "babel-helper-replace-supers";
|
import ReplaceSupers from "@babel/helper-replace-supers";
|
||||||
|
|
||||||
function replacePropertySuper(path, node, scope, getObjectRef, file) {
|
function replacePropertySuper(path, node, scope, getObjectRef, file) {
|
||||||
const replaceSupers = new ReplaceSupers({
|
const replaceSupers = new ReplaceSupers({
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import callDelegate from "babel-helper-call-delegate";
|
import callDelegate from "@babel/helper-call-delegate";
|
||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const buildDefaultParam = template(`
|
const buildDefaultParam = template(`
|
||||||
let VARIABLE_NAME =
|
let VARIABLE_NAME =
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import template from "babel-template";
|
import template from "@babel/template";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
const buildRest = template(`
|
const buildRest = template(`
|
||||||
for (var LEN = ARGUMENTS.length,
|
for (var LEN = ARGUMENTS.length,
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import * as regex from "babel-helper-regex";
|
import * as regex from "@babel/helper-regex";
|
||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import annotateAsPure from "babel-helper-annotate-as-pure";
|
import annotateAsPure from "@babel/helper-annotate-as-pure";
|
||||||
|
|
||||||
export default function({ types: t }, options) {
|
export default function({ types: t }, options) {
|
||||||
const { loose } = options;
|
const { loose } = options;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import rewritePattern from "regexpu-core";
|
import rewritePattern from "regexpu-core";
|
||||||
import * as regex from "babel-helper-regex";
|
import * as regex from "@babel/helper-regex";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as defineMap from "babel-helper-define-map";
|
import * as defineMap from "@babel/helper-define-map";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import build from "babel-helper-builder-binary-assignment-operator-visitor";
|
import build from "@babel/helper-builder-binary-assignment-operator-visitor";
|
||||||
import syntaxExponentiationOperator from "babel-plugin-syntax-exponentiation-operator";
|
import syntaxExponentiationOperator from "@babel/plugin-syntax-exponentiation-operator";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxExportExtensions from "babel-plugin-syntax-export-extensions";
|
import syntaxExportExtensions from "@babel/plugin-syntax-export-extensions";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxExportExtensions from "babel-plugin-syntax-export-extensions";
|
import syntaxExportExtensions from "@babel/plugin-syntax-export-extensions";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxFlow from "babel-plugin-syntax-flow";
|
import syntaxFlow from "@babel/plugin-syntax-flow";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
function wrapInFlowComment(path, parent) {
|
function wrapInFlowComment(path, parent) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxFlow from "babel-plugin-syntax-flow";
|
import syntaxFlow from "@babel/plugin-syntax-flow";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
const FLOW_DIRECTIVE = "@flow";
|
const FLOW_DIRECTIVE = "@flow";
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxFunctionBind from "babel-plugin-syntax-function-bind";
|
import syntaxFunctionBind from "@babel/plugin-syntax-function-bind";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
function getTempId(scope) {
|
function getTempId(scope) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import syntaxFunctionSent from "babel-plugin-syntax-function-sent";
|
import syntaxFunctionSent from "@babel/plugin-syntax-function-sent";
|
||||||
import wrapFunction from "babel-helper-wrap-function";
|
import wrapFunction from "@babel/helper-wrap-function";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
const isFunctionSent = node =>
|
const isFunctionSent = node =>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxNumericSeparator from "babel-plugin-syntax-numeric-separator";
|
import syntaxNumericSeparator from "@babel/plugin-syntax-numeric-separator";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
function replaceNumberArg({ node }) {
|
function replaceNumberArg({ node }) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxObjectRestSpread from "babel-plugin-syntax-object-rest-spread";
|
import syntaxObjectRestSpread from "@babel/plugin-syntax-object-rest-spread";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
function hasRestElement(path) {
|
function hasRestElement(path) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxOptionalCatchBinding from "babel-plugin-syntax-optional-catch-binding";
|
import syntaxOptionalCatchBinding from "@babel/plugin-syntax-optional-catch-binding";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxOptionalChaining from "babel-plugin-syntax-optional-chaining";
|
import syntaxOptionalChaining from "@babel/plugin-syntax-optional-chaining";
|
||||||
|
|
||||||
export default function({ types: t }, options) {
|
export default function({ types: t }, options) {
|
||||||
const { loose = false } = options;
|
const { loose = false } = options;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxPipelineOperator from "babel-plugin-syntax-pipeline-operator";
|
import syntaxPipelineOperator from "@babel/plugin-syntax-pipeline-operator";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import helper from "babel-helper-builder-react-jsx";
|
import helper from "@babel/helper-builder-react-jsx";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
function hasRefOrSpread(attrs) {
|
function hasRefOrSpread(attrs) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import helper from "babel-helper-builder-react-jsx";
|
import helper from "@babel/helper-builder-react-jsx";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import jsx from "babel-plugin-syntax-jsx";
|
import jsx from "@babel/plugin-syntax-jsx";
|
||||||
import helper from "babel-helper-builder-react-jsx";
|
import helper from "@babel/helper-builder-react-jsx";
|
||||||
|
|
||||||
export default function({ types: t }, options) {
|
export default function({ types: t }, options) {
|
||||||
const { pragma } = options;
|
const { pragma } = options;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { addDefault, isModule } from "babel-helper-module-imports";
|
import { addDefault, isModule } from "@babel/helper-module-imports";
|
||||||
|
|
||||||
import definitions from "./definitions";
|
import definitions from "./definitions";
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import * as t from "babel-types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxThrowExpressions from "babel-plugin-syntax-throw-expressions";
|
import syntaxThrowExpressions from "@babel/plugin-syntax-throw-expressions";
|
||||||
|
|
||||||
export default function({ types: t }) {
|
export default function({ types: t }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import syntaxTypeScript from "babel-plugin-syntax-typescript";
|
import syntaxTypeScript from "@babel/plugin-syntax-typescript";
|
||||||
|
|
||||||
import transpileEnum from "./enum";
|
import transpileEnum from "./enum";
|
||||||
|
|
||||||
|
|||||||
@ -1,28 +1,28 @@
|
|||||||
import transformES2015TemplateLiterals from "babel-plugin-transform-es2015-template-literals";
|
import transformES2015TemplateLiterals from "@babel/plugin-transform-es2015-template-literals";
|
||||||
import transformES2015Literals from "babel-plugin-transform-es2015-literals";
|
import transformES2015Literals from "@babel/plugin-transform-es2015-literals";
|
||||||
import transformES2015FunctionName from "babel-plugin-transform-es2015-function-name";
|
import transformES2015FunctionName from "@babel/plugin-transform-es2015-function-name";
|
||||||
import transformES2015ArrowFunctions from "babel-plugin-transform-es2015-arrow-functions";
|
import transformES2015ArrowFunctions from "@babel/plugin-transform-es2015-arrow-functions";
|
||||||
import transformES2015BlockScopedFunctions from "babel-plugin-transform-es2015-block-scoped-functions";
|
import transformES2015BlockScopedFunctions from "@babel/plugin-transform-es2015-block-scoped-functions";
|
||||||
import transformES2015Classes from "babel-plugin-transform-es2015-classes";
|
import transformES2015Classes from "@babel/plugin-transform-es2015-classes";
|
||||||
import transformES2015ObjectSuper from "babel-plugin-transform-es2015-object-super";
|
import transformES2015ObjectSuper from "@babel/plugin-transform-es2015-object-super";
|
||||||
import transformES2015ShorthandProperties from "babel-plugin-transform-es2015-shorthand-properties";
|
import transformES2015ShorthandProperties from "@babel/plugin-transform-es2015-shorthand-properties";
|
||||||
import transformES2015DuplicateKeys from "babel-plugin-transform-es2015-duplicate-keys";
|
import transformES2015DuplicateKeys from "@babel/plugin-transform-es2015-duplicate-keys";
|
||||||
import transformES2015ComputedProperties from "babel-plugin-transform-es2015-computed-properties";
|
import transformES2015ComputedProperties from "@babel/plugin-transform-es2015-computed-properties";
|
||||||
import transformES2015ForOf from "babel-plugin-transform-es2015-for-of";
|
import transformES2015ForOf from "@babel/plugin-transform-es2015-for-of";
|
||||||
import transformES2015StickyRegex from "babel-plugin-transform-es2015-sticky-regex";
|
import transformES2015StickyRegex from "@babel/plugin-transform-es2015-sticky-regex";
|
||||||
import transformES2015UnicodeRegex from "babel-plugin-transform-es2015-unicode-regex";
|
import transformES2015UnicodeRegex from "@babel/plugin-transform-es2015-unicode-regex";
|
||||||
import checkES2015Constants from "babel-plugin-check-es2015-constants";
|
import checkES2015Constants from "@babel/plugin-check-es2015-constants";
|
||||||
import transformES2015Spread from "babel-plugin-transform-es2015-spread";
|
import transformES2015Spread from "@babel/plugin-transform-es2015-spread";
|
||||||
import transformES2015Parameters from "babel-plugin-transform-es2015-parameters";
|
import transformES2015Parameters from "@babel/plugin-transform-es2015-parameters";
|
||||||
import transformES2015Destructuring from "babel-plugin-transform-es2015-destructuring";
|
import transformES2015Destructuring from "@babel/plugin-transform-es2015-destructuring";
|
||||||
import transformES2015BlockScoping from "babel-plugin-transform-es2015-block-scoping";
|
import transformES2015BlockScoping from "@babel/plugin-transform-es2015-block-scoping";
|
||||||
import transformES2015TypeofSymbol from "babel-plugin-transform-es2015-typeof-symbol";
|
import transformES2015TypeofSymbol from "@babel/plugin-transform-es2015-typeof-symbol";
|
||||||
import transformES2015ModulesCommonJS from "babel-plugin-transform-es2015-modules-commonjs";
|
import transformES2015ModulesCommonJS from "@babel/plugin-transform-es2015-modules-commonjs";
|
||||||
import transformES2015ModulesSystemJS from "babel-plugin-transform-es2015-modules-systemjs";
|
import transformES2015ModulesSystemJS from "@babel/plugin-transform-es2015-modules-systemjs";
|
||||||
import transformES2015ModulesAMD from "babel-plugin-transform-es2015-modules-amd";
|
import transformES2015ModulesAMD from "@babel/plugin-transform-es2015-modules-amd";
|
||||||
import transformES2015ModulesUMD from "babel-plugin-transform-es2015-modules-umd";
|
import transformES2015ModulesUMD from "@babel/plugin-transform-es2015-modules-umd";
|
||||||
import transformES2015Instanceof from "babel-plugin-transform-es2015-instanceof";
|
import transformES2015Instanceof from "@babel/plugin-transform-es2015-instanceof";
|
||||||
import transformRegenerator from "babel-plugin-transform-regenerator";
|
import transformRegenerator from "@babel/plugin-transform-regenerator";
|
||||||
|
|
||||||
export default function(context, opts = {}) {
|
export default function(context, opts = {}) {
|
||||||
const moduleTypes = ["commonjs", "amd", "umd", "systemjs"];
|
const moduleTypes = ["commonjs", "amd", "umd", "systemjs"];
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import transformExponentiationOperator from "babel-plugin-transform-exponentiation-operator";
|
import transformExponentiationOperator from "@babel/plugin-transform-exponentiation-operator";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import syntaxTrailingFunctionCommas from "babel-plugin-syntax-trailing-function-commas";
|
import syntaxTrailingFunctionCommas from "@babel/plugin-syntax-trailing-function-commas";
|
||||||
import transformAsyncToGenerator from "babel-plugin-transform-async-to-generator";
|
import transformAsyncToGenerator from "@babel/plugin-transform-async-to-generator";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import transformFlowStripTypes from "babel-plugin-transform-flow-strip-types";
|
import transformFlowStripTypes from "@babel/plugin-transform-flow-strip-types";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user