Skip to content

Commit 51d92c6

Browse files
committed
fix(interface): scope tailwind @source to dist + bump build heap to 6 GB
CI OOMed during rollup chunking on the 3.1 MB main bundle. The @source paths also walked into nested node_modules of @spacedrive/primitives, which was needless work for tailwind. Pin @source to each package's dist/ and raise NODE_OPTIONS so vite has room to chunk.
1 parent c98dce6 commit 51d92c6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

interface/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "vite build",
8+
"build": "NODE_OPTIONS='--max-old-space-size=6144' vite build",
99
"preview": "vite preview"
1010
},
1111
"dependencies": {

interface/src/styles.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
@import "@spacedrive/tokens/css/themes/mocha";
2323

2424
/* Tell Tailwind to scan SpaceUI component output for classes */
25-
@source "../node_modules/@spacedrive/primitives";
26-
@source "../node_modules/@spacedrive/ai";
27-
@source "../node_modules/@spacedrive/forms";
28-
@source "../node_modules/@spacedrive/explorer";
25+
@source "../node_modules/@spacedrive/primitives/dist";
26+
@source "../node_modules/@spacedrive/ai/dist";
27+
@source "../node_modules/@spacedrive/forms/dist";
28+
@source "../node_modules/@spacedrive/explorer/dist";
2929

3030
/* Override default font to IBM Plex Sans */
3131
@theme {

0 commit comments

Comments
 (0)