Skip to content

Commit

Permalink
Framework: Omit Babel processing from Webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Apr 26, 2019
1 parent db990fc commit 59097fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ module.exports = {
library: [ 'wp', '[name]' ],
libraryTarget: 'this',
},
// Despite being empty, this must exist as an entry to override the default
// configuration. Gutenberg does not inherit the same Webpack rules as in
// the default. Notably, it does not require Babel processing because the
// files are transpiled by `npm run build:packages` before being processed
// by Webpack.
module: {},
plugins: [
...defaultConfig.plugins,
new DefinePlugin( {
Expand Down

0 comments on commit 59097fe

Please sign in to comment.