Skip to content

Commit

Permalink
use babel-cache for bundler build
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Jun 13, 2017
1 parent 0f6447b commit bcb59d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const webpack = require( 'webpack' ),
* Internal dependencies
*/
const config = require( 'config' );
const cacheIdentifier = require( './server/bundler/babel/babel-loader-cache-identifier' );

/**
* This lists modules that must use commonJS `require()`s
Expand Down Expand Up @@ -81,7 +82,9 @@ const webpackConfig = {
plugins: [ [
path.join( __dirname, 'server', 'bundler', 'babel', 'babel-plugin-transform-wpcalypso-async' ),
{ async: false }
] ]
] ],
cacheDirectory: './build/.babel-cache',
cacheIdentifier: cacheIdentifier,
}
},
]
Expand Down

0 comments on commit bcb59d4

Please sign in to comment.