Skip to content

Commit a7d5746

Browse files
committedSep 26, 2017
[UPDATE]: Adicionado babel loader.
1 parent 48fba69 commit a7d5746

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed
 

‎webpack.config.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,20 @@ module.exports = {
88
},
99
devServer: {
1010
contentBase: path.resolve( 'app')
11+
},
12+
module: {
13+
rules: [
14+
{
15+
test: /\.js$/,
16+
exclude: /(node_modules|bower_components|api|lib)/,
17+
use: {
18+
loader: 'babel-loader',
19+
options: {
20+
presets: [ 'env' ],
21+
plugins: [ require( 'babel-plugin-transform-object-rest-spread' ) ]
22+
}
23+
}
24+
}
25+
]
1126
}
12-
}
27+
};

0 commit comments

Comments
 (0)
Please sign in to comment.