@rspack/binding 0.2.2 → 0.2.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/binding.d.ts +13 -4
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export interface AfterResolveData {
|
|
|
92
92
|
fileDependencies: Array<string>
|
|
93
93
|
contextDependencies: Array<string>
|
|
94
94
|
missingDependencies: Array<string>
|
|
95
|
+
factoryMeta: FactoryMeta
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
export interface BeforeResolveData {
|
|
@@ -99,6 +100,10 @@ export interface BeforeResolveData {
|
|
|
99
100
|
context: string
|
|
100
101
|
}
|
|
101
102
|
|
|
103
|
+
export interface FactoryMeta {
|
|
104
|
+
sideEffects?: boolean
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
/**
|
|
103
108
|
* Some code is modified based on
|
|
104
109
|
* https://github.com/swc-project/swc/blob/d1d0607158ab40463d1b123fed52cc526eba8385/bindings/binding_core_node/src/util.rs#L29-L58
|
|
@@ -199,6 +204,7 @@ export interface JsHooks {
|
|
|
199
204
|
afterCompile: (...args: any[]) => any
|
|
200
205
|
finishModules: (...args: any[]) => any
|
|
201
206
|
finishMake: (...args: any[]) => any
|
|
207
|
+
buildModule: (...args: any[]) => any
|
|
202
208
|
beforeResolve: (...args: any[]) => any
|
|
203
209
|
afterResolve: (...args: any[]) => any
|
|
204
210
|
contextModuleBeforeResolve: (...args: any[]) => any
|
|
@@ -473,6 +479,7 @@ export interface RawCacheGroupOptions {
|
|
|
473
479
|
test?: string
|
|
474
480
|
/** What kind of chunks should be selected. */
|
|
475
481
|
chunks?: RegExp | 'async' | 'initial' | 'all'
|
|
482
|
+
type?: RegExp | string
|
|
476
483
|
minChunks?: number
|
|
477
484
|
minSize?: number
|
|
478
485
|
maxSize?: number
|
|
@@ -528,9 +535,11 @@ export interface RawDevServer {
|
|
|
528
535
|
hot: boolean
|
|
529
536
|
}
|
|
530
537
|
|
|
531
|
-
export interface
|
|
538
|
+
export interface RawEntryDescription {
|
|
532
539
|
import: Array<string>
|
|
533
540
|
runtime?: string
|
|
541
|
+
chunkLoading?: string
|
|
542
|
+
publicPath?: string
|
|
534
543
|
}
|
|
535
544
|
|
|
536
545
|
export interface RawExperiments {
|
|
@@ -719,7 +728,7 @@ export interface RawOptimizationOptions {
|
|
|
719
728
|
}
|
|
720
729
|
|
|
721
730
|
export interface RawOptions {
|
|
722
|
-
entry: Record<string,
|
|
731
|
+
entry: Record<string, RawEntryDescription>
|
|
723
732
|
/**
|
|
724
733
|
* Using this Vector to track the original order of user land entry configuration
|
|
725
734
|
* std::collection::HashMap does not guarantee the insertion order, for more details you could refer
|
|
@@ -770,8 +779,8 @@ export interface RawOutputOptions {
|
|
|
770
779
|
importFunctionName: string
|
|
771
780
|
iife: boolean
|
|
772
781
|
module: boolean
|
|
773
|
-
chunkFormat
|
|
774
|
-
chunkLoading
|
|
782
|
+
chunkFormat: string
|
|
783
|
+
chunkLoading: string
|
|
775
784
|
enabledChunkLoadingTypes?: Array<string>
|
|
776
785
|
trustedTypes?: RawTrustedTypes
|
|
777
786
|
sourceMapFilename: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"binaryName": "rspack"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@rspack/binding-darwin-arm64": "0.2.
|
|
26
|
-
"@rspack/binding-win32-arm64-msvc": "0.2.
|
|
27
|
-
"@rspack/binding-linux-arm64-gnu": "0.2.
|
|
28
|
-
"@rspack/binding-linux-arm64-musl": "0.2.
|
|
29
|
-
"@rspack/binding-win32-ia32-msvc": "0.2.
|
|
30
|
-
"@rspack/binding-darwin-x64": "0.2.
|
|
31
|
-
"@rspack/binding-win32-x64-msvc": "0.2.
|
|
32
|
-
"@rspack/binding-linux-x64-gnu": "0.2.
|
|
33
|
-
"@rspack/binding-linux-x64-musl": "0.2.
|
|
25
|
+
"@rspack/binding-darwin-arm64": "0.2.3",
|
|
26
|
+
"@rspack/binding-win32-arm64-msvc": "0.2.3",
|
|
27
|
+
"@rspack/binding-linux-arm64-gnu": "0.2.3",
|
|
28
|
+
"@rspack/binding-linux-arm64-musl": "0.2.3",
|
|
29
|
+
"@rspack/binding-win32-ia32-msvc": "0.2.3",
|
|
30
|
+
"@rspack/binding-darwin-x64": "0.2.3",
|
|
31
|
+
"@rspack/binding-win32-x64-msvc": "0.2.3",
|
|
32
|
+
"@rspack/binding-linux-x64-gnu": "0.2.3",
|
|
33
|
+
"@rspack/binding-linux-x64-musl": "0.2.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build:debug": "node scripts/build.js",
|