@rspack/binding 1.0.0-beta.0 → 1.0.0-beta.1
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 -0
- package/package.json +11 -10
package/binding.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export class JsStatsModule {
|
|
|
113
113
|
get type(): string
|
|
114
114
|
get moduleType(): string
|
|
115
115
|
get identifier(): string
|
|
116
|
+
get layer(): string | undefined
|
|
116
117
|
get name(): string
|
|
117
118
|
get id(): string | undefined
|
|
118
119
|
get chunks(): Array<string | undefined | null>
|
|
@@ -509,6 +510,7 @@ export interface JsModule {
|
|
|
509
510
|
rawRequest?: string
|
|
510
511
|
factoryMeta?: JsFactoryMeta
|
|
511
512
|
type: string
|
|
513
|
+
layer?: string
|
|
512
514
|
}
|
|
513
515
|
|
|
514
516
|
export interface JsNormalModuleFactoryCreateModuleArgs {
|
|
@@ -564,6 +566,7 @@ export interface JsRspackError {
|
|
|
564
566
|
name: string
|
|
565
567
|
message: string
|
|
566
568
|
moduleIdentifier?: string
|
|
569
|
+
loc?: string
|
|
567
570
|
file?: string
|
|
568
571
|
stack?: string
|
|
569
572
|
hideStack?: boolean
|
|
@@ -652,6 +655,7 @@ export interface JsStatsError {
|
|
|
652
655
|
chunkName?: string
|
|
653
656
|
chunkEntry?: boolean
|
|
654
657
|
chunkInitial?: boolean
|
|
658
|
+
loc?: string
|
|
655
659
|
file?: string
|
|
656
660
|
moduleIdentifier?: string
|
|
657
661
|
moduleName?: string
|
|
@@ -814,6 +818,7 @@ export interface RawCacheGroupOptions {
|
|
|
814
818
|
/** What kind of chunks should be selected. */
|
|
815
819
|
chunks?: RegExp | 'async' | 'initial' | 'all'
|
|
816
820
|
type?: RegExp | string
|
|
821
|
+
layer?: RegExp | string
|
|
817
822
|
automaticNameDelimiter?: string
|
|
818
823
|
minChunks?: number
|
|
819
824
|
minSize?: number | RawSplitChunkSizes
|
|
@@ -973,6 +978,7 @@ export interface RawEntryOptions {
|
|
|
973
978
|
filename?: JsFilename
|
|
974
979
|
library?: RawLibraryOptions
|
|
975
980
|
dependOn?: Array<string>
|
|
981
|
+
layer?: string
|
|
976
982
|
}
|
|
977
983
|
|
|
978
984
|
export interface RawEntryPluginOptions {
|
|
@@ -993,6 +999,7 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
993
999
|
}
|
|
994
1000
|
|
|
995
1001
|
export interface RawExperiments {
|
|
1002
|
+
layers: boolean
|
|
996
1003
|
topLevelAwait: boolean
|
|
997
1004
|
rspackFuture: RawRspackFuture
|
|
998
1005
|
}
|
|
@@ -1119,6 +1126,7 @@ export interface RawJavascriptParserOptions {
|
|
|
1119
1126
|
strictExportPresence: boolean
|
|
1120
1127
|
worker: Array<string>
|
|
1121
1128
|
overrideStrict?: string
|
|
1129
|
+
importMeta: boolean
|
|
1122
1130
|
}
|
|
1123
1131
|
|
|
1124
1132
|
export interface RawLazyCompilationOption {
|
|
@@ -1224,13 +1232,16 @@ export interface RawModuleRule {
|
|
|
1224
1232
|
resourceQuery?: RawRuleSetCondition
|
|
1225
1233
|
resourceFragment?: RawRuleSetCondition
|
|
1226
1234
|
descriptionData?: Record<string, RawRuleSetCondition>
|
|
1235
|
+
with?: Record<string, RawRuleSetCondition>
|
|
1227
1236
|
sideEffects?: boolean
|
|
1228
1237
|
use?: RawModuleRuleUse[] | ((arg: RawFuncUseCtx) => RawModuleRuleUse[])
|
|
1229
1238
|
type?: string
|
|
1239
|
+
layer?: string
|
|
1230
1240
|
parser?: RawParserOptions
|
|
1231
1241
|
generator?: RawGeneratorOptions
|
|
1232
1242
|
resolve?: RawResolveOptions
|
|
1233
1243
|
issuer?: RawRuleSetCondition
|
|
1244
|
+
issuerLayer?: RawRuleSetCondition
|
|
1234
1245
|
dependency?: RawRuleSetCondition
|
|
1235
1246
|
scheme?: RawRuleSetCondition
|
|
1236
1247
|
mimetype?: RawRuleSetCondition
|
|
@@ -1314,6 +1325,7 @@ export interface RawOutputOptions {
|
|
|
1314
1325
|
enabledLibraryTypes?: Array<string>
|
|
1315
1326
|
globalObject: string
|
|
1316
1327
|
importFunctionName: string
|
|
1328
|
+
importMetaName: string
|
|
1317
1329
|
iife: boolean
|
|
1318
1330
|
module: boolean
|
|
1319
1331
|
chunkLoading: string
|
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.1",
|
|
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-gnu": "1.0.0-beta.
|
|
30
|
-
"@rspack/binding-linux-arm64-musl": "1.0.0-beta.
|
|
31
|
-
"@rspack/binding-
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.0.0-beta.1",
|
|
28
|
+
"@rspack/binding-win32-arm64-msvc": "1.0.0-beta.1",
|
|
29
|
+
"@rspack/binding-linux-arm64-gnu": "1.0.0-beta.1",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "1.0.0-beta.1",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "1.0.0-beta.1",
|
|
32
|
+
"@rspack/binding-linux-x64-gnu": "1.0.0-beta.1",
|
|
33
|
+
"@rspack/binding-linux-x64-musl": "1.0.0-beta.1",
|
|
34
|
+
"@rspack/binding-win32-x64-msvc": "1.0.0-beta.1",
|
|
35
|
+
"@rspack/binding-darwin-x64": "1.0.0-beta.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"build:release:arm64": "cross-env RUST_TARGET=aarch64-apple-darwin node scripts/build.js --release",
|
|
46
46
|
"build:release:x64": "cross-env RUST_TARGET=x86_64-apple-darwin node scripts/build.js --release",
|
|
47
47
|
"build:release:linux": "cross-env RUST_TARGET=x86_64-unknown-linux-gnu node scripts/build.js --release",
|
|
48
|
+
"build:release:musl": "cross-env RUST_TARGET=aarch64-unknown-linux-musl node scripts/build.js --release",
|
|
48
49
|
"build:release:win": "cross-env RUST_TARGET=x86_64-pc-windows-msvc node scripts/build.js --release",
|
|
49
50
|
"build:release-prod:all": "run-p build:release-prod:arm64 build:release-prod:x64 build:release-prod:linux && pnpm move-binding",
|
|
50
51
|
"build:release-prod": "node scripts/build.js --release-prod",
|