14 lines
431 B
Plaintext
14 lines
431 B
Plaintext
|
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
|
||
|
const WooCommerceDependencyExtractionWebpackPlugin = require( '@woocommerce/dependency-extraction-webpack-plugin' );
|
||
|
|
||
|
module.exports = {
|
||
|
...defaultConfig,
|
||
|
plugins: [
|
||
|
...defaultConfig.plugins.filter(
|
||
|
( plugin ) =>
|
||
|
plugin.constructor.name !== 'DependencyExtractionWebpackPlugin'
|
||
|
),
|
||
|
new WooCommerceDependencyExtractionWebpackPlugin(),
|
||
|
],
|
||
|
};
|