@rspack/binding 0.0.11 → 0.0.12
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 +30 -1
- package/package.json +1 -1
- package/rspack.darwin-arm64.node +0 -0
- package/rspack.darwin-x64.node +0 -0
- package/rspack.linux-x64-gnu.node +0 -0
package/binding.d.ts
CHANGED
|
@@ -72,11 +72,15 @@ export interface RawReactOptions {
|
|
|
72
72
|
useSpread?: boolean
|
|
73
73
|
refresh?: boolean
|
|
74
74
|
}
|
|
75
|
+
export interface Minification {
|
|
76
|
+
passes?: number
|
|
77
|
+
enable?: boolean
|
|
78
|
+
}
|
|
75
79
|
export interface RawBuiltins {
|
|
76
80
|
html?: Array<RawHtmlPluginConfig>
|
|
77
81
|
css?: RawCssPluginConfig
|
|
78
82
|
postcss?: RawPostCssConfig
|
|
79
|
-
minify?:
|
|
83
|
+
minify?: Minification
|
|
80
84
|
polyfill?: boolean
|
|
81
85
|
browserslist?: Array<string>
|
|
82
86
|
define?: Record<string, string>
|
|
@@ -86,6 +90,17 @@ export interface RawBuiltins {
|
|
|
86
90
|
react?: RawReactOptions
|
|
87
91
|
decorator?: RawDecoratorOptions
|
|
88
92
|
}
|
|
93
|
+
export interface RawCacheOptions {
|
|
94
|
+
cacheType: string
|
|
95
|
+
maxGenerations: number
|
|
96
|
+
maxAge: number
|
|
97
|
+
profile: boolean
|
|
98
|
+
buildDependencies: Array<string>
|
|
99
|
+
cacheDirectory: string
|
|
100
|
+
cacheLocation: string
|
|
101
|
+
name: string
|
|
102
|
+
version: string
|
|
103
|
+
}
|
|
89
104
|
export interface RawDevServer {
|
|
90
105
|
hot?: boolean
|
|
91
106
|
}
|
|
@@ -127,6 +142,8 @@ export interface RawModuleRule {
|
|
|
127
142
|
* - Regexp: It's tested with the input.
|
|
128
143
|
*/
|
|
129
144
|
test?: RawModuleRuleCondition
|
|
145
|
+
include?: Array<RawModuleRuleCondition>
|
|
146
|
+
exclude?: Array<RawModuleRuleCondition>
|
|
130
147
|
/**
|
|
131
148
|
* A condition matcher matching an absolute path.
|
|
132
149
|
* See `test` above
|
|
@@ -178,6 +195,16 @@ export interface RawResolveOptions {
|
|
|
178
195
|
symlinks?: boolean
|
|
179
196
|
tsConfigPath?: string
|
|
180
197
|
}
|
|
198
|
+
export interface RawSnapshotStrategy {
|
|
199
|
+
hash: boolean
|
|
200
|
+
timestamp: boolean
|
|
201
|
+
}
|
|
202
|
+
export interface RawSnapshotOptions {
|
|
203
|
+
resolveBuildDependencies: RawSnapshotStrategy
|
|
204
|
+
buildDependencies: RawSnapshotStrategy
|
|
205
|
+
resolve: RawSnapshotStrategy
|
|
206
|
+
module: RawSnapshotStrategy
|
|
207
|
+
}
|
|
181
208
|
export interface RawSplitChunksOptions {
|
|
182
209
|
cacheGroups?: Record<string, RawCacheGroupOptions>
|
|
183
210
|
/** What kind of chunks should be selected. */
|
|
@@ -207,6 +234,8 @@ export interface RawOptions {
|
|
|
207
234
|
optimization?: RawOptimizationOptions
|
|
208
235
|
stats?: RawStatsOptions
|
|
209
236
|
devServer?: RawDevServer
|
|
237
|
+
snapshot?: RawSnapshotOptions
|
|
238
|
+
cache?: RawCacheOptions
|
|
210
239
|
}
|
|
211
240
|
export interface JsAssetInfoRelated {
|
|
212
241
|
sourceMap?: string
|
package/package.json
CHANGED
package/rspack.darwin-arm64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|