From 05a715dbd8a0900594f710affac5db42e6f35be0 Mon Sep 17 00:00:00 2001 From: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:43:21 +0100 Subject: [PATCH] Update splitChunks.js regex for Backpack chunks --- packages/react-scripts/backpack-addons/splitChunks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/backpack-addons/splitChunks.js b/packages/react-scripts/backpack-addons/splitChunks.js index 5ff0b3b176f..86fa16ecfe0 100644 --- a/packages/react-scripts/backpack-addons/splitChunks.js +++ b/packages/react-scripts/backpack-addons/splitChunks.js @@ -56,7 +56,7 @@ const backpackStylesCacheGroup = { type: 'css/mini-extract', chunks: 'all', enforce: true, - test: /[\\/]node_modules[\\/](@skyscanner[\\/]backpack-web|@skyscanner-internal[\\/]bpk-logos)[\\/]/, + test: /[\\/]node_modules[\\/](@skyscanner[\\/]backpack-web[\\/]|@skyscanner-internal[\\/]bpk-logos)/ priority: 1, };