Skip to content
Prev Previous commit
Next Next commit
Fix the tests
- Fix entry point order to match actual dependencies
- Fix externals (`wp.*` externals not needed)
  • Loading branch information
nylen committed May 30, 2017
commit 8cac43e660218da0512ba1161874f9b1a723bf32
13 changes: 5 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ const webpack = require( 'webpack' );
const ExtractTextPlugin = require( 'extract-text-webpack-plugin' );

const entryPointNames = [
'blocks',
'components',
'date',
'editor',
'element',
'date',
'i18n',
'components',
'blocks',
'editor',
];

const externals = {
Expand Down Expand Up @@ -132,10 +132,7 @@ switch ( process.env.NODE_ENV ) {
...testFiles.filter( f => /full-content\.js$/.test( f ) ),
...testFiles.filter( f => ! /full-content\.js$/.test( f ) ),
];
config.externals = [
...config.externals,
require( 'webpack-node-externals' )(),
];
config.externals = [ require( 'webpack-node-externals' )() ];
config.output = {
filename: 'build/test.js',
path: __dirname,
Expand Down