aprs.me/config
Graham McIntire c932abb434
Fix esbuild vendor bundle error by marking chart.js as external
The Docker build was failing because the Chart.js date adapter was trying
to require("chart.js") but esbuild couldn't resolve it since Chart.js is
loaded as a UMD file, not a CommonJS module.

Added --external:chart.js to the vendor esbuild configuration to tell
esbuild not to try bundling chart.js when it encounters require("chart.js")
in the date adapter. This is correct because Chart.js is already loaded
globally from the UMD file.

This fixes the "Could not resolve 'chart.js'" error during production builds.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 10:11:26 -05:00
..
config.exs Fix esbuild vendor bundle error by marking chart.js as external 2025-07-21 10:11:26 -05:00
dev.exs Bundle all vendor JavaScript files locally instead of loading from CDNs 2025-07-21 09:52:39 -05:00
prod.exs Implement critical performance optimizations and error handling 2025-07-18 18:19:49 -05:00
runtime.exs Implement critical performance optimizations and error handling 2025-07-18 18:19:49 -05:00
test.exs fix geolocation hopefully 2025-07-10 17:12:49 -05:00