@rspack/binding 2.0.0-alpha.0 → 2.0.0-alpha.1
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/napi-binding.d.ts +24 -7
- package/package.json +11 -11
package/napi-binding.d.ts
CHANGED
|
@@ -95,6 +95,8 @@ export interface JsSource {
|
|
|
95
95
|
source: string | Buffer
|
|
96
96
|
map?: string
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
export type CompilerId = void;
|
|
98
100
|
/* -- banner.d.ts end -- */
|
|
99
101
|
|
|
100
102
|
/* -- napi-rs generated below -- */
|
|
@@ -213,6 +215,7 @@ export declare class Dependency {
|
|
|
213
215
|
get critical(): boolean
|
|
214
216
|
set critical(val: boolean)
|
|
215
217
|
get ids(): Array<string> | undefined
|
|
218
|
+
get loc(): DependencyLocation | null
|
|
216
219
|
}
|
|
217
220
|
|
|
218
221
|
export declare class Diagnostics {
|
|
@@ -334,6 +337,7 @@ export declare class JsCompiler {
|
|
|
334
337
|
rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
|
|
335
338
|
close(): Promise<void>
|
|
336
339
|
getVirtualFileStore(): VirtualFileStore | null
|
|
340
|
+
getCompilerId(): ExternalObject<CompilerId>
|
|
337
341
|
}
|
|
338
342
|
|
|
339
343
|
export declare class JsContextModuleFactoryAfterResolveData {
|
|
@@ -361,6 +365,10 @@ export declare class JsContextModuleFactoryBeforeResolveData {
|
|
|
361
365
|
set recursive(recursive: boolean)
|
|
362
366
|
}
|
|
363
367
|
|
|
368
|
+
export declare class JsCoordinator {
|
|
369
|
+
constructor(getServerCompilerIdJsFn: () => ExternalObject<CompilerId>)
|
|
370
|
+
}
|
|
371
|
+
|
|
364
372
|
export declare class JsDependencies {
|
|
365
373
|
get fileDependencies(): Array<string>
|
|
366
374
|
get addedFileDependencies(): Array<string>
|
|
@@ -602,7 +610,9 @@ export declare enum BuiltinPluginName {
|
|
|
602
610
|
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
603
611
|
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
604
612
|
HttpUriPlugin = 'HttpUriPlugin',
|
|
605
|
-
CssChunkingPlugin = 'CssChunkingPlugin'
|
|
613
|
+
CssChunkingPlugin = 'CssChunkingPlugin',
|
|
614
|
+
RscServerPlugin = 'RscServerPlugin',
|
|
615
|
+
RscClientPlugin = 'RscClientPlugin'
|
|
606
616
|
}
|
|
607
617
|
|
|
608
618
|
export declare function cleanupGlobalTrace(): void
|
|
@@ -1028,6 +1038,15 @@ export interface JsResourceData {
|
|
|
1028
1038
|
descriptionFilePath?: string
|
|
1029
1039
|
}
|
|
1030
1040
|
|
|
1041
|
+
export interface JsRscClientPluginOptions {
|
|
1042
|
+
coordinator: JsCoordinator
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export interface JsRscServerPluginOptions {
|
|
1046
|
+
coordinator: JsCoordinator
|
|
1047
|
+
onServerComponentChanges?: (() => void) | undefined | null
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1031
1050
|
export interface JsRsdoctorAsset {
|
|
1032
1051
|
ukey: number
|
|
1033
1052
|
path: string
|
|
@@ -2259,11 +2278,9 @@ export interface RawIgnorePluginOptions {
|
|
|
2259
2278
|
|
|
2260
2279
|
export interface RawIncremental {
|
|
2261
2280
|
silent: boolean
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
dependenciesDiagnostics: boolean
|
|
2266
|
-
sideEffects: boolean
|
|
2281
|
+
buildModuleGraph: boolean
|
|
2282
|
+
finishModules: boolean
|
|
2283
|
+
optimizeDependencies: boolean
|
|
2267
2284
|
buildChunkGraph: boolean
|
|
2268
2285
|
moduleIds: boolean
|
|
2269
2286
|
chunkIds: boolean
|
|
@@ -2272,7 +2289,7 @@ export interface RawIncremental {
|
|
|
2272
2289
|
modulesRuntimeRequirements: boolean
|
|
2273
2290
|
chunksRuntimeRequirements: boolean
|
|
2274
2291
|
chunksHashes: boolean
|
|
2275
|
-
|
|
2292
|
+
chunkAsset: boolean
|
|
2276
2293
|
emitAssets: boolean
|
|
2277
2294
|
}
|
|
2278
2295
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@rspack/binding-
|
|
54
|
-
"@rspack/binding-
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-
|
|
59
|
-
"@rspack/binding-
|
|
60
|
-
"@rspack/binding-
|
|
61
|
-
"@rspack/binding-linux-x64-
|
|
62
|
-
"@rspack/binding-
|
|
53
|
+
"@rspack/binding-linux-arm64-musl": "2.0.0-alpha.1",
|
|
54
|
+
"@rspack/binding-darwin-arm64": "2.0.0-alpha.1",
|
|
55
|
+
"@rspack/binding-linux-arm64-gnu": "2.0.0-alpha.1",
|
|
56
|
+
"@rspack/binding-win32-ia32-msvc": "2.0.0-alpha.1",
|
|
57
|
+
"@rspack/binding-win32-arm64-msvc": "2.0.0-alpha.1",
|
|
58
|
+
"@rspack/binding-wasm32-wasi": "2.0.0-alpha.1",
|
|
59
|
+
"@rspack/binding-darwin-x64": "2.0.0-alpha.1",
|
|
60
|
+
"@rspack/binding-win32-x64-msvc": "2.0.0-alpha.1",
|
|
61
|
+
"@rspack/binding-linux-x64-gnu": "2.0.0-alpha.1",
|
|
62
|
+
"@rspack/binding-linux-x64-musl": "2.0.0-alpha.1"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build:dev": "node scripts/build.js",
|