From 8787b5202366abecd25b8cba2be013fa7edd3a6f Mon Sep 17 00:00:00 2001 From: Sergio Cinos Date: Thu, 22 Oct 2020 11:24:38 +0200 Subject: [PATCH] Bundle packages in the monorepo to --- client/webpack.config.node.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/webpack.config.node.js b/client/webpack.config.node.js index 4c7faa1fd94a1e..7f0ae72e7fbe9b 100644 --- a/client/webpack.config.node.js +++ b/client/webpack.config.node.js @@ -60,6 +60,7 @@ function getMonorepoPackages() { * * @returns {Array} list of externals */ + function getExternals() { return [ // Don't bundle any node_modules, both to avoid a massive bundle, and problems @@ -82,10 +83,8 @@ function getExternals() { /^calypso\//, - // Packages in the monorepo that have a `calypso:src` field - ...packagesInMonorepo() - .filter( ( pkg ) => pkg[ 'calypso:src' ] ) - .map( ( pkg ) => pkg.name ), + // Packages in the monorepo + ...packagesInMonorepo().map( ( pkg ) => pkg.name ), ], } ), // Some imports should be resolved to runtime `require()` calls, with paths relative