Closed timothympace closed 6 months ago
generouted uses the buildStart hook from rollup to generate a routes file. Rollup's buildStart hook is compatible with async functions (generate in this case), but needs to return a promise in order for it to wait for any async work.
generouted
buildStart
rollup
async
generate
Rollup build hook docs buildStart docs
Fix provided in: https://github.com/oedotme/generouted/pull/148
1.18.2
Not a able to repro (race condition)
Output file should be fully written to disk before moving on.
No response
Released at v1.18.3
Describe the Bug
generouted
uses thebuildStart
hook fromrollup
to generate a routes file. Rollup'sbuildStart
hook is compatible withasync
functions (generate
in this case), but needs to return a promise in order for it to wait for any async work.Rollup build hook docs
buildStart
docsFix provided in: https://github.com/oedotme/generouted/pull/148
Generouted Version
1.18.2
Your Example Website or App or Reproduction
Not a able to repro (race condition)
Steps to Reproduce the Bug or Issue
Not a able to repro (race condition)
Expected Behavior
Output file should be fully written to disk before moving on.
Screenshots or Videos
No response
Platform
Additional context
No response