Move the deeply nested option logic to a toplevel folder.
This commit is contained in:
parent
6c4810cea5
commit
12a2124d16
@ -1,5 +1,5 @@
|
||||
import * as babel from "../../../index";
|
||||
import resolve from "../../../helpers/resolve";
|
||||
import * as babel from "../index";
|
||||
import resolve from "../helpers/resolve";
|
||||
import json5 from "json5";
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
@ -1,15 +1,15 @@
|
||||
import * as context from "../../../index";
|
||||
import * as context from "../index";
|
||||
import Plugin from "./plugin";
|
||||
import * as messages from "babel-messages";
|
||||
import resolvePlugin from "../../../helpers/resolve-plugin";
|
||||
import resolvePreset from "../../../helpers/resolve-preset";
|
||||
import resolvePlugin from "../helpers/resolve-plugin";
|
||||
import resolvePreset from "../helpers/resolve-preset";
|
||||
import defaults from "lodash/defaults";
|
||||
import cloneDeepWith from "lodash/cloneDeepWith";
|
||||
import merge from "../../../helpers/merge";
|
||||
import merge from "../helpers/merge";
|
||||
import removed from "./removed";
|
||||
import buildConfigChain from "./build-config-chain";
|
||||
import path from "path";
|
||||
import * as util from "../../../util";
|
||||
import * as util from "../util";
|
||||
|
||||
type PluginObject = {
|
||||
pre?: Function;
|
||||
@ -11,7 +11,7 @@ export * as types from "babel-types";
|
||||
export traverse from "babel-traverse";
|
||||
export template from "babel-template";
|
||||
|
||||
export OptionManager from "./transformation/file/options/option-manager";
|
||||
export OptionManager from "./config/option-manager";
|
||||
|
||||
export function Plugin(alias) {
|
||||
throw new Error(`The (${alias}) Babel 5 plugin is being run with Babel 6.`);
|
||||
|
||||
@ -16,7 +16,7 @@ import path from "path";
|
||||
import * as t from "babel-types";
|
||||
|
||||
import resolve from "../../helpers/resolve";
|
||||
import OptionManager from "./options/option-manager";
|
||||
import OptionManager from "../../config/option-manager";
|
||||
|
||||
import blockHoistPlugin from "../internal-plugins/block-hoist";
|
||||
import shadowFunctionsPlugin from "../internal-plugins/shadow-functions";
|
||||
|
||||
@ -3,7 +3,7 @@ import fs from "fs";
|
||||
|
||||
import normalizeAst from "../helpers/normalize-ast";
|
||||
import File from "./file";
|
||||
import OptionManager from "./file/options/option-manager";
|
||||
import OptionManager from "../config/option-manager";
|
||||
|
||||
export function analyse(code: string, opts: Object = {}, visitor?: Object): ?BabelFileMetadata {
|
||||
opts.code = false;
|
||||
|
||||
@ -2,7 +2,7 @@ import * as babel from "../lib/index";
|
||||
import buildExternalHelpers from "../lib/tools/build-external-helpers";
|
||||
import sourceMap from "source-map";
|
||||
import assert from "assert";
|
||||
import Plugin from "../lib/transformation/file/options/plugin";
|
||||
import Plugin from "../lib/config/plugin";
|
||||
import generator from "babel-generator";
|
||||
|
||||
function assertIgnored(result) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import assert from "assert";
|
||||
import path from "path";
|
||||
import buildConfigChain from "../lib/transformation/file/options/build-config-chain";
|
||||
import buildConfigChain from "../lib/config/build-config-chain";
|
||||
|
||||
function fixture() {
|
||||
const args = [__dirname, "fixtures", "config"];
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import assert from "assert";
|
||||
import OptionManager from "../lib/transformation/file/options/option-manager";
|
||||
import OptionManager from "../lib/config/option-manager";
|
||||
import path from "path";
|
||||
|
||||
describe("option-manager", () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { transform } from "../lib/index";
|
||||
import Plugin from "../lib/transformation/file/options/plugin";
|
||||
import Plugin from "../lib/config/plugin";
|
||||
import chai from "chai";
|
||||
|
||||
describe("traversal path", function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user