Inline shebang-regex (#4650)

This commit is contained in:
Daniel Tschinder
2016-10-04 02:58:26 +02:00
committed by Henry Zhu
parent c57e0e88a5
commit e0dbb1e770
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ import convertSourceMap from "convert-source-map";
import OptionManager from "./options/option-manager";
import type Pipeline from "../pipeline";
import PluginPass from "../plugin-pass";
import shebangRegex from "shebang-regex";
import { NodePath, Hub, Scope } from "babel-traverse";
import sourceMap from "source-map";
import generate from "babel-generator";
@@ -26,6 +25,8 @@ import resolve from "../../helpers/resolve";
import blockHoistPlugin from "../internal-plugins/block-hoist";
import shadowFunctionsPlugin from "../internal-plugins/shadow-functions";
const shebangRegex = /^#!.*/;
const INTERNAL_PLUGINS = [
[blockHoistPlugin],
[shadowFunctionsPlugin]