We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb409c8 commit a5fcf51Copy full SHA for a5fcf51
webpack.config.js
@@ -19,7 +19,7 @@ module.exports = {
19
use: [{
20
loader: 'babel-loader',
21
options: {
22
- "presets": [ [ "es2015" ] ],
+ "presets": [ [ "env" ] ],
23
"plugins": [ "transform-es2015-destructuring", "transform-object-rest-spread", "transform-runtime" ]
24
}
25
}],
@@ -38,7 +38,8 @@ module.exports = {
38
// the "scss" and "sass" values for the lang attribute to the right configs here.
39
// other preprocessors should work out of the box, no loader config like this nessessary.
40
'scss': 'vue-style-loader!css-loader!sass-loader',
41
- 'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
+ 'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax',
42
+ 'js': 'babel-loader?presets[]=env'
43
44
45
0 commit comments