@rspack/binding 1.0.0-beta.4 → 1.0.0-beta.5
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 +12 -12
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export class JsCompilation {
|
|
|
114
114
|
addMissingDependencies(deps: Array<string>): void
|
|
115
115
|
addBuildDependencies(deps: Array<string>): void
|
|
116
116
|
rebuildModule(moduleIdentifiers: Array<string>, f: (...args: any[]) => any): void
|
|
117
|
-
importModule(request: string, publicPath: JsFilename | undefined | null, baseUri: string | undefined | null, originalModule: string | undefined | null, originalModuleContext: string | undefined | null, callback: (...args: any[]) => any): void
|
|
117
|
+
importModule(request: string, layer: string | undefined | null, publicPath: JsFilename | undefined | null, baseUri: string | undefined | null, originalModule: string | undefined | null, originalModuleContext: string | undefined | null, callback: (...args: any[]) => any): void
|
|
118
118
|
get entries(): JsEntries
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -267,7 +267,6 @@ export enum BuiltinPluginName {
|
|
|
267
267
|
CopyRspackPlugin = 'CopyRspackPlugin',
|
|
268
268
|
HtmlRspackPlugin = 'HtmlRspackPlugin',
|
|
269
269
|
SwcJsMinimizerRspackPlugin = 'SwcJsMinimizerRspackPlugin',
|
|
270
|
-
SwcCssMinimizerRspackPlugin = 'SwcCssMinimizerRspackPlugin',
|
|
271
270
|
LightningCssMinimizerRspackPlugin = 'LightningCssMinimizerRspackPlugin',
|
|
272
271
|
BundlerInfoRspackPlugin = 'BundlerInfoRspackPlugin',
|
|
273
272
|
CssExtractRspackPlugin = 'CssExtractRspackPlugin',
|
|
@@ -1229,6 +1228,11 @@ export interface RawGeneratorOptions {
|
|
|
1229
1228
|
cssModule?: RawCssModuleGeneratorOptions
|
|
1230
1229
|
}
|
|
1231
1230
|
|
|
1231
|
+
export interface RawHtmlRspackPluginBaseOptions {
|
|
1232
|
+
href?: string
|
|
1233
|
+
target?: "_self" | "_blank" | "_parent" | "_top"
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1232
1236
|
export interface RawHtmlRspackPluginOptions {
|
|
1233
1237
|
/** emitted file name in output path */
|
|
1234
1238
|
filename?: string
|
|
@@ -1240,16 +1244,18 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
1240
1244
|
inject: "head" | "body" | "false"
|
|
1241
1245
|
/** path or `auto` */
|
|
1242
1246
|
publicPath?: string
|
|
1243
|
-
/** `blocking`, `defer`, or `module` */
|
|
1244
|
-
scriptLoading: "blocking" | "defer" | "module"
|
|
1247
|
+
/** `blocking`, `defer`, `module` or `systemjs-module` */
|
|
1248
|
+
scriptLoading: "blocking" | "defer" | "module" | "systemjs-module"
|
|
1245
1249
|
/** entry_chunk_name (only entry chunks are supported) */
|
|
1246
1250
|
chunks?: Array<string>
|
|
1247
|
-
|
|
1251
|
+
excludeChunks?: Array<string>
|
|
1248
1252
|
sri?: "sha256" | "sha384" | "sha512"
|
|
1249
1253
|
minify?: boolean
|
|
1250
1254
|
title?: string
|
|
1251
1255
|
favicon?: string
|
|
1252
1256
|
meta?: Record<string, Record<string, string>>
|
|
1257
|
+
hash?: boolean
|
|
1258
|
+
base?: RawHtmlRspackPluginBaseOptions
|
|
1253
1259
|
}
|
|
1254
1260
|
|
|
1255
1261
|
export interface RawHttpExternalsRspackPluginOptions {
|
|
@@ -1313,7 +1319,7 @@ export interface RawLightningCssBrowsers {
|
|
|
1313
1319
|
|
|
1314
1320
|
export interface RawLightningCssMinimizerOptions {
|
|
1315
1321
|
errorRecovery: boolean
|
|
1316
|
-
targets?:
|
|
1322
|
+
targets?: Array<string>
|
|
1317
1323
|
include?: number
|
|
1318
1324
|
exclude?: number
|
|
1319
1325
|
draft?: RawDraft
|
|
@@ -1708,12 +1714,6 @@ export interface RawStatsOptions {
|
|
|
1708
1714
|
colors: boolean
|
|
1709
1715
|
}
|
|
1710
1716
|
|
|
1711
|
-
export interface RawSwcCssMinimizerRspackPluginOptions {
|
|
1712
|
-
test?: string | RegExp | (string | RegExp)[]
|
|
1713
|
-
include?: string | RegExp | (string | RegExp)[]
|
|
1714
|
-
exclude?: string | RegExp | (string | RegExp)[]
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
1717
|
export interface RawSwcJsMinimizerOptions {
|
|
1718
1718
|
compress: any
|
|
1719
1719
|
mangle: any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"binaryName": "rspack"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@rspack/binding-darwin-arm64": "1.0.0-beta.
|
|
28
|
-
"@rspack/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
29
|
-
"@rspack/binding-linux-arm64-
|
|
30
|
-
"@rspack/binding-
|
|
31
|
-
"@rspack/binding-
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-gnu": "1.0.0-beta.
|
|
35
|
-
"@rspack/binding-linux-x64-musl": "1.0.0-beta.
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.0.0-beta.5",
|
|
28
|
+
"@rspack/binding-win32-arm64-msvc": "1.0.0-beta.5",
|
|
29
|
+
"@rspack/binding-linux-arm64-musl": "1.0.0-beta.5",
|
|
30
|
+
"@rspack/binding-linux-arm64-gnu": "1.0.0-beta.5",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "1.0.0-beta.5",
|
|
32
|
+
"@rspack/binding-win32-x64-msvc": "1.0.0-beta.5",
|
|
33
|
+
"@rspack/binding-darwin-x64": "1.0.0-beta.5",
|
|
34
|
+
"@rspack/binding-linux-x64-gnu": "1.0.0-beta.5",
|
|
35
|
+
"@rspack/binding-linux-x64-musl": "1.0.0-beta.5"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|