Env: Add carbon-charts dep

This commit is contained in:
2025-06-07 19:59:22 +02:00
parent d54ee01227
commit 6e6ce020a3
3 changed files with 1018 additions and 2 deletions

1016
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@carbon/charts-svelte": "^1.22.18",
"@floating-ui/dom": "^1.6.13",
"@fsouza/prettierd": "^0.26.1",
"@skeletonlabs/skeleton": "^2.10.4",

View File

@ -3,6 +3,9 @@ import { defineConfig } from "vite";
export default defineConfig({
plugins: [sveltekit()],
ssr: {
noExternal: process.env.NODE_ENV === "production" ? ["@carbon/charts"] : [],
},
build: {
rollupOptions: {
external: ["sharp"],