@rspack/binding 2.0.0-alpha.0 → 2.0.0-beta.0
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 +26 -8
- 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
|
|
@@ -1832,6 +1851,7 @@ export interface RawCacheOptionsPersistent {
|
|
|
1832
1851
|
version?: string
|
|
1833
1852
|
snapshot?: RawSnapshotOptions
|
|
1834
1853
|
storage?: RawStorageOptions
|
|
1854
|
+
portable?: boolean
|
|
1835
1855
|
}
|
|
1836
1856
|
|
|
1837
1857
|
export interface RawCircularDependencyRspackPluginOptions {
|
|
@@ -2259,11 +2279,9 @@ export interface RawIgnorePluginOptions {
|
|
|
2259
2279
|
|
|
2260
2280
|
export interface RawIncremental {
|
|
2261
2281
|
silent: boolean
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
dependenciesDiagnostics: boolean
|
|
2266
|
-
sideEffects: boolean
|
|
2282
|
+
buildModuleGraph: boolean
|
|
2283
|
+
finishModules: boolean
|
|
2284
|
+
optimizeDependencies: boolean
|
|
2267
2285
|
buildChunkGraph: boolean
|
|
2268
2286
|
moduleIds: boolean
|
|
2269
2287
|
chunkIds: boolean
|
|
@@ -2272,7 +2290,7 @@ export interface RawIncremental {
|
|
|
2272
2290
|
modulesRuntimeRequirements: boolean
|
|
2273
2291
|
chunksRuntimeRequirements: boolean
|
|
2274
2292
|
chunksHashes: boolean
|
|
2275
|
-
|
|
2293
|
+
chunkAsset: boolean
|
|
2276
2294
|
emitAssets: boolean
|
|
2277
2295
|
}
|
|
2278
2296
|
|
|
@@ -2496,7 +2514,6 @@ export interface RawModuleOptions {
|
|
|
2496
2514
|
parser?: Record<string, RawParserOptions>
|
|
2497
2515
|
generator?: Record<string, RawGeneratorOptions>
|
|
2498
2516
|
noParse?: string | RegExp | ((request: string) => boolean) | (string | RegExp | ((request: string) => boolean))[]
|
|
2499
|
-
unsafeCache?: boolean | RegExp
|
|
2500
2517
|
}
|
|
2501
2518
|
|
|
2502
2519
|
export interface RawModuleRule {
|
|
@@ -2783,6 +2800,7 @@ export interface RawRstestPluginOptions {
|
|
|
2783
2800
|
hoistMockModule: boolean
|
|
2784
2801
|
manualMockRoot: string
|
|
2785
2802
|
preserveNewUrl?: Array<string>
|
|
2803
|
+
globals?: boolean
|
|
2786
2804
|
}
|
|
2787
2805
|
|
|
2788
2806
|
export interface RawRuleSetCondition {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
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-musl": "2.0.0-
|
|
62
|
-
"@rspack/binding-
|
|
53
|
+
"@rspack/binding-darwin-arm64": "2.0.0-beta.0",
|
|
54
|
+
"@rspack/binding-win32-arm64-msvc": "2.0.0-beta.0",
|
|
55
|
+
"@rspack/binding-linux-arm64-gnu": "2.0.0-beta.0",
|
|
56
|
+
"@rspack/binding-linux-arm64-musl": "2.0.0-beta.0",
|
|
57
|
+
"@rspack/binding-win32-ia32-msvc": "2.0.0-beta.0",
|
|
58
|
+
"@rspack/binding-wasm32-wasi": "2.0.0-beta.0",
|
|
59
|
+
"@rspack/binding-win32-x64-msvc": "2.0.0-beta.0",
|
|
60
|
+
"@rspack/binding-linux-x64-gnu": "2.0.0-beta.0",
|
|
61
|
+
"@rspack/binding-linux-x64-musl": "2.0.0-beta.0",
|
|
62
|
+
"@rspack/binding-darwin-x64": "2.0.0-beta.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build:dev": "node scripts/build.js",
|