@rspack/binding 1.3.9 → 1.3.10

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.
Files changed (2) hide show
  1. package/binding.d.ts +21 -0
  2. package/package.json +10 -10
package/binding.d.ts CHANGED
@@ -76,6 +76,14 @@ export declare class Chunks {
76
76
  _has(chunk: JsChunk): boolean
77
77
  }
78
78
 
79
+ export declare class CodeGenerationResult {
80
+ get sources(): Sources
81
+ }
82
+
83
+ export declare class CodeGenerationResults {
84
+ get(module: Module, runtime: string | string[] | undefined): CodeGenerationResult
85
+ }
86
+
79
87
  export declare class ConcatenatedModule {
80
88
  get rootModule(): Module
81
89
  get modules(): Module[]
@@ -177,6 +185,7 @@ export declare class JsChunk {
177
185
  }
178
186
 
179
187
  export declare class JsChunkGraph {
188
+ hasChunkEntryDependentChunks(chunk: JsChunk): boolean
180
189
  getChunkModules(chunk: JsChunk): Module[]
181
190
  getChunkEntryModules(chunk: JsChunk): Module[]
182
191
  getNumberOfEntryModules(chunk: JsChunk): number
@@ -253,7 +262,9 @@ export declare class JsCompilation {
253
262
  addRuntimeModule(chunk: JsChunk, runtimeModule: JsAddingRuntimeModule): void
254
263
  get moduleGraph(): JsModuleGraph
255
264
  get chunkGraph(): JsChunkGraph
265
+ addEntry(args: [string, EntryDependency, JsEntryOptions | undefined][], callback: (errMsg: Error | null, results: [string | null, Module][]) => void): void
256
266
  addInclude(args: [string, EntryDependency, JsEntryOptions | undefined][], callback: (errMsg: Error | null, results: [string | null, Module][]) => void): void
267
+ get codeGenerationResults(): CodeGenerationResults
257
268
  }
258
269
 
259
270
  export declare class JsCompiler {
@@ -377,6 +388,10 @@ export declare class RawExternalItemFnCtx {
377
388
  getResolver(): JsResolver
378
389
  }
379
390
 
391
+ export declare class Sources {
392
+ _get(sourceType: string): JsCompatSourceOwned | null
393
+ }
394
+
380
395
  export interface BuiltinPlugin {
381
396
  name: BuiltinPluginName
382
397
  options: unknown
@@ -1454,10 +1469,12 @@ export interface RawAssetGeneratorOptions {
1454
1469
  publicPath?: "auto" | JsFilename
1455
1470
  dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string)
1456
1471
  importMode?: "url" | "preserve"
1472
+ binary?: boolean
1457
1473
  }
1458
1474
 
1459
1475
  export interface RawAssetInlineGeneratorOptions {
1460
1476
  dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string)
1477
+ binary?: boolean
1461
1478
  }
1462
1479
 
1463
1480
  export interface RawAssetParserDataUrl {
@@ -1479,6 +1496,7 @@ export interface RawAssetResourceGeneratorOptions {
1479
1496
  outputPath?: JsFilename
1480
1497
  publicPath?: "auto" | JsFilename
1481
1498
  importMode?: "url" | "preserve"
1499
+ binary?: boolean
1482
1500
  }
1483
1501
 
1484
1502
  export interface RawBannerPluginOptions {
@@ -1621,6 +1639,7 @@ export interface RawCssAutoGeneratorOptions {
1621
1639
 
1622
1640
  export interface RawCssAutoParserOptions {
1623
1641
  namedExports?: boolean
1642
+ url?: boolean
1624
1643
  }
1625
1644
 
1626
1645
  export interface RawCssExtractPluginOption {
@@ -1649,10 +1668,12 @@ export interface RawCssModuleGeneratorOptions {
1649
1668
 
1650
1669
  export interface RawCssModuleParserOptions {
1651
1670
  namedExports?: boolean
1671
+ url?: boolean
1652
1672
  }
1653
1673
 
1654
1674
  export interface RawCssParserOptions {
1655
1675
  namedExports?: boolean
1676
+ url?: boolean
1656
1677
  }
1657
1678
 
1658
1679
  export interface RawDllEntryPluginOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -48,15 +48,15 @@
48
48
  }
49
49
  },
50
50
  "optionalDependencies": {
51
- "@rspack/binding-darwin-arm64": "1.3.9",
52
- "@rspack/binding-linux-arm64-gnu": "1.3.9",
53
- "@rspack/binding-win32-arm64-msvc": "1.3.9",
54
- "@rspack/binding-linux-arm64-musl": "1.3.9",
55
- "@rspack/binding-win32-ia32-msvc": "1.3.9",
56
- "@rspack/binding-darwin-x64": "1.3.9",
57
- "@rspack/binding-win32-x64-msvc": "1.3.9",
58
- "@rspack/binding-linux-x64-musl": "1.3.9",
59
- "@rspack/binding-linux-x64-gnu": "1.3.9"
51
+ "@rspack/binding-darwin-arm64": "1.3.10",
52
+ "@rspack/binding-win32-arm64-msvc": "1.3.10",
53
+ "@rspack/binding-linux-arm64-gnu": "1.3.10",
54
+ "@rspack/binding-win32-ia32-msvc": "1.3.10",
55
+ "@rspack/binding-darwin-x64": "1.3.10",
56
+ "@rspack/binding-win32-x64-msvc": "1.3.10",
57
+ "@rspack/binding-linux-arm64-musl": "1.3.10",
58
+ "@rspack/binding-linux-x64-gnu": "1.3.10",
59
+ "@rspack/binding-linux-x64-musl": "1.3.10"
60
60
  },
61
61
  "scripts": {
62
62
  "build:dev": "node scripts/build.js",