Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hot reloading with esbuild only works with WebSerial #192

Open
alexrudd2 opened this issue Mar 25, 2025 · 0 comments
Open

hot reloading with esbuild only works with WebSerial #192

alexrudd2 opened this issue Mar 25, 2025 · 0 comments

Comments

@alexrudd2
Copy link
Owner

Here's my best understanding of the various options and servers involved.

Notice the penultimate row. npm run dev uses esbuild to serve the compiled UI, but there would be no websocket server or NodeSerialPort instnace to actually talk to the EBB.

  UI compiler CLI compiler EBB comms UI server websockets
npm run deploy, IS_WEB = True esbuild N/A WebSerial gh-pages no
npm run start, IS_WEB = True esbuild + tsconfig-web N/A WebSerial Express no
npm run start, IS_WEB = False esbuild + tsconfig-web esbuild + tsconfig NodeSerialPort Express yes
npm run dev, IS_WEB = True esbuild + tsconfig-web N/A WebSerial esbuild serve no
npm run dev, IS_WEB = False esbuild + tsconfig-web esbuild + tsconfig NodeSerialPort esbuild serve BROKEN
npm run test esbuild + tsconfig-web esbuild + tsconfig mocked Express yes

@jedahan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant