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 { buildExternalHelpers } from "babel-core";
|
||||
import { buildExternalHelpers } from "@babel/core";
|
||||
|
||||
function collect(value, previousValue): Array<string> {
|
||||
// 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 commander from "commander";
|
||||
import { version } from "babel-core";
|
||||
import { version } from "@babel/core";
|
||||
import uniq from "lodash/uniq";
|
||||
import glob from "glob";
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import commander from "commander";
|
||||
import readdirRecursive from "fs-readdir-recursive";
|
||||
import * as babel from "babel-core";
|
||||
import * as babel from "@babel/core";
|
||||
import includes from "lodash/includes";
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
|
||||
@ -7,7 +7,7 @@ import merge from "lodash/merge";
|
||||
import removed from "./removed";
|
||||
import buildConfigChain from "./build-config-chain";
|
||||
import path from "path";
|
||||
import traverse from "babel-traverse";
|
||||
import traverse from "@babel/traverse";
|
||||
import clone from "lodash/clone";
|
||||
import { makeWeakCache } from "./caching";
|
||||
import { getEnv } from "./helpers/environment";
|
||||
|
||||
@ -8,9 +8,9 @@ export { resolvePlugin, resolvePreset } from "./config/loading/files";
|
||||
export { version } from "../package";
|
||||
export { getEnv } from "./config/helpers/environment";
|
||||
|
||||
export * as types from "babel-types";
|
||||
export { default as traverse } from "babel-traverse";
|
||||
export { default as template } from "babel-template";
|
||||
export * as types from "@babel/types";
|
||||
export { default as traverse } from "@babel/traverse";
|
||||
export { default as template } from "@babel/template";
|
||||
|
||||
import loadConfig from "./config";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import * as helpers from "babel-helpers";
|
||||
import generator from "babel-generator";
|
||||
import template from "babel-template";
|
||||
import * as t from "babel-types";
|
||||
import * as helpers from "@babel/helpers";
|
||||
import generator from "@babel/generator";
|
||||
import template from "@babel/template";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const buildUmdWrapper = template(`
|
||||
(function (root, factory) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @flow
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
import loadConfig from "./config";
|
||||
import runTransform, { type FileResult } from "./transformation";
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
// @flow
|
||||
|
||||
import getHelper from "babel-helpers";
|
||||
import { NodePath, Hub, Scope } from "babel-traverse";
|
||||
import { codeFrameColumns } from "babel-code-frame";
|
||||
import traverse from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import getHelper from "@babel/helpers";
|
||||
import { NodePath, Hub, Scope } from "@babel/traverse";
|
||||
import { codeFrameColumns } from "@babel/code-frame";
|
||||
import traverse from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
import type { NormalizedFile } from "../normalize-file";
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
import convertSourceMap, { type SourceMap } from "convert-source-map";
|
||||
import sourceMap from "source-map";
|
||||
import generate from "babel-generator";
|
||||
import generate from "@babel/generator";
|
||||
|
||||
import type File from "./file";
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @flow
|
||||
import traverse from "babel-traverse";
|
||||
import traverse from "@babel/traverse";
|
||||
import type { SourceMap } from "convert-source-map";
|
||||
|
||||
import type { ResolvedConfig, PluginPasses } from "../config";
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
import convertSourceMap, { typeof Converter } from "convert-source-map";
|
||||
import { parse } from "babylon";
|
||||
import { codeFrameColumns } from "babel-code-frame";
|
||||
import { codeFrameColumns } from "@babel/code-frame";
|
||||
|
||||
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) {
|
||||
if (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
import * as n from "../node";
|
||||
|
||||
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";
|
||||
|
||||
export function AnyTypeAnnotation() {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export function _params(node: Object) {
|
||||
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) {
|
||||
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) {
|
||||
this.word("with");
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
import jsesc from "jsesc";
|
||||
|
||||
export function Identifier(node: Object) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as whitespace from "./whitespace";
|
||||
import * as parens from "./parentheses";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
function expandAliases(obj) {
|
||||
const newObj = {};
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const PRECEDENCE = {
|
||||
"||": 0,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import map from "lodash/map";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
type WhitespaceObject = {
|
||||
before?: boolean,
|
||||
|
||||
@ -2,7 +2,7 @@ import isInteger from "lodash/isInteger";
|
||||
import repeat from "lodash/repeat";
|
||||
import Buffer from "./buffer";
|
||||
import * as n from "./node";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
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__";
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { NodePath } from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function bindifyDecorators(
|
||||
decorators: Array<NodePath>,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import explode from "babel-helper-explode-assignable-expression";
|
||||
import * as t from "babel-types";
|
||||
import explode from "@babel/helper-explode-assignable-expression";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function(opts: { build: Function, operator: string }): Object {
|
||||
const { build, operator } = opts;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import esutils from "esutils";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
type ElementState = {
|
||||
tagExpr: Object, // tag node
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import hoistVariables from "babel-helper-hoist-variables";
|
||||
import type { NodePath } from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import hoistVariables from "@babel/helper-hoist-variables";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const visitor = {
|
||||
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 * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
function toKind(node: Object) {
|
||||
if (t.isClassMethod(node) || t.isObjectMethod(node)) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { Scope } from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import type { Scope } from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
function getObjRef(node, nodes, file, scope) {
|
||||
let ref;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import bindifyDecorators from "babel-helper-bindify-decorators";
|
||||
import type { NodePath } from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import bindifyDecorators from "@babel/helper-bindify-decorators";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function(classPath) {
|
||||
classPath.assertClass();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import getFunctionArity from "babel-helper-get-function-arity";
|
||||
import template from "babel-template";
|
||||
import * as t from "babel-types";
|
||||
import getFunctionArity from "@babel/helper-get-function-arity";
|
||||
import template from "@babel/template";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const buildPropertyMethodAssignmentWrapper = template(`
|
||||
(function (FUNCTION_KEY) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function(node): number {
|
||||
const params: Array<Object> = node.params;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const visitor = {
|
||||
Scope(path, state) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
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
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import assert from "assert";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
import ImportBuilder from "./import-builder";
|
||||
import isModule from "./is-module";
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import assert from "assert";
|
||||
import * as t from "babel-types";
|
||||
import template from "babel-template";
|
||||
import * as t from "@babel/types";
|
||||
import template from "@babel/template";
|
||||
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 rewriteLiveReferences from "./rewrite-live-references";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { basename, extname } from "path";
|
||||
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export type ModuleMetadata = {
|
||||
exportName: string,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import assert from "assert";
|
||||
import * as t from "babel-types";
|
||||
import template from "babel-template";
|
||||
import simplifyAccess from "babel-helper-simple-access";
|
||||
import * as t from "@babel/types";
|
||||
import template from "@babel/template";
|
||||
import simplifyAccess from "@babel/helper-simple-access";
|
||||
|
||||
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) {
|
||||
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";
|
||||
|
||||
export default function(loc) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as t from "babel-types";
|
||||
import template from "babel-template";
|
||||
import * as t from "@babel/types";
|
||||
import template from "@babel/template";
|
||||
|
||||
const awaitTemplate = `
|
||||
function* wrapper() {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/* @noflow */
|
||||
|
||||
import type { NodePath } from "babel-traverse";
|
||||
import wrapFunction from "babel-helper-wrap-function";
|
||||
import * as t from "babel-types";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import wrapFunction from "@babel/helper-wrap-function";
|
||||
import * as t from "@babel/types";
|
||||
import rewriteForAwait from "./for-await";
|
||||
|
||||
const awaitVisitor = {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { NodePath, Scope } from "babel-traverse";
|
||||
import optimiseCall from "babel-helper-optimise-call-expression";
|
||||
import * as t from "babel-types";
|
||||
import type { NodePath, Scope } from "@babel/traverse";
|
||||
import optimiseCall from "@babel/helper-optimise-call-expression";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
// ✌️
|
||||
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) {
|
||||
path.traverse(simpleAssignmentVisitor, {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import * as babel from "babel-core";
|
||||
import { buildExternalHelpers } from "babel-core";
|
||||
import getFixtures from "babel-helper-fixtures";
|
||||
import * as babel from "@babel/core";
|
||||
import { buildExternalHelpers } from "@babel/core";
|
||||
import getFixtures from "@babel/helper-fixtures";
|
||||
import sourceMap from "source-map";
|
||||
import { codeFrameColumns } from "babel-code-frame";
|
||||
import { codeFrameColumns } from "@babel/code-frame";
|
||||
import defaults from "lodash/defaults";
|
||||
import includes from "lodash/includes";
|
||||
import * as helpers from "./helpers";
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { NodePath } from "babel-traverse";
|
||||
import nameFunction from "babel-helper-function-name";
|
||||
import template from "babel-template";
|
||||
import * as t from "babel-types";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import nameFunction from "@babel/helper-function-name";
|
||||
import template from "@babel/template";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const buildWrapper = template(`
|
||||
(() => {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/* eslint max-len: "off" */
|
||||
|
||||
import template from "babel-template";
|
||||
import template from "@babel/template";
|
||||
|
||||
const helpers = {};
|
||||
export default helpers;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import traverse from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import traverse from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
import helpers from "./helpers";
|
||||
|
||||
function makePath(path) {
|
||||
|
||||
@ -3,10 +3,10 @@ import Module from "module";
|
||||
import { inspect } from "util";
|
||||
import path from "path";
|
||||
import repl from "repl";
|
||||
import * as babel from "babel-core";
|
||||
import * as babel from "@babel/core";
|
||||
import vm from "vm";
|
||||
import "babel-polyfill";
|
||||
import register from "babel-register";
|
||||
import register from "@babel/register";
|
||||
|
||||
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() {
|
||||
return {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
|
||||
import syntaxAsyncGenerators from "babel-plugin-syntax-async-generators";
|
||||
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
|
||||
import syntaxAsyncGenerators from "@babel/plugin-syntax-async-generators";
|
||||
|
||||
export default function({ types: t }) {
|
||||
const yieldStarVisitor = {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
|
||||
import syntaxAsyncFunctions from "babel-plugin-syntax-async-functions";
|
||||
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
|
||||
import syntaxAsyncFunctions from "@babel/plugin-syntax-async-functions";
|
||||
|
||||
export default function() {
|
||||
return {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
|
||||
import syntaxAsyncFunctions from "babel-plugin-syntax-async-functions";
|
||||
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
|
||||
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) {
|
||||
const { method, module } = options;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import nameFunction from "babel-helper-function-name";
|
||||
import template from "babel-template";
|
||||
import syntaxClassProperties from "babel-plugin-syntax-class-properties";
|
||||
import nameFunction from "@babel/helper-function-name";
|
||||
import template from "@babel/template";
|
||||
import syntaxClassProperties from "@babel/plugin-syntax-class-properties";
|
||||
|
||||
export default function({ types: t }, options) {
|
||||
const { loose } = options;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Fork of https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy
|
||||
|
||||
import template from "babel-template";
|
||||
import syntaxDecorators from "babel-plugin-syntax-decorators";
|
||||
import template from "@babel/template";
|
||||
import syntaxDecorators from "@babel/plugin-syntax-decorators";
|
||||
|
||||
const buildClassDecorator = template(`
|
||||
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() {
|
||||
return {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import type NodePath from "babel-traverse";
|
||||
import type NodePath from "@babel/traverse";
|
||||
|
||||
export default function(babel, options) {
|
||||
const { spec } = options;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import type NodePath from "babel-traverse";
|
||||
import type Scope from "babel-traverse";
|
||||
import type NodePath from "@babel/traverse";
|
||||
import type Scope from "@babel/traverse";
|
||||
import type File from "../../../file";
|
||||
import traverse from "babel-traverse";
|
||||
import traverse from "@babel/traverse";
|
||||
import { visitor as tdzVisitor } from "./tdz";
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
import values from "lodash/values";
|
||||
import extend from "lodash/extend";
|
||||
import template from "babel-template";
|
||||
import template from "@babel/template";
|
||||
|
||||
const DONE = new WeakSet();
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
function getTDZStatus(refPath, bindingPath) {
|
||||
const executionStatus = bindingPath._guessExecutionStatusRelativeTo(refPath);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import LooseTransformer from "./loose";
|
||||
import VanillaTransformer from "./vanilla";
|
||||
import annotateAsPure from "babel-helper-annotate-as-pure";
|
||||
import nameFunction from "babel-helper-function-name";
|
||||
import annotateAsPure from "@babel/helper-annotate-as-pure";
|
||||
import nameFunction from "@babel/helper-function-name";
|
||||
|
||||
export default function({ types: t }, options) {
|
||||
const { loose } = options;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { Scope } from "babel-traverse";
|
||||
import * as t from "babel-types";
|
||||
import type { Scope } from "@babel/traverse";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function(
|
||||
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 * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default class LooseClassTransformer extends VanillaTransformer {
|
||||
constructor() {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import type { NodePath } from "babel-traverse";
|
||||
import { visitors } from "babel-traverse";
|
||||
import ReplaceSupers from "babel-helper-replace-supers";
|
||||
import optimiseCall from "babel-helper-optimise-call-expression";
|
||||
import * as defineMap from "babel-helper-define-map";
|
||||
import template from "babel-template";
|
||||
import * as t from "babel-types";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import { visitors } from "@babel/traverse";
|
||||
import ReplaceSupers from "@babel/helper-replace-supers";
|
||||
import optimiseCall from "@babel/helper-optimise-call-expression";
|
||||
import * as defineMap from "@babel/helper-define-map";
|
||||
import template from "@babel/template";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const buildDerivedConstructor = template(`
|
||||
(function () {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
function getName(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() {
|
||||
return {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import template from "babel-template";
|
||||
import template from "@babel/template";
|
||||
import {
|
||||
isModule,
|
||||
rewriteModuleStatementsAndPrepareHeader,
|
||||
@ -7,7 +7,7 @@ import {
|
||||
buildNamespaceInitStatements,
|
||||
ensureStatementsHoisted,
|
||||
wrapInterop,
|
||||
} from "babel-helper-module-transforms";
|
||||
} from "@babel/helper-module-transforms";
|
||||
|
||||
const buildWrapper = template(`
|
||||
define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {
|
||||
|
||||
@ -5,8 +5,8 @@ import {
|
||||
buildNamespaceInitStatements,
|
||||
ensureStatementsHoisted,
|
||||
wrapInterop,
|
||||
} from "babel-helper-module-transforms";
|
||||
import simplifyAccess from "babel-helper-simple-access";
|
||||
} from "@babel/helper-module-transforms";
|
||||
import simplifyAccess from "@babel/helper-simple-access";
|
||||
|
||||
export default function({ types: t, template }, options) {
|
||||
const {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import hoistVariables from "babel-helper-hoist-variables";
|
||||
import template from "babel-template";
|
||||
import hoistVariables from "@babel/helper-hoist-variables";
|
||||
import template from "@babel/template";
|
||||
|
||||
const buildTemplate = template(`
|
||||
SYSTEM_REGISTER(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { basename, extname } from "path";
|
||||
import template from "babel-template";
|
||||
import template from "@babel/template";
|
||||
import {
|
||||
isModule,
|
||||
rewriteModuleStatementsAndPrepareHeader,
|
||||
@ -8,7 +8,7 @@ import {
|
||||
buildNamespaceInitStatements,
|
||||
ensureStatementsHoisted,
|
||||
wrapInterop,
|
||||
} from "babel-helper-module-transforms";
|
||||
} from "@babel/helper-module-transforms";
|
||||
|
||||
const buildPrerequisiteAssignment = template(`
|
||||
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) {
|
||||
const replaceSupers = new ReplaceSupers({
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import callDelegate from "babel-helper-call-delegate";
|
||||
import template from "babel-template";
|
||||
import * as t from "babel-types";
|
||||
import callDelegate from "@babel/helper-call-delegate";
|
||||
import template from "@babel/template";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const buildDefaultParam = template(`
|
||||
let VARIABLE_NAME =
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import template from "babel-template";
|
||||
import * as t from "babel-types";
|
||||
import template from "@babel/template";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
const buildRest = template(`
|
||||
for (var LEN = ARGUMENTS.length,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function() {
|
||||
return {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as regex from "babel-helper-regex";
|
||||
import * as t from "babel-types";
|
||||
import * as regex from "@babel/helper-regex";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function() {
|
||||
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) {
|
||||
const { loose } = options;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import rewritePattern from "regexpu-core";
|
||||
import * as regex from "babel-helper-regex";
|
||||
import * as regex from "@babel/helper-regex";
|
||||
|
||||
export default function() {
|
||||
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 }) {
|
||||
return {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import build from "babel-helper-builder-binary-assignment-operator-visitor";
|
||||
import syntaxExponentiationOperator from "babel-plugin-syntax-exponentiation-operator";
|
||||
import build from "@babel/helper-builder-binary-assignment-operator-visitor";
|
||||
import syntaxExponentiationOperator from "@babel/plugin-syntax-exponentiation-operator";
|
||||
|
||||
export default function({ types: t }) {
|
||||
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 }) {
|
||||
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 }) {
|
||||
return {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import syntaxFlow from "babel-plugin-syntax-flow";
|
||||
import syntaxFlow from "@babel/plugin-syntax-flow";
|
||||
|
||||
export default function({ types: t }) {
|
||||
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 }) {
|
||||
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 }) {
|
||||
function getTempId(scope) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import syntaxFunctionSent from "babel-plugin-syntax-function-sent";
|
||||
import wrapFunction from "babel-helper-wrap-function";
|
||||
import syntaxFunctionSent from "@babel/plugin-syntax-function-sent";
|
||||
import wrapFunction from "@babel/helper-wrap-function";
|
||||
|
||||
export default function({ types: t }) {
|
||||
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 }) {
|
||||
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 }) {
|
||||
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() {
|
||||
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) {
|
||||
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 }) {
|
||||
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 }) {
|
||||
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 }) {
|
||||
return {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import jsx from "babel-plugin-syntax-jsx";
|
||||
import helper from "babel-helper-builder-react-jsx";
|
||||
import jsx from "@babel/plugin-syntax-jsx";
|
||||
import helper from "@babel/helper-builder-react-jsx";
|
||||
|
||||
export default function({ types: t }, 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";
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as t from "babel-types";
|
||||
import * as t from "@babel/types";
|
||||
|
||||
export default function() {
|
||||
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 }) {
|
||||
return {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import syntaxTypeScript from "babel-plugin-syntax-typescript";
|
||||
import syntaxTypeScript from "@babel/plugin-syntax-typescript";
|
||||
|
||||
import transpileEnum from "./enum";
|
||||
|
||||
|
||||
@ -1,28 +1,28 @@
|
||||
import transformES2015TemplateLiterals from "babel-plugin-transform-es2015-template-literals";
|
||||
import transformES2015Literals from "babel-plugin-transform-es2015-literals";
|
||||
import transformES2015FunctionName from "babel-plugin-transform-es2015-function-name";
|
||||
import transformES2015ArrowFunctions from "babel-plugin-transform-es2015-arrow-functions";
|
||||
import transformES2015BlockScopedFunctions from "babel-plugin-transform-es2015-block-scoped-functions";
|
||||
import transformES2015Classes from "babel-plugin-transform-es2015-classes";
|
||||
import transformES2015ObjectSuper from "babel-plugin-transform-es2015-object-super";
|
||||
import transformES2015ShorthandProperties from "babel-plugin-transform-es2015-shorthand-properties";
|
||||
import transformES2015DuplicateKeys from "babel-plugin-transform-es2015-duplicate-keys";
|
||||
import transformES2015ComputedProperties from "babel-plugin-transform-es2015-computed-properties";
|
||||
import transformES2015ForOf from "babel-plugin-transform-es2015-for-of";
|
||||
import transformES2015StickyRegex from "babel-plugin-transform-es2015-sticky-regex";
|
||||
import transformES2015UnicodeRegex from "babel-plugin-transform-es2015-unicode-regex";
|
||||
import checkES2015Constants from "babel-plugin-check-es2015-constants";
|
||||
import transformES2015Spread from "babel-plugin-transform-es2015-spread";
|
||||
import transformES2015Parameters from "babel-plugin-transform-es2015-parameters";
|
||||
import transformES2015Destructuring from "babel-plugin-transform-es2015-destructuring";
|
||||
import transformES2015BlockScoping from "babel-plugin-transform-es2015-block-scoping";
|
||||
import transformES2015TypeofSymbol from "babel-plugin-transform-es2015-typeof-symbol";
|
||||
import transformES2015ModulesCommonJS from "babel-plugin-transform-es2015-modules-commonjs";
|
||||
import transformES2015ModulesSystemJS from "babel-plugin-transform-es2015-modules-systemjs";
|
||||
import transformES2015ModulesAMD from "babel-plugin-transform-es2015-modules-amd";
|
||||
import transformES2015ModulesUMD from "babel-plugin-transform-es2015-modules-umd";
|
||||
import transformES2015Instanceof from "babel-plugin-transform-es2015-instanceof";
|
||||
import transformRegenerator from "babel-plugin-transform-regenerator";
|
||||
import transformES2015TemplateLiterals from "@babel/plugin-transform-es2015-template-literals";
|
||||
import transformES2015Literals from "@babel/plugin-transform-es2015-literals";
|
||||
import transformES2015FunctionName from "@babel/plugin-transform-es2015-function-name";
|
||||
import transformES2015ArrowFunctions from "@babel/plugin-transform-es2015-arrow-functions";
|
||||
import transformES2015BlockScopedFunctions from "@babel/plugin-transform-es2015-block-scoped-functions";
|
||||
import transformES2015Classes from "@babel/plugin-transform-es2015-classes";
|
||||
import transformES2015ObjectSuper from "@babel/plugin-transform-es2015-object-super";
|
||||
import transformES2015ShorthandProperties from "@babel/plugin-transform-es2015-shorthand-properties";
|
||||
import transformES2015DuplicateKeys from "@babel/plugin-transform-es2015-duplicate-keys";
|
||||
import transformES2015ComputedProperties from "@babel/plugin-transform-es2015-computed-properties";
|
||||
import transformES2015ForOf from "@babel/plugin-transform-es2015-for-of";
|
||||
import transformES2015StickyRegex from "@babel/plugin-transform-es2015-sticky-regex";
|
||||
import transformES2015UnicodeRegex from "@babel/plugin-transform-es2015-unicode-regex";
|
||||
import checkES2015Constants from "@babel/plugin-check-es2015-constants";
|
||||
import transformES2015Spread from "@babel/plugin-transform-es2015-spread";
|
||||
import transformES2015Parameters from "@babel/plugin-transform-es2015-parameters";
|
||||
import transformES2015Destructuring from "@babel/plugin-transform-es2015-destructuring";
|
||||
import transformES2015BlockScoping from "@babel/plugin-transform-es2015-block-scoping";
|
||||
import transformES2015TypeofSymbol from "@babel/plugin-transform-es2015-typeof-symbol";
|
||||
import transformES2015ModulesCommonJS from "@babel/plugin-transform-es2015-modules-commonjs";
|
||||
import transformES2015ModulesSystemJS from "@babel/plugin-transform-es2015-modules-systemjs";
|
||||
import transformES2015ModulesAMD from "@babel/plugin-transform-es2015-modules-amd";
|
||||
import transformES2015ModulesUMD from "@babel/plugin-transform-es2015-modules-umd";
|
||||
import transformES2015Instanceof from "@babel/plugin-transform-es2015-instanceof";
|
||||
import transformRegenerator from "@babel/plugin-transform-regenerator";
|
||||
|
||||
export default function(context, opts = {}) {
|
||||
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() {
|
||||
return {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import syntaxTrailingFunctionCommas from "babel-plugin-syntax-trailing-function-commas";
|
||||
import transformAsyncToGenerator from "babel-plugin-transform-async-to-generator";
|
||||
import syntaxTrailingFunctionCommas from "@babel/plugin-syntax-trailing-function-commas";
|
||||
import transformAsyncToGenerator from "@babel/plugin-transform-async-to-generator";
|
||||
|
||||
export default function() {
|
||||
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() {
|
||||
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