chore: add pnpm workspace configuration with package definitions and overrides

This commit is contained in:
snoozescript
2026-08-14 23:35:45 +05:30
parent ae2cb896a6
commit bcb302ac7d
389 changed files with 65206 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { defineConfig } from "vite";
import stylex from "@stylexjs/unplugin";
export default defineConfig({
plugins: [
stylex.vite({
useCSSLayers: true,
}),
],
optimizeDeps: {
include: [
// recharts imports `Decimal from "decimal.js-light"`, but the package
// has no `exports` field (only main/module), so Vite's lazy dep
// optimizer can pre-bundle the CJS build with broken interop
// (`import_decimal.default is not a constructor` on chart ticks).
// Pre-bundling it up front fixes it.
"decimal.js-light",
// wterm's sub-packages (@wterm/core, @wterm/dom) are peer deps of
// @wterm/react. Vite's dep optimizer doesn't pick them up on first
// load, causing 404s for the on-demand bundled chunks. Pre-bundle
// all three explicitly.
"@wterm/core",
"@wterm/dom",
"@wterm/react",
],
},
});