2
0

fix(build): use tsx for webpack TypeScript config loading
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Failing after 1m47s
Build and Release / Unit Tests (push) Successful in 3m15s
Build and Release / Lint (push) Successful in 3m41s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Failing after 1m1s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled

Node 22.x has experimental TypeScript handling that conflicts with
webpack-cli's config loading. Use tsx via NODE_OPTIONS to properly
handle the TypeScript webpack config.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 20:02:02 -05:00
parent d5bda0495a
commit 72b5b658ae
3 changed files with 32 additions and 15 deletions

View File

@@ -428,7 +428,7 @@ watch: ## watch everything and continuously rebuild
.PHONY: watch-frontend
watch-frontend: node-check node_modules ## watch frontend files and continuously rebuild
@rm -rf $(WEBPACK_DEST_ENTRIES)
NODE_ENV=development $(NODE_VARS) pnpm exec webpack --watch --progress --disable-interpret
NODE_OPTIONS='--import tsx' NODE_ENV=development $(NODE_VARS) pnpm exec webpack --watch --progress
.PHONY: watch-backend
watch-backend: go-check ## watch backend files and continuously rebuild
@@ -882,7 +882,7 @@ $(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) pnpm-lock.yaml
@$(MAKE) -s node-check node_modules
@rm -rf $(WEBPACK_DEST_ENTRIES)
@echo "Running webpack..."
@BROWSERSLIST_IGNORE_OLD_DATA=true $(NODE_VARS) pnpm exec webpack --disable-interpret
@NODE_OPTIONS='--import tsx' BROWSERSLIST_IGNORE_OLD_DATA=true $(NODE_VARS) pnpm exec webpack
@touch $(WEBPACK_DEST)
.PHONY: svg