Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add babel-loader to webpack CoreConfig (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Aug 23, 2019
1 parent ce8c97b commit 420d834
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down

0 comments on commit 420d834

Please sign in to comment.