diff --git a/package.json b/package.json index b07dee6b013..90141021662 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,6 @@ "@artsy/palette": "^39.0.4", "@artsy/palette-charts": "^38.0.4", "@artsy/react-html-parser": "^3.0.2", - "@artsy/to-title-case": "^1.1.0", "@artsy/xapp": "2.0.0", "@babel/runtime": "7.13.10", "@loadable/component": "5.15.2", diff --git a/webpack/bundleSplitting.js b/webpack/bundleSplitting.js index 0afba7ab77a..7a40902e0ad 100644 --- a/webpack/bundleSplitting.js +++ b/webpack/bundleSplitting.js @@ -2,6 +2,14 @@ import crypto from "crypto" const FRAMEWORK_BUNDLES = ["react", "react-dom", "@sentry"] +const ARTSY_FRAMEWORK_BUNDLES = [ + "detect-responsive-traits", + "dismissible", + "fresnel", + "img", + "palette", + "palette-tokens", +] const TOTAL_PAGES = 12 export const splitChunks = { @@ -13,7 +21,12 @@ export const splitChunks = { "artsy-framework": { name: "artsy-framework", chunks: "all", - test: /.*node_modules[\\/](@artsy)[\\/]/, + // Include only @artsy/* modules commonly required on client + test: new RegExp( + `(?