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
I am trying to use incremental build feature to implement custom development setup, but it doesn't seem to work properly. I am using example from documentation:
asyncfunctionexample(){console.log('start');letresult=awaitrequire('esbuild').build({entryPoints: ['app.js'],bundle: true,outfile: 'out.js',incremental: true,});// Call "rebuild" as many times as you wantfor(leti=0;i<5;i++){console.log('before rebuild');awaitresult.rebuild();console.log('after rebuild');// <- this would never print}// Call "dispose" when you're done to free up resources.result.rebuild.dispose();console.log('finish');}example();
When I call await result.rebuild(), node process exists. I tried this on node 10 and 14, same results. Oddly, when I add setTimeout(() => {}, 5000); at the top of the file, program works as expected
The text was updated successfully, but these errors were encountered:
This was a regression that was introduced by a recent 3rd-party contribution: #656. I have already identified and fixed the issue: 0d50bbb. The fix hasn't been released yet but it will be in the next release.
Hi!
I am trying to use incremental build feature to implement custom development setup, but it doesn't seem to work properly. I am using example from documentation:
When I call
await result.rebuild()
, node process exists. I tried this on node 10 and 14, same results. Oddly, when I addsetTimeout(() => {}, 5000);
at the top of the file, program works as expectedThe text was updated successfully, but these errors were encountered: