Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor(dev): one carbon() Vite plugin for every app

Sidwebworks041571cd411d
diff --git a/.claude/rules/i18n-lingui-system.md b/.claude/rules/i18n-lingui-system.md
index ccf6954166..81011c7243 100644
--- a/.claude/rules/i18n-lingui-system.md
+++ b/.claude/rules/i18n-lingui-system.md
@@ -14,7 +14,7 @@ is the plugin's own native one: `lingui({ macroTransform: true })` from
`@lingui/vite-plugin` in each app's `vite.config.ts` — no Babel, no
`vite-plugin-babel-macros`. It only touches files that import a macro.
-Every app wraps the plugin in `linguiWithoutIdQuery` (`@carbon/dev/vite`). Lingui
+Every app gets the plugin from `carbon()` (`@carbon/dev/vite`), which wraps it in `linguiWithoutIdQuery`. Lingui
6.9.0 picks its parser from `path.basename(id)`, so a React Router route module
(`route.tsx?__react-router-build-client-route`) is parsed as plain JS and the build
fails on its first `import type`. The wrapper hands the transform the id without
diff --git a/apps/academy/vite.config.ts b/apps/academy/vite.config.ts
index 2c75ddf715..ccace269c8 100644
--- a/apps/academy/vite.config.ts
+++ b/apps/academy/vite.config.ts
@@ -2,12 +2,11 @@
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
-import { linguiWithoutIdQuery } from "@carbon/dev/vite";
+import { carbon } from "@carbon/dev/vite";
import { reactRouter } from "@react-router/dev/vite";
-import { lingui } from "@lingui/vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
-import { defineConfig, PluginOption } from "vite";
+import { defineConfig } from "vite";
export default defineConfig(({ isSsrBuild }) => ({
build: {
@@ -43,11 +42,7 @@ export default defineConfig(({ isSsrBuild }) => ({
port: 4111,
strictPort: true,
},
- plugins: [
- tailwindcss(),
- linguiWithoutIdQuery(lingui({ macroTransform: true })),
- reactRouter(),
- ] as PluginOption[],
+ plugins: [tailwindcss(), reactRouter(), carbon()],
resolve: {
tsconfigPaths: true,
alias: {
diff --git a/apps/erp/vite.config.ts b/apps/erp/vite.config.ts
index 6605da046e..011aaee0d6 100644
--- a/apps/erp/vite.config.ts
+++ b/apps/erp/vite.config.ts
@@ -2,82 +2,11 @@
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
-import {
- applyDotenvToProcessEnv,
- clientOnlyAlias,
- linguiWithoutIdQuery,
- precompressedAssets,
- stackActivity,
-} from "@carbon/dev/vite";
-import { getConfig } from "@lingui/conf";
-import { lingui } from "@lingui/vite-plugin";
-import optimizeLocales from "@react-aria/optimize-locales-plugin";
+import { applyDotenvToProcessEnv, carbon } from "@carbon/dev/vite";
import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
-import { defineConfig, PluginOption, type Rolldown } from "vite";
-
-/**
- * Splits the production server build into one chunk per installed package
- * (`vendor-<name>`) instead of one file holding every dependency. Vercel traces
- * the server function with @vercel/nft after the build, and nft handles one
- * huge module far worse than many small ones: the 35 MB single bundle took
- * ~5 min and up to the full 8 GB of a build machine. Applied to every SSR
- * environment, including the Vercel preset's `ssrBundle_*`, through
- * `configEnvironment` so it merges over React Router's own entry.
- */
-function splitServerVendors(): PluginOption {
- const packageChunk = (id: string) => {
- if (!id.includes("node_modules/")) {
- // A workspace package, linked from `packages/<name>`.
- return `carbon-${id.split("/packages/").pop()?.split("/")[0]}`;
- }
- const [scope, name] = (id.split("node_modules/").pop() ?? "").split("/");
- return `vendor-${scope.startsWith("@") ? `${scope}+${name}` : scope}`;
- };
- return {
- name: "carbon:split-server-vendors",
- apply: "build",
- configEnvironment(name) {
- if (!name.startsWith("ssr")) return;
- // Only modules the server loads at startup (reached from the entry by
- // static imports) are grouped. A package chunk holding a module that is
- // only reached through `import()` would load it eagerly: the browser-only
- // devtools did, and threw on `window`. A cycle reads as lazy, which only
- // leaves that module where Rolldown would put it.
- const eager = new Map<string, boolean>();
- const loadsAtStartup = (id: string, ctx: Rolldown.ChunkingContext): boolean => {
- const known = eager.get(id);
- if (known !== undefined) return known;
- eager.set(id, false);
- const info = ctx.getModuleInfo(id);
- const result =
- !!info &&
- (info.isEntry ||
- info.importers.some((importer) => loadsAtStartup(importer, ctx)));
- eager.set(id, result);
- return result;
- };
- return {
- build: {
- rolldownOptions: {
- output: {
- codeSplitting: {
- groups: [
- {
- name: (id, ctx) =>
- loadsAtStartup(id, ctx) ? packageChunk(id) : null,
- test: /node_modules|\/packages\//,
- },
- ],
- },
- },
- },
- },
- };
- },
- };
-}
+import { defineConfig } from "vite";
export default defineConfig(({ command, isSsrBuild, mode }) => {
applyDotenvToProcessEnv(mode, import.meta.dirname);
@@ -208,22 +137,25 @@ export default defineConfig(({ command, isSsrBuild, mode }) => {
],
},
plugins: [
- stackActivity(),
tailwindcss(),
- linguiWithoutIdQuery(lingui({ macroTransform: true })),
reactRouter(),
- splitServerVendors(),
- precompressedAssets({ command, mode }),
- // react-aria ships strings for ~34 locales; keep the ones the app translates.
- optimizeLocales.vite({ locales: getConfig().locales }),
- // unpdf's bundled PDF.js engine is a dead lazy chunk in the browser, which
- // runs react-pdf's pdfjs-dist (see @carbon/files/pdf). Keep it out there
- // only: on the server it is the one engine PDF reading has.
- clientOnlyAlias(
- "unpdf/pdfjs",
- path.resolve(import.meta.dirname, "app/ssr-shims/unpdf-pdfjs-stub.mjs")
- ),
- ] as PluginOption[],
+ carbon({
+ command,
+ mode,
+ locales: true,
+ precompress: true,
+ splitServer: true,
+ // unpdf's bundled PDF.js engine is a dead lazy chunk in the browser,
+ // which runs react-pdf's pdfjs-dist (see @carbon/files/pdf). Keep it
+ // out there only: on the server it is the one engine PDF reading has.
+ clientOnly: {
+ "unpdf/pdfjs": path.resolve(
+ import.meta.dirname,
+ "app/ssr-shims/unpdf-pdfjs-stub.mjs"
+ ),
+ },
+ }),
+ ],
resolve: {
tsconfigPaths: true,
alias: {
diff --git a/apps/mes/vite.config.ts b/apps/mes/vite.config.ts
index 0c001e1212..e005da9a3b 100644
--- a/apps/mes/vite.config.ts
+++ b/apps/mes/vite.config.ts
@@ -2,20 +2,11 @@
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
-import {
- applyDotenvToProcessEnv,
- clientOnlyAlias,
- linguiWithoutIdQuery,
- precompressedAssets,
- stackActivity,
-} from "@carbon/dev/vite";
+import { applyDotenvToProcessEnv, carbon } from "@carbon/dev/vite";
import { reactRouter } from "@react-router/dev/vite";
-import { getConfig } from "@lingui/conf";
-import { lingui } from "@lingui/vite-plugin";
-import optimizeLocales from "@react-aria/optimize-locales-plugin";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
-import { defineConfig, PluginOption } from "vite";
+import { defineConfig } from "vite";
export default defineConfig(({ command, mode, isSsrBuild }) => {
applyDotenvToProcessEnv(mode, import.meta.dirname);
@@ -125,21 +116,25 @@ export default defineConfig(({ command, mode, isSsrBuild }) => {
allowedHosts: [".ngrok-free.app", ".w.modal.host", ".w.modal.dev", ".dev", ".localhost", "host.docker.internal"],
},
plugins: [
- stackActivity(),
tailwindcss(),
- linguiWithoutIdQuery(lingui({ macroTransform: true })),
reactRouter(),
- precompressedAssets({ command, mode }),
- // react-aria ships strings for ~34 locales; keep the ones the app translates.
- optimizeLocales.vite({ locales: getConfig().locales }),
- // unpdf's bundled PDF.js engine is a dead lazy chunk in the browser, which
- // runs react-pdf's pdfjs-dist (see @carbon/files/pdf). Keep it out there
- // only: on the server it is the one engine PDF reading has.
- clientOnlyAlias(
- "unpdf/pdfjs",
- path.resolve(import.meta.dirname, "app/ssr-shims/unpdf-pdfjs-stub.mjs")
- ),
- ] as PluginOption[],
+ carbon({
+ command,
+ mode,
+ locales: true,
+ precompress: true,
+ splitServer: true,
+ // unpdf's bundled PDF.js engine is a dead lazy chunk in the browser,
+ // which runs react-pdf's pdfjs-dist (see @carbon/files/pdf). Keep it
+ // out there only: on the server it is the one engine PDF reading has.
+ clientOnly: {
+ "unpdf/pdfjs": path.resolve(
+ import.meta.dirname,
+ "app/ssr-shims/unpdf-pdfjs-stub.mjs"
+ ),
+ },
+ }),
+ ],
resolve: {
tsconfigPaths: true,
alias: {
diff --git a/apps/starter/vite.config.ts b/apps/starter/vite.config.ts
index d99437bd6b..6ff26bbcec 100644
--- a/apps/starter/vite.config.ts
+++ b/apps/starter/vite.config.ts
@@ -2,12 +2,11 @@
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
-import { linguiWithoutIdQuery } from "@carbon/dev/vite";
+import { carbon } from "@carbon/dev/vite";
import { reactRouter } from "@react-router/dev/vite";
-import { lingui } from "@lingui/vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
-import { defineConfig, PluginOption } from "vite";
+import { defineConfig } from "vite";
export default defineConfig(({ isSsrBuild }) => ({
build: {
@@ -41,11 +40,7 @@ export default defineConfig(({ isSsrBuild }) => ({
port: 4000,
strictPort: true,
},
- plugins: [
- tailwindcss(),
- linguiWithoutIdQuery(lingui({ macroTransform: true })),
- reactRouter(),
- ] as PluginOption[],
+ plugins: [tailwindcss(), reactRouter(), carbon()],
resolve: {
tsconfigPaths: true,
alias: {
diff --git a/packages/dev/AGENTS.md b/packages/dev/AGENTS.md
index eafeed1861..4338127e8d 100644
--- a/packages/dev/AGENTS.md
+++ b/packages/dev/AGENTS.md
@@ -40,7 +40,7 @@ pnpm --filter @carbon/dev smoke # real containers: slots, fresh migrate, u
- **Worktree** (`worktree.ts`): `resolveSlug()`, `canonicalSlug()` (branch-derived `<repoBase>-<branch>`), `getWorktreeRoot()`, `projectName()`, `ensureSlugAvailable()`
- **Services**: `compose.ts` (Docker), `migrations.ts` (Postgres/Supabase), `portless.ts` (`.dev` URLs), `apps.ts` (dev servers)
- **Aux spawners** (`services/apps.ts`): `spawnAssembler` (cargo) and `spawnEmailPreview` (`@carbon/documents` `email:previews` on `PORT_EMAIL` — the react-email server over `src/email/previews`, one fixture per email) — opt-in picker apps with their own spawners, not react-router dev servers
-- **Vite helpers** (`vite.js`, exported as `@carbon/dev/vite`, typed by `vite.d.ts`): `applyDotenvToProcessEnv`, `clientOnlyAlias` (stub a module in the browser build only), `linguiWithoutIdQuery` (works around Lingui 6.9.0 parsing React Router's `?query`-suffixed route ids as plain JS)
+- **Vite helpers** (`vite.js`, exported as `@carbon/dev/vite`, typed by `vite.d.ts`): `carbon({ command, mode, locales, clientOnly, splitServer, precompress })` is each app's one plugin call, listed after `tailwindcss()` and `reactRouter()` (which stay in the app). It always adds stack activity and Lingui's macro transform (with `linguiWithoutIdQuery`, which works around Lingui 6.9.0 parsing React Router's `?query`-suffixed route ids as plain JS), and on request react-aria's locale trimming (`locales`), `clientOnlyAlias` stubs (`clientOnly`), `splitServerByPackage` (`splitServer`: one server chunk per package, so Vercel's file trace stays fast; only modules loaded at startup are grouped) and `precompressedAssets` (`precompress`). Packages are imported only when their plugin runs; hooks use native filters. `applyDotenvToProcessEnv` stays a separate call. Lingui, `@lingui/conf` and the react-aria plugin are peer dependencies the apps provide
- **Spinners come from `ui.ts`, not `@clack/prompts`**: `tasks`, `spinner` and `progress` there print one line per step when stdout is not a terminal (an agent, a pipe, a log file) instead of every animation frame. Importing them from clack directly brings the frame noise back.
- **No command allow-list in `bin/crbn`**: the bash router runs from the main checkout while the TypeScript CLI runs from the current worktree, so the router passes anything it doesn't own (`checkout`, help, version) straight through. Register a subcommand in `src/main.ts` only.
- **Prompts need a terminal — say so**: a clack prompt with no TTY ends the process without a word. Every prompt calls `requireTerminal(what, instead)` (`prompts.ts`) first, which throws a one-line error naming the non-interactive route: `CARBON_DEV_YES=1` for the confirms, `crbn remove <branch-or-path...>`, `crbn new --yes <branch>`.
diff --git a/packages/dev/package.json b/packages/dev/package.json
index 360c93ccd1..c6b6decdcb 100644
--- a/packages/dev/package.json
+++ b/packages/dev/package.json
@@ -30,15 +30,30 @@
"picocolors": "^1.1.1"
},
"peerDependencies": {
+ "@lingui/conf": "*",
+ "@lingui/vite-plugin": "*",
+ "@react-aria/optimize-locales-plugin": "*",
"vite": "*"
},
"devDependencies": {
"@carbon/config": "*",
+ "@lingui/conf": "catalog:",
+ "@lingui/vite-plugin": "catalog:",
+ "@react-aria/optimize-locales-plugin": "catalog:",
"@types/node": "20.19.39",
"@types/pg": "^8.11.6",
"rimraf": "5.0.10",
"tsx": "4.21.0",
"typescript": "5.8.3",
+ "vite": "catalog:",
"vitest": "catalog:"
+ },
+ "peerDependenciesMeta": {
+ "@lingui/conf": {
+ "optional": true
+ },
+ "@react-aria/optimize-locales-plugin": {
+ "optional": true
+ }
}
}
diff --git a/packages/dev/src/vite.test.ts b/packages/dev/src/vite.test.ts
index 65e7c4045c..7b543b3a59 100644
--- a/packages/dev/src/vite.test.ts
+++ b/packages/dev/src/vite.test.ts
@@ -8,7 +8,10 @@ import { clientOnlyAlias } from "../vite.js";
describe("clientOnlyAlias", () => {
const plugin = clientOnlyAlias("unpdf/pdfjs", "/stub.mjs") as unknown as {
applyToEnvironment: (environment: { name: string }) => boolean;
- resolveId: (source: string) => string | undefined;
+ resolveId: {
+ filter: { id: RegExp };
+ handler: (source: string) => string | undefined;
+ };
};
it("applies to the client environment only", () => {
@@ -18,7 +21,14 @@ describe("clientOnlyAlias", () => {
});
it("resolves the exact specifier and nothing else", () => {
- expect(plugin.resolveId("unpdf/pdfjs")).toBe("/stub.mjs");
- expect(plugin.resolveId("unpdf")).toBeUndefined();
+ expect(plugin.resolveId.handler("unpdf/pdfjs")).toBe("/stub.mjs");
+ expect(plugin.resolveId.handler("unpdf")).toBeUndefined();
+ });
+
+ it("filters natively on the exact specifier", () => {
+ const { id } = plugin.resolveId.filter;
+ expect(id.test("unpdf/pdfjs")).toBe(true);
+ expect(id.test("unpdf/pdfjs/x")).toBe(false);
+ expect(id.test("xunpdf/pdfjs")).toBe(false);
});
});
diff --git a/packages/dev/vite.d.ts b/packages/dev/vite.d.ts
index 4813710edf..1029c528e3 100644
--- a/packages/dev/vite.d.ts
+++ b/packages/dev/vite.d.ts
@@ -2,7 +2,7 @@
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
-import type { Plugin } from "vite";
+import type { Plugin, PluginOption } from "vite";
export function applyDotenvToProcessEnv(mode: string, appDir: string): void;
export function clientOnlyAlias(specifier: string, file: string): Plugin;
@@ -14,3 +14,21 @@ export function precompressedAssets(env: {
export function compressRemaining(directory: string): Promise<void>;
export function linguiWithoutIdQuery<T>(plugins: T[]): T[];
+
+export type CarbonOptions = {
+ /** What Vite hands the config function; needed for `precompress`. */
+ command?: "build" | "serve";
+ mode?: string;
+ /** Trim react-aria's strings to the locales in the Lingui config. */
+ locales?: boolean;
+ /** Specifier → stub file, replaced in the browser build only. */
+ clientOnly?: Record<string, string>;
+ /** Split the production server build per package (see `splitServerByPackage`). */
+ splitServer?: boolean;
+ /** Write a Brotli `.br` beside each client asset (not on Vercel). */
+ precompress?: boolean;
+};
+
+/** Every Carbon app's own Vite plugins; React Router and Tailwind stay separate. */
+export function carbon(options?: CarbonOptions): Promise<PluginOption[]>;
+export function splitServerByPackage(): Plugin;
diff --git a/packages/dev/vite.js b/packages/dev/vite.js
index 43a6c87274..d2311acb72 100644
--- a/packages/dev/vite.js
+++ b/packages/dev/vite.js
@@ -47,12 +47,15 @@ export function applyDotenvToProcessEnv(mode, appDir) {
* @returns {import("vite").Plugin}
*/
export function clientOnlyAlias(specifier, file) {
+ const exact = specifier.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
return {
name: `carbon:client-only-alias:${specifier}`,
enforce: "pre",
applyToEnvironment: (environment) => environment.name === "client",
- resolveId(source) {
- if (source === specifier) return file;
+ resolveId: {
+ // Matched natively: no JS call for any other import.
+ filter: { id: new RegExp(`^${exact}$`) },
+ handler: (source) => (source === specifier ? file : undefined),
},
};
}
@@ -104,6 +107,8 @@ export function stackActivity() {
return {
name: "carbon:stack-activity",
apply: "serve",
+ // Its middleware has to see a request before any app handler does.
+ enforce: "pre",
configureServer(server) {
const dir = process.env.CRBN_STACK_STATE;
if (!dir) return;
@@ -229,3 +234,119 @@ export async function compressRemaining(directory) {
await writeFile(`${file}.br`, await brotli(source));
}
}
+
+/**
+ * Splits a production server build into one chunk per installed package
+ * (`vendor-<name>`) and per workspace package (`carbon-<name>`), instead of
+ * one file holding every dependency. Vercel traces the server function with
+ * @vercel/nft after the build, and nft handles one huge module far worse than
+ * many small ones: the ERP's 35 MB single bundle took ~5 min there and up to
+ * the full 8 GB of a build machine; split, the step takes under a minute.
+ * Applied to every SSR environment, including the Vercel preset's
+ * `ssrBundle_*`, through `configEnvironment`, so it merges over React
+ * Router's own entry.
+ *
+ * Only modules the server loads at startup (reached from the entry by static
+ * imports) are grouped. A package chunk holding a module that is only reached
+ * through `import()` would load it eagerly: the browser-only query devtools
+ * did, and threw on `window`. A cycle reads as lazy, which only leaves that
+ * module where Rolldown would put it.
+ *
+ * @returns {import("vite").Plugin}
+ */
+export function splitServerByPackage() {
+ /** @param {string} id */
+ const packageChunk = (id) => {
+ if (!id.includes("node_modules/")) {
+ return `carbon-${id.split("/packages/").pop()?.split("/")[0]}`;
+ }
+ const [scope, name] = (id.split("node_modules/").pop() ?? "").split("/");
+ return `vendor-${scope.startsWith("@") ? `${scope}+${name}` : scope}`;
+ };
+ return {
+ name: "carbon:split-server-by-package",
+ apply: "build",
+ configEnvironment(name) {
+ if (!name.startsWith("ssr")) return;
+ /** @type {Map<string, boolean>} */
+ const eager = new Map();
+ /**
+ * @param {string} id
+ * @param {import("vite").Rolldown.ChunkingContext} ctx
+ * @returns {boolean}
+ */
+ const loadsAtStartup = (id, ctx) => {
+ const known = eager.get(id);
+ if (known !== undefined) return known;
+ eager.set(id, false);
+ const info = ctx.getModuleInfo(id);
+ const result =
+ !!info &&
+ (info.isEntry ||
+ info.importers.some((importer) => loadsAtStartup(importer, ctx)));
+ eager.set(id, result);
+ return result;
+ };
+ return {
+ build: {
+ rolldownOptions: {
+ output: {
+ codeSplitting: {
+ groups: [
+ {
+ name: (id, ctx) =>
+ loadsAtStartup(id, ctx) ? packageChunk(id) : null,
+ // Matched natively before the name callback runs.
+ test: /node_modules|\/packages\//,
+ },
+ ],
+ },
+ },
+ },
+ },
+ };
+ },
+ };
+}
+
+/**
+ * Every Carbon app's own Vite plugins, in one call. React Router and
+ * Tailwind stay in the app's config, as the framework and styling plugins.
+ *
+ * Always on: stack activity (a no-op outside `crbn up`) and Lingui's macro
+ * transform with the React Router id fix. The rest is opt-in, and a package
+ * is imported only when its plugin runs, so a dev server or a small app pays
+ * nothing for what it does not use.
+ *
+ * @param {import("./vite").CarbonOptions} options
+ * @returns {Promise<import("vite").PluginOption[]>}
+ */
+export async function carbon({
+ command,
+ mode,
+ locales = false,
+ clientOnly = {},
+ splitServer = false,
+ precompress = false,
+} = {}) {
+ const { lingui } = await import("@lingui/vite-plugin");
+ return [
+ stackActivity(),
+ linguiWithoutIdQuery(lingui({ macroTransform: true })),
+ splitServer && splitServerByPackage(),
+ precompress && command && mode && precompressedAssets({ command, mode }),
+ locales && ariaLocales(),
+ ...Object.entries(clientOnly).map(([specifier, file]) =>
+ clientOnlyAlias(specifier, file)
+ ),
+ ].filter(Boolean);
+}
+
+// react-aria ships strings for ~34 locales; keep the ones the app translates.
+async function ariaLocales() {
+ const [{ getConfig }, { default: optimizeLocales }] = await Promise.all([
+ import("@lingui/conf"),
+ import("@react-aria/optimize-locales-plugin"),
+ ]);
+ return optimizeLocales.vite({ locales: getConfig().locales });
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0cdf9a46b0..504b7e2d01 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1134,7 +1134,7 @@ importers:
'@vitejs/devtools-rolldown':
specifier: 'catalog:'
cross-env:
specifier: 'catalog:'
version: 7.0.3
@@ -1465,7 +1465,7 @@ importers:
'@vitejs/devtools-rolldown':
specifier: 'catalog:'
cross-env:
specifier: 'catalog:'
version: 7.0.3
@@ -2374,13 +2374,19 @@ importers:
picocolors:
specifier: ^1.1.1
version: 1.1.1
- vite:
- specifier: 7.3.5
devDependencies:
'@carbon/config':
specifier: '*'
version: link:../config
+ '@lingui/conf':
+ specifier: 'catalog:'
+ version: 6.9.0
+ '@lingui/vite-plugin':
+ specifier: 'catalog:'
+ '@react-aria/optimize-locales-plugin':
+ specifier: 'catalog:'
+ version: 2.0.2
'@types/node':
specifier: 20.19.39
version: 20.19.39
@@ -2396,9 +2402,12 @@ importers:
typescript:
specifier: 5.8.3
version: 5.8.3
+ vite:
+ specifier: 'catalog:'
vitest:
specifier: 'catalog:'
+ version: 4.1.11(@opentelemetry/[email protected])(@types/[email protected])([email protected])
packages/documents:
dependencies:
@@ -25899,7 +25908,7 @@ snapshots:
- ocache
- srvx
dependencies:
'@rolldown/debug': 1.2.12
@@ -25933,7 +25942,7 @@ snapshots:
pathe: 2.0.3
optionalDependencies:
transitivePeerDependencies:
- '@devframes/json-render'
- '@devframes/plugin-inspect--assets'
@@ -33401,6 +33410,23 @@ snapshots:
tsx: 4.21.0
yaml: 2.9.1
+ dependencies:
+ lightningcss: 1.33.0
+ picomatch: 4.0.7
+ postcss: 8.5.29
+ rolldown: 1.2.12
+ tinyglobby: 0.2.17
+ optionalDependencies:
+ '@types/node': 20.19.39
+ esbuild: 0.28.2
+ fsevents: 2.3.3
+ jiti: 2.7.0
+ terser: 5.48.0
+ tsx: 4.21.0
+ yaml: 2.9.1
+
dependencies:
lightningcss: 1.33.0
@@ -33480,6 +33506,34 @@ snapshots:
transitivePeerDependencies:
- msw
+ dependencies:
+ '@vitest/expect': 4.1.11
+ '@vitest/mocker': 4.1.11([email protected])
+ '@vitest/pretty-format': 4.1.11
+ '@vitest/runner': 4.1.11
+ '@vitest/snapshot': 4.1.11
+ '@vitest/spy': 4.1.11
+ '@vitest/utils': 4.1.11
+ es-module-lexer: 2.3.0
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ obug: 2.1.1
+ pathe: 2.0.3
+ picomatch: 4.0.7
+ std-env: 4.0.0
+ tinybench: 2.9.0
+ tinyexec: 1.3.1
+ tinyglobby: 0.2.17
+ tinyrainbow: 3.1.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@opentelemetry/api': 1.9.0
+ '@types/node': 20.19.39
+ transitivePeerDependencies:
+ - msw
+
dependencies:
'@vitest/expect': 4.1.11