@rspack/binding 0.1.6 → 0.1.8
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/binding.d.ts +21 -1
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface ThreadsafeNodeFS {
|
|
|
12
12
|
writeFile: (...args: any[]) => any
|
|
13
13
|
mkdir: (...args: any[]) => any
|
|
14
14
|
mkdirp: (...args: any[]) => any
|
|
15
|
+
removeDirAll: (...args: any[]) => any
|
|
15
16
|
}
|
|
16
17
|
export interface RawPattern {
|
|
17
18
|
from: string
|
|
@@ -48,6 +49,7 @@ export interface RawHtmlPluginConfig {
|
|
|
48
49
|
filename?: string
|
|
49
50
|
/** template html file */
|
|
50
51
|
template?: string
|
|
52
|
+
templateContent?: string
|
|
51
53
|
templateParameters?: Record<string, string>
|
|
52
54
|
/** `head`, `body` or None */
|
|
53
55
|
inject?: "head" | "body"
|
|
@@ -220,6 +222,7 @@ export interface RawModuleRule {
|
|
|
220
222
|
resource?: RawRuleSetCondition
|
|
221
223
|
/** A condition matcher against the resource query. */
|
|
222
224
|
resourceQuery?: RawRuleSetCondition
|
|
225
|
+
descriptionData?: Record<string, RawRuleSetCondition>
|
|
223
226
|
sideEffects?: boolean
|
|
224
227
|
use?: Array<RawModuleRuleUse>
|
|
225
228
|
type?: string
|
|
@@ -302,8 +305,14 @@ export interface RawLibraryOptions {
|
|
|
302
305
|
umdNamedDefine?: boolean
|
|
303
306
|
auxiliaryComment?: RawLibraryAuxiliaryComment
|
|
304
307
|
}
|
|
308
|
+
export interface RawCrossOriginLoading {
|
|
309
|
+
type: "bool" | "string"
|
|
310
|
+
stringPayload?: string
|
|
311
|
+
boolPayload?: boolean
|
|
312
|
+
}
|
|
305
313
|
export interface RawOutputOptions {
|
|
306
314
|
path: string
|
|
315
|
+
clean: boolean
|
|
307
316
|
publicPath: string
|
|
308
317
|
assetModuleFilename: string
|
|
309
318
|
wasmLoading: string
|
|
@@ -311,9 +320,11 @@ export interface RawOutputOptions {
|
|
|
311
320
|
webassemblyModuleFilename: string
|
|
312
321
|
filename: string
|
|
313
322
|
chunkFilename: string
|
|
323
|
+
crossOriginLoading: RawCrossOriginLoading
|
|
314
324
|
cssFilename: string
|
|
315
325
|
cssChunkFilename: string
|
|
316
326
|
uniqueName: string
|
|
327
|
+
chunkLoadingGlobal: string
|
|
317
328
|
library?: RawLibraryOptions
|
|
318
329
|
strictModuleErrorHandling: boolean
|
|
319
330
|
enabledLibraryTypes?: Array<string>
|
|
@@ -335,6 +346,7 @@ export interface RawResolveOptions {
|
|
|
335
346
|
tsConfigPath?: string
|
|
336
347
|
modules?: Array<string>
|
|
337
348
|
byDependency?: Record<string, RawResolveOptions>
|
|
349
|
+
fullySpecified?: boolean
|
|
338
350
|
}
|
|
339
351
|
export interface RawSnapshotStrategy {
|
|
340
352
|
hash: boolean
|
|
@@ -370,6 +382,12 @@ export interface RawStatsOptions {
|
|
|
370
382
|
}
|
|
371
383
|
export interface RawOptions {
|
|
372
384
|
entry: Record<string, RawEntryItem>
|
|
385
|
+
/**
|
|
386
|
+
* Using this Vector to track the original order of user land entry configuration
|
|
387
|
+
* std::collection::HashMap does not guarantee the insertion order, for more details you could refer
|
|
388
|
+
* https://doc.rust-lang.org/std/collections/index.html#iterators:~:text=For%20unordered%20collections%20like%20HashMap%2C%20the%20items%20will%20be%20yielded%20in%20whatever%20order%20the%20internal%20representation%20made%20most%20convenient.%20This%20is%20great%20for%20reading%20through%20all%20the%20contents%20of%20the%20collection.
|
|
389
|
+
*/
|
|
390
|
+
entryOrder: Array<string>
|
|
373
391
|
mode?: undefined | 'production' | 'development' | 'none'
|
|
374
392
|
target: Array<string>
|
|
375
393
|
context: string
|
|
@@ -387,7 +405,7 @@ export interface RawOptions {
|
|
|
387
405
|
snapshot: RawSnapshotOptions
|
|
388
406
|
cache: RawCacheOptions
|
|
389
407
|
experiments: RawExperiments
|
|
390
|
-
node
|
|
408
|
+
node?: RawNodeOption
|
|
391
409
|
}
|
|
392
410
|
export interface JsAssetInfoRelated {
|
|
393
411
|
sourceMap?: string
|
|
@@ -514,6 +532,8 @@ export interface JsStatsModuleReason {
|
|
|
514
532
|
moduleIdentifier?: string
|
|
515
533
|
moduleName?: string
|
|
516
534
|
moduleId?: string
|
|
535
|
+
type?: string
|
|
536
|
+
userRequest?: string
|
|
517
537
|
}
|
|
518
538
|
export interface JsStatsChunk {
|
|
519
539
|
type: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"name": "rspack"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@rspack/binding-darwin-arm64": "0.1.
|
|
29
|
-
"@rspack/binding-win32-arm64-msvc": "0.1.
|
|
30
|
-
"@rspack/binding-linux-arm64-gnu": "0.1.
|
|
31
|
-
"@rspack/binding-linux-arm64-musl": "0.1.
|
|
32
|
-
"@rspack/binding-win32-ia32-msvc": "0.1.
|
|
33
|
-
"@rspack/binding-darwin-x64": "0.1.
|
|
34
|
-
"@rspack/binding-win32-x64-msvc": "0.1.
|
|
35
|
-
"@rspack/binding-linux-x64-gnu": "0.1.
|
|
36
|
-
"@rspack/binding-linux-x64-musl": "0.1.
|
|
28
|
+
"@rspack/binding-darwin-arm64": "0.1.8",
|
|
29
|
+
"@rspack/binding-win32-arm64-msvc": "0.1.8",
|
|
30
|
+
"@rspack/binding-linux-arm64-gnu": "0.1.8",
|
|
31
|
+
"@rspack/binding-linux-arm64-musl": "0.1.8",
|
|
32
|
+
"@rspack/binding-win32-ia32-msvc": "0.1.8",
|
|
33
|
+
"@rspack/binding-darwin-x64": "0.1.8",
|
|
34
|
+
"@rspack/binding-win32-x64-msvc": "0.1.8",
|
|
35
|
+
"@rspack/binding-linux-x64-gnu": "0.1.8",
|
|
36
|
+
"@rspack/binding-linux-x64-musl": "0.1.8"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build:debug": "node scripts/build.js",
|