oedotme / generouted

Generated file-based routes for Vite
https://stackblitz.com/github.com/oedotme/generouted/tree/main/explorer
MIT License
1.02k stars 47 forks source link

Fix async nature of generate with buildStart hook #148

Closed timothympace closed 6 months ago

timothympace commented 6 months ago

Problem

Ran into an issue where the vite/rollup build tries to process a partially generated output file from generouted.

Context

Opened an issue here

Fix Description

Updated buildStart to enforce this through types (return Promise<void> and then return the value from generate.

oedotme commented 6 months ago

Thanks @timothympace!