@rolldown/binding-wasm32-wasi 1.3.1 → 1.3.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/package.json
CHANGED
|
@@ -887,8 +887,8 @@ export interface JSONSourceMap {
|
|
|
887
887
|
* This value is prepended to the individual entries in the "source" field.
|
|
888
888
|
*/
|
|
889
889
|
sourceRoot?: string
|
|
890
|
-
/** A list of original sources used by the "mappings" entry. */
|
|
891
|
-
sources: Array<string>
|
|
890
|
+
/** A list of original sources used by the "mappings" entry, with `None` for unknown names. */
|
|
891
|
+
sources: Array<string | undefined | null>
|
|
892
892
|
/**
|
|
893
893
|
* An optional list of source content, useful when the "source" can't be hosted.
|
|
894
894
|
* The contents are listed in the same order as the sources in line 5. "null" may be used if some original sources should be retrieved by name.
|
|
@@ -912,7 +912,7 @@ export interface SourceMap {
|
|
|
912
912
|
mappings: string
|
|
913
913
|
names: Array<string>
|
|
914
914
|
sourceRoot?: string
|
|
915
|
-
sources: Array<string>
|
|
915
|
+
sources: Array<string | undefined | null>
|
|
916
916
|
sourcesContent?: Array<string>
|
|
917
917
|
version: number
|
|
918
918
|
ignoreList?: Array<number>
|
|
@@ -1573,7 +1573,7 @@ export declare class BindingCallableBuiltinPlugin {
|
|
|
1573
1573
|
constructor(plugin: BindingBuiltinPlugin)
|
|
1574
1574
|
getOrder(hookName: string): string | null
|
|
1575
1575
|
resolveId(id: string, importer?: string | undefined | null, options?: BindingHookJsResolveIdOptions | undefined | null): Promise<BindingHookJsResolveIdOutput | undefined | null>
|
|
1576
|
-
load(id: string): Promise<
|
|
1576
|
+
load(id: string): Promise<BindingHookLoadOutput | undefined | null>
|
|
1577
1577
|
transform(code: string, id: string, options: BindingTransformHookExtraArgs): Promise<BindingHookTransformOutput | undefined | null>
|
|
1578
1578
|
watchChange(path: string, event: BindingJsWatchChangeEvent): Promise<undefined>
|
|
1579
1579
|
}
|
|
@@ -1599,12 +1599,15 @@ export declare class BindingDecodedMap {
|
|
|
1599
1599
|
* Each line is an array of segments, where each segment is [generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex?].
|
|
1600
1600
|
*/
|
|
1601
1601
|
get mappings(): Array<Array<Array<number>>>
|
|
1602
|
-
/**
|
|
1603
|
-
|
|
1602
|
+
/**
|
|
1603
|
+
* The list of source indices that should be excluded from debugging, or `undefined` when
|
|
1604
|
+
* the map has none. `magic-string` leaves the field out in that case.
|
|
1605
|
+
*/
|
|
1606
|
+
get x_google_ignoreList(): Array<number> | undefined
|
|
1604
1607
|
}
|
|
1605
1608
|
|
|
1606
1609
|
export declare class BindingDevEngine {
|
|
1607
|
-
constructor(options: BindingBundlerOptions, devOptions
|
|
1610
|
+
constructor(options: BindingBundlerOptions, devOptions: BindingDevOptions)
|
|
1608
1611
|
run(): Promise<void>
|
|
1609
1612
|
ensureCurrentBuildFinish(): Promise<void>
|
|
1610
1613
|
getBundleState(): Promise<BindingBundleState>
|
|
@@ -1655,6 +1658,8 @@ export declare class BindingMagicString {
|
|
|
1655
1658
|
get filename(): string | null
|
|
1656
1659
|
get indentExclusionRanges(): Array<Array<number>> | Array<number> | null
|
|
1657
1660
|
get ignoreList(): boolean
|
|
1661
|
+
/** The `hires` option of this instance, or `null` when it is not set. */
|
|
1662
|
+
get hires(): boolean | 'boundary' | null
|
|
1658
1663
|
get offset(): number
|
|
1659
1664
|
set offset(offset: number)
|
|
1660
1665
|
replace(from: string, to: string): this
|
|
@@ -1876,8 +1881,11 @@ export declare class BindingSourceMap {
|
|
|
1876
1881
|
get names(): Array<string>
|
|
1877
1882
|
/** The VLQ-encoded mappings string. */
|
|
1878
1883
|
get mappings(): string
|
|
1879
|
-
/**
|
|
1880
|
-
|
|
1884
|
+
/**
|
|
1885
|
+
* The list of source indices that should be excluded from debugging, or `undefined` when
|
|
1886
|
+
* the map has none. `magic-string` leaves the field out in that case.
|
|
1887
|
+
*/
|
|
1888
|
+
get x_google_ignoreList(): Array<number> | undefined
|
|
1881
1889
|
/** Returns the source map as a JSON string. */
|
|
1882
1890
|
toString(): string
|
|
1883
1891
|
/** Returns the source map as a base64-encoded data URL. */
|
|
@@ -2031,6 +2039,7 @@ export interface BindingChecksOptions {
|
|
|
2031
2039
|
export interface BindingChunkImportMap {
|
|
2032
2040
|
baseUrl?: string
|
|
2033
2041
|
fileName?: string
|
|
2042
|
+
include?: Array<BindingStringOrRegex>
|
|
2034
2043
|
}
|
|
2035
2044
|
|
|
2036
2045
|
export declare enum BindingChunkModuleOrderBy {
|
|
@@ -2292,11 +2301,7 @@ export interface BindingEsmExternalRequirePluginConfig {
|
|
|
2292
2301
|
}
|
|
2293
2302
|
|
|
2294
2303
|
export interface BindingExperimentalDevModeOptions {
|
|
2295
|
-
host?: string
|
|
2296
|
-
port?: number
|
|
2297
2304
|
implement: string
|
|
2298
|
-
/** @deprecated Common runtime injection will be disabled by default in the future. */
|
|
2299
|
-
skipCommonRuntimeInjection?: boolean
|
|
2300
2305
|
lazy?: boolean
|
|
2301
2306
|
hotUpdate?: boolean
|
|
2302
2307
|
}
|
|
@@ -2340,12 +2345,6 @@ export interface BindingHookFilter {
|
|
|
2340
2345
|
value?: Array<Array<BindingFilterToken>>
|
|
2341
2346
|
}
|
|
2342
2347
|
|
|
2343
|
-
export interface BindingHookJsLoadOutput {
|
|
2344
|
-
code: string
|
|
2345
|
-
map?: string
|
|
2346
|
-
moduleSideEffects?: boolean | 'no-treeshake'
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
2348
|
export interface BindingHookJsResolveIdOptions {
|
|
2350
2349
|
isEntry?: boolean
|
|
2351
2350
|
/**
|
|
@@ -2549,6 +2548,7 @@ export interface BindingInputOptions {
|
|
|
2549
2548
|
makeAbsoluteExternalsRelative?: BindingMakeAbsoluteExternalsRelative
|
|
2550
2549
|
devtools?: BindingDevtoolsOptions
|
|
2551
2550
|
invalidateJsSideCache?: () => void
|
|
2551
|
+
resetJsModuleOptions?: (moduleIds: string[] | null) => void
|
|
2552
2552
|
preserveEntrySignatures?: BindingPreserveEntrySignatures
|
|
2553
2553
|
optimization?: BindingOptimization
|
|
2554
2554
|
context?: string
|
|
@@ -2626,6 +2626,13 @@ export interface BindingMagicStringOptions {
|
|
|
2626
2626
|
offset?: number
|
|
2627
2627
|
indentExclusionRanges?: Array<Array<number>> | Array<number>
|
|
2628
2628
|
ignoreList?: boolean
|
|
2629
|
+
/**
|
|
2630
|
+
* The resolution of the sourcemaps generated from this instance: `true`, `false` or
|
|
2631
|
+
* `"boundary"`. It applies to the map that Rolldown generates when a hook returns this
|
|
2632
|
+
* instance without a `map`, and to `generateMap()` without `hires`. When it is not set,
|
|
2633
|
+
* Rolldown uses `"boundary"` and `generateMap()` uses `false`.
|
|
2634
|
+
*/
|
|
2635
|
+
hires?: boolean | 'boundary'
|
|
2629
2636
|
}
|
|
2630
2637
|
|
|
2631
2638
|
export type BindingMakeAbsoluteExternalsRelative =
|
|
@@ -2856,6 +2863,8 @@ export interface BindingPluginTiming {
|
|
|
2856
2863
|
hook: string
|
|
2857
2864
|
calls: number
|
|
2858
2865
|
ms: number
|
|
2866
|
+
/** The longest single call. */
|
|
2867
|
+
maxMs: number
|
|
2859
2868
|
maxInFlight: number
|
|
2860
2869
|
/** How much of `ms` is double counted because calls overlapped. */
|
|
2861
2870
|
overlapMs: number
|
|
@@ -2928,9 +2937,7 @@ export interface BindingResolveOptions {
|
|
|
2928
2937
|
yarnPnp?: boolean
|
|
2929
2938
|
}
|
|
2930
2939
|
|
|
2931
|
-
export
|
|
2932
|
-
inner: string | BindingJsonSourcemap
|
|
2933
|
-
}
|
|
2940
|
+
export type BindingSourcemap = string | BindingJsonSourcemap
|
|
2934
2941
|
|
|
2935
2942
|
export interface BindingSourceMapOptions {
|
|
2936
2943
|
/** The filename for the generated file (goes into `map.file`) */
|
|
Binary file
|