Skip to content

Commit

Permalink
Framework: Exclude Babel processing by build script flag
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 25, 2019
1 parent 6204eb6 commit e166933
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"clean:packages": "rimraf ./packages/*/build ./packages/*/build-module ./packages/*/build-style ./packages/*/node_modules",
"prebuild:packages": "npm run clean:packages && lerna run build",
"build:packages": "node ./bin/packages/build.js",
"build": "npm run build:packages && wp-scripts build",
"build": "npm run build:packages && wp-scripts build --no-babel",
"check-engines": "wp-scripts check-engines",
"check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2\" \"wp-scripts check-licenses --dev\"",
"precheck-local-changes": "npm run docs:build",
Expand Down
6 changes: 0 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ 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 e166933

Please sign in to comment.