Skip to content

Commit 26a649e

Browse files
committed
fix(mobile): build canvas-editor CSS bundle during EAS install
CanvasEditorDOM.tsx imports @gruenerator/canvas-editor/styles/bundle which points at ./dist/canvas-editor-bundle.css — a Tailwind-compiled artifact generated by the package's build:css script. Nothing in EAS's pipeline invokes that script, so Metro's DOM-component bundler fails with "Unable to resolve module". Adding the eas-build-post-install hook runs tailwindcss immediately after pnpm install, before prebuild/bundle, so the artifact exists by the time Metro resolves the import. Web and desktop are unaffected — Vite compiles Tailwind in-process.
1 parent 8ef6b65 commit 26a649e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/mobile/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"lint": "eslint .",
2323
"lint:fix": "eslint . --fix",
2424
"build:android": "EAS_NO_VCS=1 eas build -p android --profile production",
25-
"build:android:preview": "EAS_NO_VCS=1 eas build -p android --profile preview"
25+
"build:android:preview": "EAS_NO_VCS=1 eas build -p android --profile preview",
26+
"eas-build-post-install": "pnpm -w --filter @gruenerator/canvas-editor build:css"
2627
},
2728
"dependencies": {
2829
"@assistant-ui/react-native": "^0.1.11",

0 commit comments

Comments
 (0)