@rspack/binding 1.7.1 → 2.0.0-canary-20260116
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 +23 -29
- package/package.json +11 -11
package/napi-binding.d.ts
CHANGED
|
@@ -1205,6 +1205,8 @@ export interface JsRuntimeModule {
|
|
|
1205
1205
|
moduleIdentifier: string
|
|
1206
1206
|
constructorName: string
|
|
1207
1207
|
name: string
|
|
1208
|
+
stage: number
|
|
1209
|
+
isolate: boolean
|
|
1208
1210
|
}
|
|
1209
1211
|
|
|
1210
1212
|
export interface JsRuntimeModuleArg {
|
|
@@ -1397,7 +1399,6 @@ export interface JsStatsModuleCommonAttributes {
|
|
|
1397
1399
|
failed?: boolean
|
|
1398
1400
|
errors?: number
|
|
1399
1401
|
warnings?: number
|
|
1400
|
-
profile?: JsStatsModuleProfile
|
|
1401
1402
|
chunks?: Array<string>
|
|
1402
1403
|
assets?: Array<string>
|
|
1403
1404
|
reasons?: Array<JsStatsModuleReason>
|
|
@@ -1822,11 +1823,17 @@ export interface RawCacheGroupOptions {
|
|
|
1822
1823
|
usedExports?: boolean
|
|
1823
1824
|
}
|
|
1824
1825
|
|
|
1825
|
-
export interface
|
|
1826
|
-
type: string
|
|
1826
|
+
export interface RawCacheOptionsMemory {
|
|
1827
1827
|
maxGenerations?: number
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
+
export interface RawCacheOptionsPersistent {
|
|
1831
|
+
buildDependencies?: Array<string>
|
|
1832
|
+
version?: string
|
|
1833
|
+
snapshot?: RawSnapshotOptions
|
|
1834
|
+
storage?: RawStorageOptions
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1830
1837
|
export interface RawCircularDependencyRspackPluginOptions {
|
|
1831
1838
|
failOnError?: boolean
|
|
1832
1839
|
exclude?: RegExp
|
|
@@ -2122,30 +2129,13 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
2122
2129
|
sourceUrlComment?: string
|
|
2123
2130
|
}
|
|
2124
2131
|
|
|
2125
|
-
export interface RawExperimentCacheOptionsPersistent {
|
|
2126
|
-
buildDependencies?: Array<string>
|
|
2127
|
-
version?: string
|
|
2128
|
-
snapshot?: RawExperimentSnapshotOptions
|
|
2129
|
-
storage?: RawStorageOptions
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
2132
|
export interface RawExperiments {
|
|
2133
|
-
topLevelAwait: boolean
|
|
2134
2133
|
incremental?: false | { [key: string]: boolean }
|
|
2135
|
-
rspackFuture?: RawRspackFuture
|
|
2136
|
-
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
2137
2134
|
useInputFileSystem?: false | Array<RegExp>
|
|
2138
2135
|
css?: boolean
|
|
2139
|
-
lazyBarrel: boolean
|
|
2140
2136
|
deferImport: boolean
|
|
2141
2137
|
}
|
|
2142
2138
|
|
|
2143
|
-
export interface RawExperimentSnapshotOptions {
|
|
2144
|
-
immutablePaths: Array<string|RegExp>
|
|
2145
|
-
unmanagedPaths: Array<string|RegExp>
|
|
2146
|
-
managedPaths: Array<string|RegExp>
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
2139
|
export interface RawExposeOptions {
|
|
2150
2140
|
key: string
|
|
2151
2141
|
name?: string
|
|
@@ -2240,7 +2230,6 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
2240
2230
|
chunks?: Array<string>
|
|
2241
2231
|
excludeChunks?: Array<string>
|
|
2242
2232
|
chunksSortMode: "auto" | "manual"
|
|
2243
|
-
sri?: "sha256" | "sha384" | "sha512"
|
|
2244
2233
|
minify?: boolean
|
|
2245
2234
|
title?: string
|
|
2246
2235
|
favicon?: string
|
|
@@ -2337,6 +2326,11 @@ export interface RawJavascriptParserOptions {
|
|
|
2337
2326
|
worker?: Array<string>
|
|
2338
2327
|
overrideStrict?: string
|
|
2339
2328
|
importMeta?: boolean
|
|
2329
|
+
/**
|
|
2330
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2331
|
+
* @experimental
|
|
2332
|
+
*/
|
|
2333
|
+
requireAlias?: boolean
|
|
2340
2334
|
/**
|
|
2341
2335
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2342
2336
|
* @experimental
|
|
@@ -2415,7 +2409,6 @@ export interface RawLightningCssMinimizerOptions {
|
|
|
2415
2409
|
targets?: Array<string>
|
|
2416
2410
|
include?: number
|
|
2417
2411
|
exclude?: number
|
|
2418
|
-
draft?: RawDraft
|
|
2419
2412
|
drafts?: RawDraft
|
|
2420
2413
|
nonStandard?: RawNonStandard
|
|
2421
2414
|
pseudoClasses?: RawLightningCssPseudoClasses
|
|
@@ -2597,10 +2590,9 @@ export interface RawOptions {
|
|
|
2597
2590
|
module: RawModuleOptions
|
|
2598
2591
|
optimization: RawOptimizationOptions
|
|
2599
2592
|
stats: RawStatsOptions
|
|
2600
|
-
cache:
|
|
2593
|
+
cache: boolean | { type: "memory" } | ({ type: "persistent" } & RawCacheOptionsPersistent)
|
|
2601
2594
|
experiments: RawExperiments
|
|
2602
2595
|
node?: RawNodeOption
|
|
2603
|
-
profile: boolean
|
|
2604
2596
|
amd?: string
|
|
2605
2597
|
bail: boolean
|
|
2606
2598
|
__references: Record<string, any>
|
|
@@ -2636,7 +2628,6 @@ export interface RawOutputOptions {
|
|
|
2636
2628
|
module: boolean
|
|
2637
2629
|
chunkLoading: string | false
|
|
2638
2630
|
chunkLoadTimeout: number
|
|
2639
|
-
charset: boolean
|
|
2640
2631
|
enabledChunkLoadingTypes?: Array<string>
|
|
2641
2632
|
trustedTypes?: RawTrustedTypes
|
|
2642
2633
|
sourceMapFilename: string
|
|
@@ -2781,15 +2772,12 @@ export interface RawRslibPluginOptions {
|
|
|
2781
2772
|
forceNodeShims?: boolean
|
|
2782
2773
|
}
|
|
2783
2774
|
|
|
2784
|
-
export interface RawRspackFuture {
|
|
2785
|
-
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
2775
|
export interface RawRstestPluginOptions {
|
|
2789
2776
|
injectModulePathName: boolean
|
|
2790
2777
|
importMetaPathName: boolean
|
|
2791
2778
|
hoistMockModule: boolean
|
|
2792
2779
|
manualMockRoot: string
|
|
2780
|
+
preserveNewUrl?: Array<string>
|
|
2793
2781
|
}
|
|
2794
2782
|
|
|
2795
2783
|
export interface RawRuleSetCondition {
|
|
@@ -2830,6 +2818,12 @@ export interface RawSizeLimitsPluginOptions {
|
|
|
2830
2818
|
maxEntrypointSize?: number
|
|
2831
2819
|
}
|
|
2832
2820
|
|
|
2821
|
+
export interface RawSnapshotOptions {
|
|
2822
|
+
immutablePaths: Array<string|RegExp>
|
|
2823
|
+
unmanagedPaths: Array<string|RegExp>
|
|
2824
|
+
managedPaths: Array<string|RegExp>
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2833
2827
|
export interface RawSplitChunkSizes {
|
|
2834
2828
|
sizes: Record<string, number>
|
|
2835
2829
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-canary-20260116",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@rspack/binding-darwin-arm64": "
|
|
55
|
-
"@rspack/binding-win32-arm64-msvc": "
|
|
56
|
-
"@rspack/binding-linux-arm64-
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-
|
|
59
|
-
"@rspack/binding-darwin-x64": "
|
|
60
|
-
"@rspack/binding-
|
|
61
|
-
"@rspack/binding-
|
|
62
|
-
"@rspack/binding-linux-
|
|
63
|
-
"@rspack/binding-linux-x64-musl": "
|
|
54
|
+
"@rspack/binding-darwin-arm64": "2.0.0-canary-20260116",
|
|
55
|
+
"@rspack/binding-win32-arm64-msvc": "2.0.0-canary-20260116",
|
|
56
|
+
"@rspack/binding-linux-arm64-musl": "2.0.0-canary-20260116",
|
|
57
|
+
"@rspack/binding-win32-ia32-msvc": "2.0.0-canary-20260116",
|
|
58
|
+
"@rspack/binding-wasm32-wasi": "2.0.0-canary-20260116",
|
|
59
|
+
"@rspack/binding-darwin-x64": "2.0.0-canary-20260116",
|
|
60
|
+
"@rspack/binding-win32-x64-msvc": "2.0.0-canary-20260116",
|
|
61
|
+
"@rspack/binding-linux-x64-gnu": "2.0.0-canary-20260116",
|
|
62
|
+
"@rspack/binding-linux-arm64-gnu": "2.0.0-canary-20260116",
|
|
63
|
+
"@rspack/binding-linux-x64-musl": "2.0.0-canary-20260116"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build:dev": "node scripts/build.js",
|