Skip to content

Commit 28e2250

Browse files
justin808claude
andcommitted
Fix race condition: build ReScript before starting webpack
Added 'yarn res:build' to wp-client and wp-server commands in Procfile.dev to ensure ReScript files are compiled before webpack tries to bundle them. This prevents webpack module resolution errors on first startup when the .bs.js files don't exist yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0797f0d commit 28e2250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Procfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
rescript: yarn res:dev
44
redis: redis-server
55
rails: bundle exec rails s -p 3000
6-
wp-client: HMR=true RAILS_ENV=development NODE_ENV=development bin/shakapacker-dev-server
7-
wp-server: bundle exec rake react_on_rails:locale && HMR=true SERVER_BUNDLE_ONLY=yes bin/shakapacker --watch
6+
wp-client: yarn res:build && HMR=true RAILS_ENV=development NODE_ENV=development bin/shakapacker-dev-server
7+
wp-server: yarn res:build && bundle exec rake react_on_rails:locale && HMR=true SERVER_BUNDLE_ONLY=yes bin/shakapacker --watch

0 commit comments

Comments
 (0)