Remove babel-node from babel-cli (#6251)

* Remove babel-node from babel-cli

* Use new Array instead of Array for V8 optimization

* Remove extraneous use strict clauses

* Require babel-node in babel-cli

* Remove babel-node from babel-cli

* Require babel-node in babel-cli

* Remove babel-node executable from babel-cli

* Clean up babel-node from package.json
This commit is contained in:
Pranav Prakash
2017-09-23 23:55:28 +05:30
committed by Logan Smyth
parent b115ea5da7
commit 2374062bbd
27 changed files with 1 additions and 382 deletions

View File

@@ -1,4 +0,0 @@
{
"args": ["--eval", "console.log([1, 2, 3].map(x => x * x));"],
"stdout": "[ 1, 4, 9 ]"
}

View File

@@ -1 +0,0 @@
console.log([1, 2, 3].map(x => x * x));

View File

@@ -1,4 +0,0 @@
{
"args": ["foo", "--extensions", ".bar"],
"stdout": "[ 1, 4, 9 ]"
}

View File

@@ -1,4 +0,0 @@
{
"args": ["--print", "--eval", "([1, 2, 3].map(x => x * x))"],
"stdout": "[ 1, 4, 9 ]"
}

View File

@@ -1 +0,0 @@
console.log(process.argv[2]);

View File

@@ -1,4 +0,0 @@
{
"args": ["bar", "foo"],
"stdout": "foo"
}

View File

@@ -1,2 +0,0 @@
var foo = () => console.log("foo");
foo();

View File

@@ -1,3 +0,0 @@
{
"args": ["foo"]
}

View File

@@ -1,2 +0,0 @@
var foo = () => console.log("foo");
foo();

View File

@@ -1,3 +0,0 @@
{
"args": ["bar"]
}

View File

@@ -1 +0,0 @@
foo

View File

@@ -1,4 +0,0 @@
{
"args": ["--eval","--print", "var a = 1;"],
"stdout": "undefined"
}

View File

@@ -1,2 +0,0 @@
var bar = () => console.log("bar");
bar();

View File

@@ -1,5 +0,0 @@
import "./bar2";
import "./not_node_modules";
var foo = () => console.log("foo");
foo();

View File

@@ -1,10 +0,0 @@
/*
The purpose of this file is to test that the node_modules check in the require
hook doesn't mistakenly exclude something like "not_node_modules". To pass, this
file merely needs to be transpiled. The transpiled code won't, and doesn't need
to, execute without error. It won't execute because React will be undefined.
*/
try {
<Some jsx="element" />;
}
catch (e) {}

View File

@@ -1,3 +0,0 @@
{
"args": ["foo2"]
}

View File

@@ -1,2 +0,0 @@
bar
foo

View File

@@ -1,4 +0,0 @@
{
"args": ["--expose-gc-as=garbageCollector", "--eval", "console.log(typeof global.garbageCollector)"],
"stdout": "function"
}

View File

@@ -1,4 +0,0 @@
{
"args": ["--expose-gc", "--eval", "console.log(typeof global.gc)"],
"stdout": "function"
}

View File

@@ -1,4 +0,0 @@
{
"args": ["--expose_gc_as=garbageCollector", "--eval", "console.log(typeof global.garbageCollector)"],
"stdout": "function"
}

View File

@@ -1,4 +0,0 @@
{
"args": ["--expose_gc", "--eval", "console.log(typeof global.gc)"],
"stdout": "function"
}