diff --git a/packages/react-scripts/backpack-addons/splitChunks.js b/packages/react-scripts/backpack-addons/splitChunks.js index 5ff0b3b176..b3cc1f6150 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, };