@rspack/binding 1.0.7 → 1.0.9
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 +22 -1
- package/package.json +10 -12
package/binding.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export class JsCompilation {
|
|
|
81
81
|
getAsset(name: string): JsAsset | null
|
|
82
82
|
getAssetSource(name: string): JsCompatSource | null
|
|
83
83
|
get modules(): Array<ModuleDTO>
|
|
84
|
+
get builtModules(): Array<ModuleDTO>
|
|
84
85
|
getOptimizationBailout(): Array<JsStatsOptimizationBailout>
|
|
85
86
|
getChunks(): Array<JsChunk>
|
|
86
87
|
getNamedChunkKeys(): Array<string>
|
|
@@ -1428,6 +1429,26 @@ export interface RawJavascriptParserOptions {
|
|
|
1428
1429
|
worker?: Array<string>
|
|
1429
1430
|
overrideStrict?: string
|
|
1430
1431
|
importMeta?: boolean
|
|
1432
|
+
/**
|
|
1433
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1434
|
+
* @experimental
|
|
1435
|
+
*/
|
|
1436
|
+
requireAsExpression?: boolean
|
|
1437
|
+
/**
|
|
1438
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1439
|
+
* @experimental
|
|
1440
|
+
*/
|
|
1441
|
+
requireDynamic?: boolean
|
|
1442
|
+
/**
|
|
1443
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1444
|
+
* @experimental
|
|
1445
|
+
*/
|
|
1446
|
+
requireResolve?: boolean
|
|
1447
|
+
/**
|
|
1448
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
1449
|
+
* @experimental
|
|
1450
|
+
*/
|
|
1451
|
+
importDynamic?: boolean
|
|
1431
1452
|
}
|
|
1432
1453
|
|
|
1433
1454
|
export interface RawLazyCompilationOption {
|
|
@@ -1880,7 +1901,7 @@ export interface RawTrustedTypes {
|
|
|
1880
1901
|
* Author Donny/강동윤
|
|
1881
1902
|
* Copyright (c)
|
|
1882
1903
|
*/
|
|
1883
|
-
export function registerGlobalTrace(filter: string, layer: "chrome" | "logger", output: string): void
|
|
1904
|
+
export function registerGlobalTrace(filter: string, layer: "chrome" | "logger"| "console", output: string): void
|
|
1884
1905
|
|
|
1885
1906
|
export enum RegisterJsTapKind {
|
|
1886
1907
|
CompilerThisCompilation = 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -24,22 +24,21 @@
|
|
|
24
24
|
"binaryName": "rspack"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@rspack/binding-darwin-arm64": "1.0.
|
|
28
|
-
"@rspack/binding-
|
|
29
|
-
"@rspack/binding-
|
|
30
|
-
"@rspack/binding-
|
|
31
|
-
"@rspack/binding-linux-arm64-
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-musl": "1.0.
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.0.9",
|
|
28
|
+
"@rspack/binding-linux-arm64-gnu": "1.0.9",
|
|
29
|
+
"@rspack/binding-win32-ia32-msvc": "1.0.9",
|
|
30
|
+
"@rspack/binding-darwin-x64": "1.0.9",
|
|
31
|
+
"@rspack/binding-linux-arm64-musl": "1.0.9",
|
|
32
|
+
"@rspack/binding-win32-x64-msvc": "1.0.9",
|
|
33
|
+
"@rspack/binding-linux-x64-gnu": "1.0.9",
|
|
34
|
+
"@rspack/binding-linux-x64-musl": "1.0.9",
|
|
35
|
+
"@rspack/binding-win32-arm64-msvc": "1.0.9"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|
|
39
39
|
"watch:debug": "node scripts/build.js --watch",
|
|
40
40
|
"build:debug:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js",
|
|
41
41
|
"build:debug:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js",
|
|
42
|
-
"build:release:all": "run-p build:release:arm64 build:release:x64 build:release:linux && pnpm move-binding",
|
|
43
42
|
"build:release": "node scripts/build.js --release",
|
|
44
43
|
"watch:release": "node scripts/build.js --release --watch",
|
|
45
44
|
"build:release:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release",
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
"build:release:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
|
|
48
47
|
"build:release:musl": "cross-env RUST_TARGET=aarch64-unknown-linux-musl node scripts/build.js --release",
|
|
49
48
|
"build:release:win": "cross-env RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
|
|
50
|
-
"build:release-prod:all": "run-p build:release-prod:arm64 build:release-prod:x64 build:release-prod:linux && pnpm move-binding",
|
|
51
49
|
"build:release-prod": "node scripts/build.js --release-prod",
|
|
52
50
|
"watch:release-prod": "node scripts/build.js --release-prod --watch",
|
|
53
51
|
"build:release-prod:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release-prod",
|