diff --git a/.changeset/poor-mugs-cheer.md b/.changeset/poor-mugs-cheer.md new file mode 100644 index 0000000..1b5f5bc --- /dev/null +++ b/.changeset/poor-mugs-cheer.md @@ -0,0 +1,6 @@ +--- +"@sandwich-ui/react": patch +"@sandwich-ui/core": patch +--- + +Update external deps diff --git a/packages/core/.gitignore b/packages/core/.gitignore index ba65431..66da001 100644 --- a/packages/core/.gitignore +++ b/packages/core/.gitignore @@ -26,3 +26,6 @@ dist-ssr ## Panda src/styled-system src/styled-system-studio + +# rollup-plugin-vizualizer +stats.html diff --git a/packages/core/package.json b/packages/core/package.json index abb2ced..29ac60f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -57,6 +57,7 @@ "eslint-plugin-import-x": "^4.5.1", "eslint-plugin-prettier": "^5.2.1", "rimraf": "^6.0.1", + "rollup-plugin-visualizer": "^5.12.0", "typescript": "^5.7.2", "typescript-eslint": "^8.18.1", "vite": "^5.4.11", diff --git a/packages/core/vite.config.ts b/packages/core/vite.config.ts index 59cc0cb..2a16ae3 100644 --- a/packages/core/vite.config.ts +++ b/packages/core/vite.config.ts @@ -1,3 +1,4 @@ +import { visualizer } from "rollup-plugin-visualizer"; import { defineConfig } from "vite"; import dts from "vite-plugin-dts"; import tsconfigPaths from "vite-tsconfig-paths"; @@ -14,7 +15,7 @@ export default defineConfig({ formats: ["cjs", "es"], }, rollupOptions: { - external: ["@pandacss/dev"], + external: [/^@pandacss.*/, /^@sandwich-ui.*/], }, }, plugins: [ @@ -22,5 +23,6 @@ export default defineConfig({ copyDtsFiles: true, }), tsconfigPaths(), + visualizer(), ], }); diff --git a/packages/react/.gitignore b/packages/react/.gitignore index a547bf3..15507f9 100644 --- a/packages/react/.gitignore +++ b/packages/react/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# rollup-plugin-vizualizer +stats.html diff --git a/packages/react/package.json b/packages/react/package.json index bce1552..0ba1e23 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -47,6 +47,7 @@ "eslint-plugin-react-refresh": "^0.4.16", "globals": "^15.14.0", "rimraf": "^6.0.1", + "rollup-plugin-visualizer": "^5.12.0", "typescript": "^5.7.2", "typescript-eslint": "^8.18.1", "vite": "^5.4.11", diff --git a/packages/react/vite.config.ts b/packages/react/vite.config.ts index 0b6ef38..c35bb76 100644 --- a/packages/react/vite.config.ts +++ b/packages/react/vite.config.ts @@ -1,4 +1,5 @@ import react from "@vitejs/plugin-react"; +import { visualizer } from "rollup-plugin-visualizer"; import { defineConfig } from "vite"; import dts from "vite-plugin-dts"; @@ -17,9 +18,10 @@ export default defineConfig({ "react", "react-dom", "react/jsx-runtime", - "@ark-ui/react", - "@pandacss/dev", - /^@sandwich-ui\/core\/.*/, + /^@ark-ui.*/, + /^@zag-js.*/, + /^@pandacss.*/, + /^@sandwich-ui.*/, ], }, }, @@ -28,5 +30,6 @@ export default defineConfig({ dts({ copyDtsFiles: true, }), + visualizer(), ], }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5df8dee..bf91eaf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -99,6 +99,9 @@ importers: rimraf: specifier: ^6.0.1 version: 6.0.1 + rollup-plugin-visualizer: + specifier: ^5.12.0 + version: 5.12.0(rollup@4.28.0) typescript: specifier: ^5.7.2 version: 5.7.2 @@ -172,6 +175,9 @@ importers: rimraf: specifier: ^6.0.1 version: 6.0.1 + rollup-plugin-visualizer: + specifier: ^5.12.0 + version: 5.12.0(rollup@4.28.0) typescript: specifier: ^5.7.2 version: 5.7.2 @@ -4371,6 +4377,16 @@ packages: engines: {node: 20 || >=22} hasBin: true + rollup-plugin-visualizer@5.12.0: + resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} + engines: {node: '>=14'} + hasBin: true + peerDependencies: + rollup: 2.x || 3.x || 4.x + peerDependenciesMeta: + rollup: + optional: true + rollup@4.28.0: resolution: {integrity: sha512-G9GOrmgWHBma4YfCcX8PjH0qhXSdH8B4HDE2o4/jaxj93S4DPCIDoLcXz99eWMji4hB29UFCEd7B2gwGJDR9cQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -10615,6 +10631,15 @@ snapshots: glob: 11.0.0 package-json-from-dist: 1.0.1 + rollup-plugin-visualizer@5.12.0(rollup@4.28.0): + dependencies: + open: 8.4.2 + picomatch: 2.3.1 + source-map: 0.7.4 + yargs: 17.7.2 + optionalDependencies: + rollup: 4.28.0 + rollup@4.28.0: dependencies: '@types/estree': 1.0.6