diff --git a/tools/webpack/interactivity.js b/tools/webpack/interactivity.js index d62ad46d0a64b..5d89351cc4e23 100644 --- a/tools/webpack/interactivity.js +++ b/tools/webpack/interactivity.js @@ -3,6 +3,10 @@ */ const { join } = require( 'path' ); const CopyWebpackPlugin = require( 'copy-webpack-plugin' ); +/** + * WordPress dependencies + */ +const DependencyExtractionWebpackPlugin = require( '@wordpress/dependency-extraction-webpack-plugin' ); /** * Internal dependencies @@ -78,6 +82,7 @@ module.exports = { }, ], } ), + new DependencyExtractionWebpackPlugin(), ], watchOptions: { ignored: [ '**/node_modules' ],