esbuild-wasm-strapkit 0.20.1-build.3 → 0.21.0-build.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esbuild.wasm +0 -0
- package/esm/browser.d.ts +30 -6
- package/esm/browser.js +223 -417
- package/esm/browser.min.js +3 -3
- package/lib/browser.d.ts +30 -6
- package/lib/browser.js +223 -417
- package/lib/browser.min.js +3 -3
- package/lib/main.d.ts +30 -6
- package/lib/main.js +238 -445
- package/package.json +3 -3
package/esbuild.wasm
CHANGED
|
Binary file
|
package/esm/browser.d.ts
CHANGED
|
@@ -664,16 +664,40 @@ export let version: string
|
|
|
664
664
|
|
|
665
665
|
// Call this function to terminate esbuild's child process. The child process
|
|
666
666
|
// is not terminated and re-created after each API call because it's more
|
|
667
|
-
// efficient to keep it around when there are multiple API calls.
|
|
668
|
-
// process normally exits automatically when the parent process exits, so you
|
|
669
|
-
// usually don't need to call this function.
|
|
667
|
+
// efficient to keep it around when there are multiple API calls.
|
|
670
668
|
//
|
|
671
|
-
//
|
|
672
|
-
//
|
|
673
|
-
//
|
|
669
|
+
// In node this happens automatically before the parent node process exits. So
|
|
670
|
+
// you only need to call this if you know you will not make any more esbuild
|
|
671
|
+
// API calls and you want to clean up resources.
|
|
672
|
+
//
|
|
673
|
+
// Unlike node, Deno lacks the necessary APIs to clean up child processes
|
|
674
|
+
// automatically. You must manually call stop() in Deno when you're done
|
|
675
|
+
// using esbuild or Deno will continue running forever.
|
|
674
676
|
//
|
|
675
677
|
// Another reason you might want to call this is if you are using esbuild from
|
|
676
678
|
// within a Deno test. Deno fails tests that create a child process without
|
|
677
679
|
// killing it before the test ends, so you have to call this function (and
|
|
678
680
|
// await the returned promise) in every Deno test that uses esbuild.
|
|
679
681
|
export declare function stop(): Promise<void>
|
|
682
|
+
|
|
683
|
+
// Note: These declarations exist to avoid type errors when you omit "dom" from
|
|
684
|
+
// "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
|
|
685
|
+
// global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
|
|
686
|
+
// with the browser DOM and is present in many non-browser JavaScript runtimes
|
|
687
|
+
// (e.g. node and deno). Declaring it here allows esbuild's API to be used in
|
|
688
|
+
// these scenarios.
|
|
689
|
+
//
|
|
690
|
+
// There's an open issue about getting this problem corrected (although these
|
|
691
|
+
// declarations will need to remain even if this is fixed for backward
|
|
692
|
+
// compatibility with older TypeScript versions):
|
|
693
|
+
//
|
|
694
|
+
// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
|
|
695
|
+
//
|
|
696
|
+
declare global {
|
|
697
|
+
namespace WebAssembly {
|
|
698
|
+
interface Module {
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
interface URL {
|
|
702
|
+
}
|
|
703
|
+
}
|