Peter Stenger
Peter Stenger
> Regarding a hypothetical "import sql from './foo.sql';", what benefit would that bring? Maybe we shift discussion elsewhere, I don't want this broader discussion to get derailed by that. I...
I think all three of these issues I outlined are solvable, and not incredibly complex to solve either. I probably won't be able to work on this for a little...
> Another aside: does Vite somehow keep listening for requests during reloading and/or queue them until reloading is complete? This seems like it's solved the issue where one could make...
> Another thing I noticed during testing: it seems to lazily start the server and process file changes. That is, things aren't actually booted and changes aren't actually recognized until...
I suppose it isn't doing true HMR: https://github.com/axe-me/vite-plugin-node/issues/82 -- it is just relying on the module invalidation. You would want a hook onto that that calls `_loadApp`.
> That said, it doesn't seem to be super maintained, there are a number of open PRs that have been there for months :( Agreed, unfortunately it's the best I...
Opened https://github.com/axe-me/vite-plugin-node/pull/127
Somehow picking up a new error: ``` [vite] (ssr) Error when evaluating SSR module ./src/server.ts: require is not defined at eval (/Users/peter/work/PrairieLearn/packages/preact-cjs/dist/jsx-runtime.js:3:33) at ESModulesEvaluator.runInlinedModule (file:///Users/peter/work/PrairieLearn/node_modules/vite/dist/node/module-runner.js:989:9) at SSRCompatModuleRunner.directRequest (file:///Users/peter/work/PrairieLearn/node_modules/vite/dist/node/module-runner.js:1160:80) at SSRCompatModuleRunner.directRequest...
@miguelaenlle had taken a look at this last Friday:  We should make sure that the speedup is useful for him too, if possible.
@nwalters512 Can you leave a summary of the current status of this PR after your changes?