@rolldown/binding-wasm32-wasi 1.2.5 → 1.2.7
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
|
@@ -1627,6 +1627,12 @@ export declare class BindingDevEngine {
|
|
|
1627
1627
|
* actual module and its dependencies.
|
|
1628
1628
|
*/
|
|
1629
1629
|
compileEntry(moduleId: string, clientId: string): Promise<BindingLazyChunkOutput>
|
|
1630
|
+
/**
|
|
1631
|
+
* Same data the plugin-context `getModuleInfo` returns, readable from the engine
|
|
1632
|
+
* handle at any time (no hook context needed).
|
|
1633
|
+
*/
|
|
1634
|
+
getModuleInfo(moduleId: string): BindingModuleInfo | null
|
|
1635
|
+
getModuleIds(): Array<string>
|
|
1630
1636
|
}
|
|
1631
1637
|
|
|
1632
1638
|
export declare class BindingLoadPluginContext {
|
|
@@ -1910,8 +1916,8 @@ export declare class TraceSubscriberGuard {
|
|
|
1910
1916
|
}
|
|
1911
1917
|
|
|
1912
1918
|
export declare class TsconfigCache {
|
|
1913
|
-
/** Create a new transform cache with auto tsconfig discovery enabled. */
|
|
1914
|
-
constructor(yarnPnp: boolean)
|
|
1919
|
+
/** Create a new transform cache with auto or manual tsconfig discovery enabled. */
|
|
1920
|
+
constructor(yarnPnp: boolean, pathToTsconfig?: string | undefined | null)
|
|
1915
1921
|
/**
|
|
1916
1922
|
* Clear the cache.
|
|
1917
1923
|
*
|
|
@@ -2192,9 +2198,10 @@ export interface BindingEnhancedTransformOptions {
|
|
|
2192
2198
|
/**
|
|
2193
2199
|
* Configure tsconfig handling.
|
|
2194
2200
|
* - true: Auto-discover and load the nearest tsconfig.json
|
|
2201
|
+
* - string: Use the tsconfig at the provided path
|
|
2195
2202
|
* - TsconfigRawOptions: Use the provided inline tsconfig options
|
|
2196
2203
|
*/
|
|
2197
|
-
tsconfig?: boolean | BindingTsconfigRawOptions
|
|
2204
|
+
tsconfig?: boolean | string | BindingTsconfigRawOptions
|
|
2198
2205
|
/** An input source map to collapse with the output source map. */
|
|
2199
2206
|
inputMap?: SourceMap
|
|
2200
2207
|
}
|
|
@@ -2583,8 +2590,8 @@ export interface BindingManualCodeSplittingOptions {
|
|
|
2583
2590
|
}
|
|
2584
2591
|
|
|
2585
2592
|
export interface BindingMatchGroup {
|
|
2586
|
-
name: string | ((
|
|
2587
|
-
test?: string | RegExp | ((
|
|
2593
|
+
name: string | ((ids: Array<string>, ctx: BindingChunkingContext) => Array<VoidNullable<string>>)
|
|
2594
|
+
test?: string | RegExp | ((ids: Array<string>) => Uint8Array)
|
|
2588
2595
|
priority?: number
|
|
2589
2596
|
minSize?: number
|
|
2590
2597
|
minShareCount?: number
|
|
@@ -2680,6 +2687,7 @@ export interface BindingOutputOptions {
|
|
|
2680
2687
|
export interface BindingOutputs {
|
|
2681
2688
|
chunks: Array<BindingOutputChunk>
|
|
2682
2689
|
assets: Array<BindingOutputAsset>
|
|
2690
|
+
mangleCache?: Record<string, string | false>
|
|
2683
2691
|
}
|
|
2684
2692
|
|
|
2685
2693
|
export interface BindingOverwriteOptions {
|
|
@@ -2747,9 +2755,9 @@ export interface BindingPluginOptions {
|
|
|
2747
2755
|
renderStartMeta?: BindingPluginHookMeta
|
|
2748
2756
|
renderError?: (ctx: BindingPluginContext, error: BindingError[]) => void
|
|
2749
2757
|
renderErrorMeta?: BindingPluginHookMeta
|
|
2750
|
-
generateBundle?: (ctx: BindingPluginContext, bundle:
|
|
2758
|
+
generateBundle?: (ctx: BindingPluginContext, bundle: BindingResult<BindingOutputs>, isWrite: boolean, opts: BindingNormalizedOptions) => MaybePromise<VoidNullable<JsChangedOutputs>>
|
|
2751
2759
|
generateBundleMeta?: BindingPluginHookMeta
|
|
2752
|
-
writeBundle?: (ctx: BindingPluginContext, bundle:
|
|
2760
|
+
writeBundle?: (ctx: BindingPluginContext, bundle: BindingResult<BindingOutputs>, opts: BindingNormalizedOptions) => MaybePromise<VoidNullable<JsChangedOutputs>>
|
|
2753
2761
|
writeBundleMeta?: BindingPluginHookMeta
|
|
2754
2762
|
closeBundle?: (ctx: BindingPluginContext, error?: BindingError[]) => MaybePromise<VoidNullable>
|
|
2755
2763
|
closeBundleMeta?: BindingPluginHookMeta
|
|
@@ -3032,6 +3040,7 @@ export interface BindingViteReporterPluginConfig {
|
|
|
3032
3040
|
|
|
3033
3041
|
export interface BindingViteResolvePluginConfig {
|
|
3034
3042
|
resolveOptions: BindingViteResolvePluginResolveOptions
|
|
3043
|
+
tsconfig?: string
|
|
3035
3044
|
environmentConsumer: string
|
|
3036
3045
|
environmentName: string
|
|
3037
3046
|
builtins: Array<BindingStringOrRegex>
|
|
@@ -3068,6 +3077,7 @@ export interface BindingViteResolvePluginResolveOptions {
|
|
|
3068
3077
|
|
|
3069
3078
|
export interface BindingViteTransformPluginConfig {
|
|
3070
3079
|
root: string
|
|
3080
|
+
tsconfig?: string
|
|
3071
3081
|
include?: Array<BindingStringOrRegex>
|
|
3072
3082
|
exclude?: Array<BindingStringOrRegex>
|
|
3073
3083
|
jsxRefreshInclude?: Array<BindingStringOrRegex>
|
|
@@ -3181,7 +3191,7 @@ export interface PreRenderedChunk {
|
|
|
3181
3191
|
/** Whether this chunk is a dynamic entry point. */
|
|
3182
3192
|
isDynamicEntry: boolean
|
|
3183
3193
|
/** The id of a module that this chunk corresponds to. */
|
|
3184
|
-
facadeModuleId
|
|
3194
|
+
facadeModuleId: string | null
|
|
3185
3195
|
/** The list of ids of modules included in this chunk. */
|
|
3186
3196
|
moduleIds: Array<string>
|
|
3187
3197
|
/** Exported variable names from this chunk. */
|
|
Binary file
|