Skip to content

Commit a5fcf51

Browse files
authored
Update webpack.config.js
1 parent cb409c8 commit a5fcf51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webpack.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
use: [{
2020
loader: 'babel-loader',
2121
options: {
22-
"presets": [ [ "es2015" ] ],
22+
"presets": [ [ "env" ] ],
2323
"plugins": [ "transform-es2015-destructuring", "transform-object-rest-spread", "transform-runtime" ]
2424
}
2525
}],
@@ -38,7 +38,8 @@ module.exports = {
3838
// the "scss" and "sass" values for the lang attribute to the right configs here.
3939
// other preprocessors should work out of the box, no loader config like this nessessary.
4040
'scss': 'vue-style-loader!css-loader!sass-loader',
41-
'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
41+
'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax',
42+
'js': 'babel-loader?presets[]=env'
4243
}
4344
}
4445
}

0 commit comments

Comments
 (0)