Remove circular dependency (#10405)
* Remove circular dependency * Move @babel/runtime test to @babel/runtime
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
"source-map": "^0.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helper-transform-fixture-test-runner": "^7.6.0",
|
||||
"@babel/register": "^7.6.0"
|
||||
"@babel/helper-transform-fixture-test-runner": "^7.6.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
import browserify from "browserify";
|
||||
import path from "path";
|
||||
import vm from "vm";
|
||||
|
||||
describe("browserify", function() {
|
||||
it("@babel/register may be used without breaking browserify", function(done) {
|
||||
const bundler = browserify(
|
||||
path.join(__dirname, "fixtures/browserify/register.js"),
|
||||
);
|
||||
|
||||
bundler.bundle(function(err, bundle) {
|
||||
if (err) return done(err);
|
||||
expect(bundle.length).toBeTruthy();
|
||||
|
||||
// ensure that the code runs without throwing an exception
|
||||
vm.runInNewContext("var global = this;\n" + bundle, {});
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -1,3 +0,0 @@
|
||||
require("@babel/register").default({
|
||||
ignore: false
|
||||
});
|
||||
Reference in New Issue
Block a user