Bun fails to start when trying to use vite's createServer() with non-falsy configFile. It starts to reload repeatedly with no even a message or error.
By default createServer() is trying to load root vite.config.ts. But Bun fails to load this config for some reason. It creates and deletes root file "vite.config.ts.timestamp-1723215060966-dab43e401f819.mjs" endlessly and nothing happens.
Have to note that it only happens when package.json has "type": "module".
What version of Bun is running?
1.1.22
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
Bun fails to start when trying to use vite's createServer() with non-falsy
configFile
. It starts to reload repeatedly with no even a message or error.By default createServer() is trying to load root
vite.config.ts
. But Bun fails to load this config for some reason. It creates and deletes root file "vite.config.ts.timestamp-1723215060966-dab43e401f819.mjs" endlessly and nothing happens.Have to note that it only happens when
package.json
has"type": "module"
.What is the expected behavior?
Expecting Bun to start properly.
What do you see instead?
Empty console
Additional information
No response