@rspack/binding 0.4.5 → 0.5.0
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 +6 -34
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -160,7 +160,6 @@ export const enum BuiltinPluginName {
|
|
|
160
160
|
WebWorkerTemplatePlugin = 'WebWorkerTemplatePlugin',
|
|
161
161
|
MergeDuplicateChunksPlugin = 'MergeDuplicateChunksPlugin',
|
|
162
162
|
SplitChunksPlugin = 'SplitChunksPlugin',
|
|
163
|
-
OldSplitChunksPlugin = 'OldSplitChunksPlugin',
|
|
164
163
|
ShareRuntimePlugin = 'ShareRuntimePlugin',
|
|
165
164
|
ContainerPlugin = 'ContainerPlugin',
|
|
166
165
|
ContainerReferencePlugin = 'ContainerReferencePlugin',
|
|
@@ -610,15 +609,7 @@ export interface RawBannerPluginOptions {
|
|
|
610
609
|
|
|
611
610
|
export interface RawBuiltins {
|
|
612
611
|
css?: RawCssPluginConfig
|
|
613
|
-
presetEnv?: RawPresetEnv
|
|
614
612
|
treeShaking: string
|
|
615
|
-
react: RawReactOptions
|
|
616
|
-
decorator?: RawDecoratorOptions
|
|
617
|
-
noEmitAssets: boolean
|
|
618
|
-
emotion?: string
|
|
619
|
-
devFriendlySplitChunks: boolean
|
|
620
|
-
pluginImport?: Array<RawPluginImportConfig>
|
|
621
|
-
relay?: RawRelayConfig
|
|
622
613
|
}
|
|
623
614
|
|
|
624
615
|
export interface RawCacheGroupOptions {
|
|
@@ -734,15 +725,6 @@ export interface RawCssPluginConfig {
|
|
|
734
725
|
modules: RawCssModulesConfig
|
|
735
726
|
}
|
|
736
727
|
|
|
737
|
-
export interface RawDecoratorOptions {
|
|
738
|
-
legacy: boolean
|
|
739
|
-
emitMetadata: boolean
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
export interface RawDevServer {
|
|
743
|
-
hot: boolean
|
|
744
|
-
}
|
|
745
|
-
|
|
746
728
|
export interface RawEntryOptions {
|
|
747
729
|
name?: string
|
|
748
730
|
runtime?: string
|
|
@@ -761,7 +743,6 @@ export interface RawEntryPluginOptions {
|
|
|
761
743
|
}
|
|
762
744
|
|
|
763
745
|
export interface RawExperiments {
|
|
764
|
-
incrementalRebuild: RawIncrementalRebuild
|
|
765
746
|
newSplitChunks: boolean
|
|
766
747
|
topLevelAwait: boolean
|
|
767
748
|
rspackFuture: RawRspackFuture
|
|
@@ -798,6 +779,11 @@ export interface RawExternalsPresets {
|
|
|
798
779
|
electronRenderer: boolean
|
|
799
780
|
}
|
|
800
781
|
|
|
782
|
+
export interface RawExtractComments {
|
|
783
|
+
banner?: string | boolean
|
|
784
|
+
condition?: string
|
|
785
|
+
}
|
|
786
|
+
|
|
801
787
|
export interface RawFallbackCacheGroupOptions {
|
|
802
788
|
chunks?: RegExp | 'async' | 'initial' | 'all'
|
|
803
789
|
minSize?: number
|
|
@@ -849,11 +835,6 @@ export interface RawHttpExternalsRspackPluginOptions {
|
|
|
849
835
|
webAsync: boolean
|
|
850
836
|
}
|
|
851
837
|
|
|
852
|
-
export interface RawIncrementalRebuild {
|
|
853
|
-
make: boolean
|
|
854
|
-
emitAsset: boolean
|
|
855
|
-
}
|
|
856
|
-
|
|
857
838
|
export interface RawInfo {
|
|
858
839
|
immutable?: boolean
|
|
859
840
|
minimized?: boolean
|
|
@@ -993,7 +974,6 @@ export interface RawOptions {
|
|
|
993
974
|
devtool: string
|
|
994
975
|
optimization: RawOptimizationOptions
|
|
995
976
|
stats: RawStatsOptions
|
|
996
|
-
devServer: RawDevServer
|
|
997
977
|
snapshot: RawSnapshotOptions
|
|
998
978
|
cache: RawCacheOptions
|
|
999
979
|
experiments: RawExperiments
|
|
@@ -1061,12 +1041,6 @@ export interface RawPluginImportConfig {
|
|
|
1061
1041
|
ignoreStyleComponent?: Array<string>
|
|
1062
1042
|
}
|
|
1063
1043
|
|
|
1064
|
-
export interface RawPresetEnv {
|
|
1065
|
-
targets: Array<string>
|
|
1066
|
-
mode?: 'usage' | 'entry'
|
|
1067
|
-
coreJs?: string
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
1044
|
export interface RawProgressPluginOptions {
|
|
1071
1045
|
prefix: string
|
|
1072
1046
|
profile: boolean
|
|
@@ -1137,9 +1111,7 @@ export interface RawResolveTsconfigOptions {
|
|
|
1137
1111
|
}
|
|
1138
1112
|
|
|
1139
1113
|
export interface RawRspackFuture {
|
|
1140
|
-
newResolver: boolean
|
|
1141
1114
|
newTreeshaking: boolean
|
|
1142
|
-
disableTransformByDefault: boolean
|
|
1143
1115
|
}
|
|
1144
1116
|
|
|
1145
1117
|
export interface RawRuleSetCondition {
|
|
@@ -1207,7 +1179,7 @@ export interface RawStyleConfig {
|
|
|
1207
1179
|
}
|
|
1208
1180
|
|
|
1209
1181
|
export interface RawSwcJsMinimizerRspackPluginOptions {
|
|
1210
|
-
extractComments?:
|
|
1182
|
+
extractComments?: RawExtractComments
|
|
1211
1183
|
compress: boolean | string
|
|
1212
1184
|
mangle: boolean | string
|
|
1213
1185
|
format: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"binaryName": "rspack"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@rspack/binding-darwin-arm64": "0.
|
|
26
|
-
"@rspack/binding-
|
|
27
|
-
"@rspack/binding-
|
|
28
|
-
"@rspack/binding-
|
|
29
|
-
"@rspack/binding-
|
|
30
|
-
"@rspack/binding-win32-x64-msvc": "0.
|
|
31
|
-
"@rspack/binding-darwin-x64": "0.
|
|
32
|
-
"@rspack/binding-linux-x64-
|
|
33
|
-
"@rspack/binding-linux-x64-
|
|
25
|
+
"@rspack/binding-darwin-arm64": "0.5.0",
|
|
26
|
+
"@rspack/binding-linux-arm64-gnu": "0.5.0",
|
|
27
|
+
"@rspack/binding-win32-ia32-msvc": "0.5.0",
|
|
28
|
+
"@rspack/binding-win32-arm64-msvc": "0.5.0",
|
|
29
|
+
"@rspack/binding-linux-arm64-musl": "0.5.0",
|
|
30
|
+
"@rspack/binding-win32-x64-msvc": "0.5.0",
|
|
31
|
+
"@rspack/binding-darwin-x64": "0.5.0",
|
|
32
|
+
"@rspack/binding-linux-x64-musl": "0.5.0",
|
|
33
|
+
"@rspack/binding-linux-x64-gnu": "0.5.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build:debug": "node scripts/build.js",
|