This commit is contained in:
Albert Juhé Lluveras 2019-08-23 18:07:39 +02:00 committed by GitHub
parent 9d8d083363
commit 5eb588b50a
1 changed files with 14 additions and 0 deletions

View File

@ -68,6 +68,20 @@ const CoreConfig = {
// See https://webpack.js.org/configuration/output/#outputjsonpfunction
jsonpFunction: 'webpackWcBlocksJsonp',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader?cacheDirectory',
options: {
presets: [ '@wordpress/babel-preset-default' ],
},
},
},
],
},
plugins: [
new CleanWebpackPlugin(),
new ProgressBarPlugin( {