@rspack/binding 0.0.12 → 0.0.13
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 +15 -1
- package/package.json +7 -3
- 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
|
@@ -15,7 +15,12 @@ export interface RawCssPluginConfig {
|
|
|
15
15
|
* For detailed configuration, see https://docs.rs/browserslist-rs/latest/browserslist/
|
|
16
16
|
*/
|
|
17
17
|
presetEnv?: Array<string>
|
|
18
|
-
modules?:
|
|
18
|
+
modules?: RawCssModulesConfig
|
|
19
|
+
}
|
|
20
|
+
export interface RawCssModulesConfig {
|
|
21
|
+
localsConvention?: string
|
|
22
|
+
localIdentName?: string
|
|
23
|
+
exportsOnly?: boolean
|
|
19
24
|
}
|
|
20
25
|
export interface RawDecoratorOptions {
|
|
21
26
|
legacy: boolean
|
|
@@ -108,6 +113,9 @@ export interface RawEntryItem {
|
|
|
108
113
|
import: Array<string>
|
|
109
114
|
runtime?: string
|
|
110
115
|
}
|
|
116
|
+
export interface RawExperiments {
|
|
117
|
+
lazyCompilation: boolean
|
|
118
|
+
}
|
|
111
119
|
/**
|
|
112
120
|
* `loader` is for js side loader, `builtin_loader` is for rust side loader,
|
|
113
121
|
* which is mapped to real rust side loader by [get_builtin_loader].
|
|
@@ -173,6 +181,7 @@ export interface RawModuleOptions {
|
|
|
173
181
|
}
|
|
174
182
|
export interface RawOptimizationOptions {
|
|
175
183
|
splitChunks?: RawSplitChunksOptions
|
|
184
|
+
moduleIds?: string
|
|
176
185
|
}
|
|
177
186
|
export interface RawOutputOptions {
|
|
178
187
|
path?: string
|
|
@@ -183,6 +192,7 @@ export interface RawOutputOptions {
|
|
|
183
192
|
cssFilename?: string
|
|
184
193
|
cssChunkFilename?: string
|
|
185
194
|
uniqueName?: string
|
|
195
|
+
library?: string
|
|
186
196
|
}
|
|
187
197
|
export interface RawResolveOptions {
|
|
188
198
|
preferRelative?: boolean
|
|
@@ -236,6 +246,7 @@ export interface RawOptions {
|
|
|
236
246
|
devServer?: RawDevServer
|
|
237
247
|
snapshot?: RawSnapshotOptions
|
|
238
248
|
cache?: RawCacheOptions
|
|
249
|
+
experiments?: RawExperiments
|
|
239
250
|
}
|
|
240
251
|
export interface JsAssetInfoRelated {
|
|
241
252
|
sourceMap?: string
|
|
@@ -353,6 +364,9 @@ export class JsCompilation {
|
|
|
353
364
|
updateAsset(filename: string, newSourceOrFunction: JsCompatSource | ((source: JsCompatSource) => JsCompatSource), assetInfoUpdateOrFunction?: JsAssetInfo | ((assetInfo: JsAssetInfo) => JsAssetInfo)): void
|
|
354
365
|
getAssets(): Readonly<JsAsset>[]
|
|
355
366
|
getAsset(name: string): JsAsset | null
|
|
367
|
+
getAssetSource(name: string): JsCompatSource | null
|
|
368
|
+
getAssetFilenames(): Array<string>
|
|
369
|
+
hasAsset(name: string): boolean
|
|
356
370
|
emitAsset(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo): void
|
|
357
371
|
deleteAsset(filename: string): void
|
|
358
372
|
get assets(): Record<string, JsCompatSource>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Node binding for rspack",
|
|
5
5
|
"main": "binding.js",
|
|
6
6
|
"types": "binding.d.ts",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"binding.js",
|
|
12
|
-
"binding.d.ts"
|
|
13
|
-
"*.node"
|
|
12
|
+
"binding.d.ts"
|
|
14
13
|
],
|
|
15
14
|
"keywords": [],
|
|
16
15
|
"author": "",
|
|
@@ -20,6 +19,11 @@
|
|
|
20
19
|
"why-is-node-running": "2.2.1",
|
|
21
20
|
"npm-run-all": "4.1.5"
|
|
22
21
|
},
|
|
22
|
+
"optionalDependencies": {
|
|
23
|
+
"@rspack/binding-darwin-arm64": "0.0.13",
|
|
24
|
+
"@rspack/binding-darwin-x64": "0.0.13",
|
|
25
|
+
"@rspack/binding-linux-gnu-x64": "0.0.12"
|
|
26
|
+
},
|
|
23
27
|
"scripts": {
|
|
24
28
|
"build:debug": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json",
|
|
25
29
|
"build:debug:x64": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json --target x86_64-apple-darwin",
|
package/rspack.darwin-arm64.node
DELETED
|
Binary file
|
package/rspack.darwin-x64.node
DELETED
|
Binary file
|
|
Binary file
|