Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 515a7fa

Browse files
major: Upgrade to Babel 7
2 parents 89685c4 + 67da143 commit 515a7fa

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const defaultOptions = {
1919
{
2020
loader: require.resolve('babel-loader'),
2121
options: {
22-
presets: ['babel-preset-env', 'babel-preset-react'].map(require.resolve),
22+
presets: ['@babel/preset-env', '@babel/preset-react'].map(require.resolve),
2323
},
2424
},
2525
],
@@ -146,9 +146,7 @@ const preprocessor = (options = {}) => {
146146
log('watching')
147147
}
148148

149-
const bundler = file.shouldWatch
150-
? compiler.watch(watchOptions, handle)
151-
: compiler.run(handle)
149+
const bundler = file.shouldWatch ? compiler.watch(watchOptions, handle) : compiler.run(handle)
152150

153151
// when the spec or project is closed, we need to clean up the cached
154152
// bundle promise and stop the watcher via `bundler.close()`

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"sinon-chai": "2.13.0"
5656
},
5757
"dependencies": {
58-
"babel-core": "6.26.0",
59-
"babel-loader": "7.1.4",
60-
"babel-preset-env": "1.6.0",
61-
"babel-preset-react": "6.24.1",
58+
"@babel/core": "^7.0.0",
59+
"@babel/preset-env": "^7.0.0",
60+
"@babel/preset-react": "^7.0.0",
61+
"babel-loader": "^8.0.0",
6262
"bluebird": "3.5.0",
6363
"debug": "3.1.0",
6464
"lodash.clonedeep": "4.5.0",

0 commit comments

Comments
 (0)