Skip to content

Commit 49dd19d

Browse files
committed
perf(babel-runtime): Set the optional option to runtime and removed runtime.js
1 parent cb52315 commit 49dd19d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"stage":2,
33
"loose":"all",
4-
"optional":[],
4+
"optional":['runtime'],
55
"compact":true
66
}

webpack.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ module.exports = {
2626
new webpack.NoErrorsPlugin(),
2727
new webpack.DefinePlugin(build),
2828
new webpack.ProvidePlugin({
29-
'regeneratorRuntime':'imports?this=>global!exports?global.regeneratorRuntime!regenerator/runtime.js',
3029
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch',
3130
'fetchJsonp': 'fetch-jsonp'
3231
}),
33-
new webpack.optimize.DedupePlugin()
34-
],
32+
new webpack.optimize.DedupePlugin(),
33+
],
3534
stats: {
3635
// Nice colored output
3736
colors: true

0 commit comments

Comments
 (0)