This dev server would be a lot more useful for projects with client-side JS if it could resolve bare module specifiers so that they load correctly in browsers.
It's not too terribly complicated to do this with middleware and a dependency on something like enhanced-resolve. Here's a single-file implementation in my own server framework that could be adopted: https://github.com/justinfagnani/zipadee/blob/main/packages/javascript/src/lib/serve.ts
This dev server would be a lot more useful for projects with client-side JS if it could resolve bare module specifiers so that they load correctly in browsers.
It's not too terribly complicated to do this with middleware and a dependency on something like
enhanced-resolve. Here's a single-file implementation in my own server framework that could be adopted: https://github.com/justinfagnani/zipadee/blob/main/packages/javascript/src/lib/serve.ts