@rolldown/binding-wasm32-wasi 1.2.5 → 1.2.6

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.5",
3
+ "version": "1.2.6",
4
4
  "main": "rolldown-binding.wasi.cjs",
5
5
  "files": [
6
6
  "rolldown-binding.wasm32-wasi.wasm",
@@ -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 | ((id: string, ctx: BindingChunkingContext) => VoidNullable<string>)
2587
- test?: string | RegExp | ((id: string) => VoidNullable<boolean>)
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: BindingErrorsOr<BindingOutputs>, isWrite: boolean, opts: BindingNormalizedOptions) => MaybePromise<VoidNullable<JsChangedOutputs>>
2758
+ generateBundle?: (ctx: BindingPluginContext, bundle: BindingResult<BindingOutputs>, isWrite: boolean, opts: BindingNormalizedOptions) => MaybePromise<VoidNullable<JsChangedOutputs>>
2751
2759
  generateBundleMeta?: BindingPluginHookMeta
2752
- writeBundle?: (ctx: BindingPluginContext, bundle: BindingErrorsOr<BindingOutputs>, opts: BindingNormalizedOptions) => MaybePromise<VoidNullable<JsChangedOutputs>>
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>
Binary file