From 099835918be3a08e73b7c6c16a6843eed5041378 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 21 May 2019 06:29:09 -0400 Subject: [PATCH] Set the vendors chunk to always split out shared node_modules code (https://github.com/woocommerce/woocommerce-blocks/pull/577) --- plugins/woocommerce-blocks/webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-blocks/webpack.config.js b/plugins/woocommerce-blocks/webpack.config.js index a7282d32f9a..c3e1eb425d5 100644 --- a/plugins/woocommerce-blocks/webpack.config.js +++ b/plugins/woocommerce-blocks/webpack.config.js @@ -5,8 +5,8 @@ const path = require( 'path' ); const MergeExtractFilesPlugin = require( './bin/merge-extract-files-webpack-plugin' ); const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' ); const CleanWebpackPlugin = require( 'clean-webpack-plugin' ); -const ProgressBarPlugin = require('progress-bar-webpack-plugin'); -const chalk = require('chalk'); +const ProgressBarPlugin = require( 'progress-bar-webpack-plugin' ); +const chalk = require( 'chalk' ); const NODE_ENV = process.env.NODE_ENV || 'development'; const externals = { @@ -72,6 +72,7 @@ const GutenbergBlocksConfig = { test: /[\\/]node_modules[\\/]/, name: 'vendors', chunks: 'all', + enforce: true, }, editor: { // Capture all `editor` stylesheets and the components stylesheets.