@rolldown/binding-wasm32-wasi 1.2.1 → 1.2.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/binding-wasm32-wasi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "rolldown-binding.wasi.cjs",
|
|
5
5
|
"files": [
|
|
6
6
|
"rolldown-binding.wasm32-wasi.wasm",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"browser": "rolldown-binding.wasi-browser.js",
|
|
38
38
|
"type": "module",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@napi-rs/wasm-runtime": "
|
|
40
|
+
"@napi-rs/wasm-runtime": "~1.2.2",
|
|
41
41
|
"@emnapi/core": "2.0.0-alpha.3",
|
|
42
42
|
"@emnapi/runtime": "2.0.0-alpha.3"
|
|
43
43
|
}
|
|
@@ -2442,6 +2442,8 @@ export interface BindingInputOptions {
|
|
|
2442
2442
|
keepNames?: boolean
|
|
2443
2443
|
checks?: BindingChecksOptions
|
|
2444
2444
|
deferSyncScanData?: undefined | (() => BindingDeferSyncScanData[])
|
|
2445
|
+
/** Asked for while the build is closing, so what it returns includes `closeBundle`. */
|
|
2446
|
+
pluginTimings?: undefined | (() => BindingPluginTimingsMeasurement)
|
|
2445
2447
|
makeAbsoluteExternalsRelative?: BindingMakeAbsoluteExternalsRelative
|
|
2446
2448
|
devtools?: BindingDevtoolsOptions
|
|
2447
2449
|
invalidateJsSideCache?: () => void
|
|
@@ -2712,6 +2714,33 @@ export declare enum BindingPluginOrder {
|
|
|
2712
2714
|
Post = 1
|
|
2713
2715
|
}
|
|
2714
2716
|
|
|
2717
|
+
/**
|
|
2718
|
+
* What one callback cost, measured inside it on the JavaScript side — the one place the
|
|
2719
|
+
* measurement exists, since this side can only bracket dispatch and completion.
|
|
2720
|
+
*/
|
|
2721
|
+
export interface BindingPluginTiming {
|
|
2722
|
+
/** The plugin the callback belongs to, or the options it was configured on. */
|
|
2723
|
+
owner: string
|
|
2724
|
+
kind: 'plugin' | 'outputOption' | 'inputOption'
|
|
2725
|
+
hook: string
|
|
2726
|
+
calls: number
|
|
2727
|
+
ms: number
|
|
2728
|
+
maxInFlight: number
|
|
2729
|
+
/** How much of `ms` is double counted because calls overlapped. */
|
|
2730
|
+
overlapMs: number
|
|
2731
|
+
/**
|
|
2732
|
+
* Whether `ms` may be compared against another row's — false once two calls of this hook
|
|
2733
|
+
* overlapped, because then their spans cover work each other was doing.
|
|
2734
|
+
*/
|
|
2735
|
+
rankable: boolean
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
export interface BindingPluginTimingsMeasurement {
|
|
2739
|
+
/** Wall time in which any measured callback was running, counting overlap once. */
|
|
2740
|
+
busyMs: number
|
|
2741
|
+
rows: Array<BindingPluginTiming>
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2715
2744
|
export interface BindingPluginWithIndex {
|
|
2716
2745
|
index: number
|
|
2717
2746
|
plugin: BindingPluginOptions
|
|
Binary file
|