You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rsilb has build js api. But cannot get compiled stats object for returned instance after first compiled.
I tried onAfterBuild hook is still not works.
import{build}from'@rslib/core'constinstance=awaitbuild(/*..., config and options*/)instance.stats// undefinedinstance.onAfterBuild(options=>{// not called when first compiled})
What does the proposed API look like?
instance.stats// is a object// orinstance.onAfterBuild(options=>{// should called when first compiled})
It's better to expose stats for buildInstance or allow developer to register hook before run rsbuildInstance.build.