Skip to content

Commit 482abf2

Browse files
committed
Use new babel in kitchensink
1 parent ca7516d commit 482abf2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["react-app"],
3-
"plugins": ["babel-plugin-transform-es2015-modules-commonjs"]
3+
"plugins": ["@babel/plugin-transform-modules-commonjs"]
44
}

packages/react-scripts/fixtures/kitchensink/.template.dependencies.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"dependencies": {
3-
"babel-register": "6.22.0",
4-
"babel-plugin-transform-es2015-modules-commonjs": "6.22.0",
5-
"babel-polyfill": "6.20.0",
3+
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.34",
4+
"@babel/polyfill": "7.0.0-beta.34",
5+
"@babel/register": "7.0.0-beta.34",
66
"chai": "3.5.0",
77
"jsdom": "9.8.3",
88
"mocha": "3.2.0",

tasks/e2e-kitchensink.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ E2E_URL="http://localhost:3001" \
223223
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
224224
CI=true NODE_PATH=src \
225225
NODE_ENV=development \
226-
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
226+
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js
227227

228228
# Test "production" environment
229229
E2E_FILE=./build/index.html \
230230
CI=true \
231231
NODE_PATH=src \
232232
NODE_ENV=production \
233233
PUBLIC_URL=http://www.example.org/spa/ \
234-
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
234+
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js
235235

236236
# ******************************************************************************
237237
# Finally, let's check that everything still works after ejecting.
@@ -285,15 +285,15 @@ E2E_URL="http://localhost:3002" \
285285
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
286286
CI=true NODE_PATH=src \
287287
NODE_ENV=development \
288-
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
288+
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js
289289

290290
# Test "production" environment
291291
E2E_FILE=./build/index.html \
292292
CI=true \
293293
NODE_ENV=production \
294294
NODE_PATH=src \
295295
PUBLIC_URL=http://www.example.org/spa/ \
296-
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/*.test.js
296+
node_modules/.bin/mocha --require @babel/register --require @babel/polyfill integration/*.test.js
297297

298298
# Cleanup
299299
cleanup

0 commit comments

Comments
 (0)