Add babel-loader to webpack CoreConfig (https://github.com/woocommerce/woocommerce-blocks/pull/906)
This commit is contained in:
parent
9d8d083363
commit
5eb588b50a
|
@ -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( {
|
||||
|
|
Loading…
Reference in New Issue