Open loynoir opened 1 month ago
I'm not sure what's up with Deno here but you're trying to use esbuild's npm library with Deno, not esbuild's Deno library with Deno. I suggest using esbuild's Deno library instead of esbuild's npm library as it's meant for use with Deno:
-import * as esbuild from 'npm:esbuild@0.23.1'
+import * as esbuild from 'https://deno.land/x/esbuild@v0.23.1/mod.js'
I don't consider behavior of esbuild's npm library that doesn't work well with Deno's npm compatibility layer to be a problem with esbuild as esbuild's npm library is meant for npm, not for Deno.
bug
With
await esbuild.stop()
, deno test still detect resource leaksreproduce
/tmp/reproduce/x.ts
actual
expected
With
await esbuild.stop()
, deno test not detect resource leaks.env
deno 1.46.0