antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.32k stars 136 forks source link

fix: optimize the splicing method of serverEntry to make it compatible with bun #398

Closed chengzhuo5 closed 5 months ago

chengzhuo5 commented 5 months ago

join('file://') will be equal to 'file:\', which is not the correct file protocol and will fail to be parsed under bun. It is changed to '+' splicing here.