Skip to content

Commit 47984e3

Browse files
revert: feat: do not depend on babel-polyfill
This reverts commit db11d56.
1 parent bd5773b commit 47984e3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

config/babel.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
'use strict'
22

33
module.exports = {
4-
plugins: [[require.resolve('babel-plugin-transform-runtime'), {
5-
regenerator: false
6-
}]],
74
presets: [require.resolve('babel-preset-es2015')]
85
}

config/karma.conf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
const path = require('path')
34
const webpackConfig = require('./webpack')
45
const timeout = webpackConfig.timeout
56

@@ -25,6 +26,7 @@ module.exports = function (config) {
2526
}
2627
},
2728
files: [
29+
path.join(require.resolve('babel-polyfill'), '/../../dist/polyfill.js'),
2830
'test/browser.js',
2931
'test/**/*.spec.js'
3032
],

config/webpack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const specific = merge(custom1, custom2)
3131

3232
const shared = {
3333
entry: [
34+
require.resolve('babel-polyfill'),
3435
path.resolve('src/index.js')
3536
],
3637
output: {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"args-parser": "^1.0.2",
2828
"babel-core": "^6.11.4",
2929
"babel-loader": "^6.2.4",
30-
"babel-plugin-transform-runtime": "^6.12.0",
30+
"babel-polyfill": "^6.9.1",
3131
"babel-preset-es2015": "^6.9.0",
3232
"brfs": "^1.4.3",
3333
"chalk": "^1.1.3",
@@ -92,4 +92,4 @@
9292
"Stephen Whitmore <[email protected]>",
9393
"greenkeeperio-bot <[email protected]>"
9494
]
95-
}
95+
}

0 commit comments

Comments
 (0)