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
This works totally fine in 0.11.18, but breaks in the latest version.
If I comment out the line await sleep(1);, then it works fine in the new version.
Example repository
I have included the example repository below. If you clone it and run it, everything works fine. Then upgrade esbuild, and it will break. https://github.com/markwylde/esbuild-exec-bug
I've tried for the whole day to narrow this down, but I just don't know why it's happening.
** Broken (version 0.11.19 or higher)
** Working (version 0.11.18)
Node Versions
I've tested this on multiple versions of node, all with the same results:
v12.20.1
v14.17.0
v16.1.0
Edits:
I was originally doing an exec, but it's nothing to do with that. It looks like anything async breaks it
I simplified the code to remove the outer async function
The text was updated successfully, but these errors were encountered:
Thanks for the report. This is happening because the internal helper functions are parsed once and cached per configuration, but the new profiler name option that was added in version 0.11.19 was accidentally not included in the cache key. It's strange that this didn't show up in tests. I'll fix this in the next release.
I have come across a very strange issue.
I have the following build script:
This works totally fine in 0.11.18, but breaks in the latest version.
If I comment out the line
await sleep(1);
, then it works fine in the new version.Example repository
I have included the example repository below. If you clone it and run it, everything works fine. Then upgrade esbuild, and it will break.
https://github.com/markwylde/esbuild-exec-bug
I've tried for the whole day to narrow this down, but I just don't know why it's happening.
** Broken (version 0.11.19 or higher)
** Working (version 0.11.18)
Node Versions
I've tested this on multiple versions of node, all with the same results:
Edits:
exec
, but it's nothing to do with that. It looks like anything async breaks itThe text was updated successfully, but these errors were encountered: