@rspack/core 0.5.8 → 0.5.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/dist/Chunk.d.ts +2 -0
- package/dist/Chunk.js +4 -0
- package/dist/Compilation.d.ts +25 -26
- package/dist/Compilation.js +16 -16
- package/dist/Compiler.d.ts +12 -5
- package/dist/Compiler.js +83 -138
- package/dist/Module.d.ts +3 -0
- package/dist/Module.js +12 -0
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +11 -10
- package/dist/builtin-plugin/EnableLibraryPlugin.js +39 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/config/normalization.js +1 -1
- package/dist/config/zod.d.ts +359 -51
- package/dist/config/zod.js +8 -5
- package/dist/container/ContainerPlugin.d.ts +2 -2
- package/dist/exports.d.ts +74 -29
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.js +1 -1
- package/package.json +5 -5
- package/dist/util/normalization.d.ts +0 -5
- package/dist/util/normalization.js +0 -9
package/dist/exports.d.ts
CHANGED
|
@@ -51,16 +51,42 @@ export declare const config: {
|
|
|
51
51
|
} | undefined;
|
|
52
52
|
umdNamedDefine?: boolean | undefined;
|
|
53
53
|
} | undefined;
|
|
54
|
-
}> |
|
|
54
|
+
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
55
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
56
|
+
runtime?: string | false | undefined;
|
|
57
|
+
publicPath?: string | undefined;
|
|
58
|
+
baseUri?: string | undefined;
|
|
59
|
+
chunkLoading?: string | false | undefined;
|
|
60
|
+
asyncChunks?: boolean | undefined;
|
|
61
|
+
wasmLoading?: string | false | undefined;
|
|
62
|
+
filename?: string | undefined;
|
|
63
|
+
library?: {
|
|
64
|
+
type: string;
|
|
65
|
+
amdContainer?: string | undefined;
|
|
66
|
+
auxiliaryComment?: string | {
|
|
67
|
+
amd?: string | undefined;
|
|
68
|
+
commonjs?: string | undefined;
|
|
69
|
+
commonjs2?: string | undefined;
|
|
70
|
+
root?: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
export?: string | string[] | undefined;
|
|
73
|
+
name?: string | string[] | {
|
|
74
|
+
amd?: string | undefined;
|
|
75
|
+
commonjs?: string | undefined;
|
|
76
|
+
root?: string | string[] | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
umdNamedDefine?: boolean | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>) | undefined;
|
|
55
81
|
output?: {
|
|
56
82
|
path?: string | undefined;
|
|
57
83
|
clean?: boolean | undefined;
|
|
58
84
|
publicPath?: string | undefined;
|
|
59
|
-
filename?: string | undefined;
|
|
60
|
-
chunkFilename?: string | undefined;
|
|
85
|
+
filename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
86
|
+
chunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
61
87
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
62
|
-
cssFilename?: string | undefined;
|
|
63
|
-
cssChunkFilename?: string | undefined;
|
|
88
|
+
cssFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
89
|
+
cssChunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
64
90
|
hotUpdateMainFilename?: string | undefined;
|
|
65
91
|
hotUpdateChunkFilename?: string | undefined;
|
|
66
92
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -128,7 +154,7 @@ export declare const config: {
|
|
|
128
154
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
129
155
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
130
156
|
} | undefined;
|
|
131
|
-
target?: false | "node" | "async-node" | "
|
|
157
|
+
target?: false | "node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
132
158
|
mode?: "production" | "development" | "none" | undefined;
|
|
133
159
|
experiments?: {
|
|
134
160
|
lazyCompilation?: boolean | undefined;
|
|
@@ -249,7 +275,7 @@ export declare const config: {
|
|
|
249
275
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
250
276
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
251
277
|
minimize?: boolean | undefined;
|
|
252
|
-
minimizer?: (false | "" | 0 |
|
|
278
|
+
minimizer?: (false | "" | 0 | import("./config").RspackPluginInstance | "..." | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
253
279
|
mergeDuplicateChunks?: boolean | undefined;
|
|
254
280
|
splitChunks?: false | {
|
|
255
281
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -385,16 +411,42 @@ export declare const config: {
|
|
|
385
411
|
} | undefined;
|
|
386
412
|
umdNamedDefine?: boolean | undefined;
|
|
387
413
|
} | undefined;
|
|
388
|
-
}> |
|
|
414
|
+
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
415
|
+
import: (string | string[]) & (string | string[] | undefined);
|
|
416
|
+
runtime?: string | false | undefined;
|
|
417
|
+
publicPath?: string | undefined;
|
|
418
|
+
baseUri?: string | undefined;
|
|
419
|
+
chunkLoading?: string | false | undefined;
|
|
420
|
+
asyncChunks?: boolean | undefined;
|
|
421
|
+
wasmLoading?: string | false | undefined;
|
|
422
|
+
filename?: string | undefined;
|
|
423
|
+
library?: {
|
|
424
|
+
type: string;
|
|
425
|
+
amdContainer?: string | undefined;
|
|
426
|
+
auxiliaryComment?: string | {
|
|
427
|
+
amd?: string | undefined;
|
|
428
|
+
commonjs?: string | undefined;
|
|
429
|
+
commonjs2?: string | undefined;
|
|
430
|
+
root?: string | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
export?: string | string[] | undefined;
|
|
433
|
+
name?: string | string[] | {
|
|
434
|
+
amd?: string | undefined;
|
|
435
|
+
commonjs?: string | undefined;
|
|
436
|
+
root?: string | string[] | undefined;
|
|
437
|
+
} | undefined;
|
|
438
|
+
umdNamedDefine?: boolean | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
}>) | undefined;
|
|
389
441
|
output?: {
|
|
390
442
|
path?: string | undefined;
|
|
391
443
|
clean?: boolean | undefined;
|
|
392
444
|
publicPath?: string | undefined;
|
|
393
|
-
filename?: string | undefined;
|
|
394
|
-
chunkFilename?: string | undefined;
|
|
445
|
+
filename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
446
|
+
chunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
395
447
|
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
396
|
-
cssFilename?: string | undefined;
|
|
397
|
-
cssChunkFilename?: string | undefined;
|
|
448
|
+
cssFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
449
|
+
cssChunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
398
450
|
hotUpdateMainFilename?: string | undefined;
|
|
399
451
|
hotUpdateChunkFilename?: string | undefined;
|
|
400
452
|
hotUpdateGlobal?: string | undefined;
|
|
@@ -462,7 +514,7 @@ export declare const config: {
|
|
|
462
514
|
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
463
515
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
464
516
|
} | undefined;
|
|
465
|
-
target?: false | "node" | "async-node" | "
|
|
517
|
+
target?: false | "node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "async-node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
466
518
|
mode?: "production" | "development" | "none" | undefined;
|
|
467
519
|
experiments?: {
|
|
468
520
|
lazyCompilation?: boolean | undefined;
|
|
@@ -583,7 +635,7 @@ export declare const config: {
|
|
|
583
635
|
moduleIds?: "named" | "deterministic" | undefined;
|
|
584
636
|
chunkIds?: "named" | "deterministic" | undefined;
|
|
585
637
|
minimize?: boolean | undefined;
|
|
586
|
-
minimizer?: (false | "" | 0 |
|
|
638
|
+
minimizer?: (false | "" | 0 | import("./config").RspackPluginInstance | "..." | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
587
639
|
mergeDuplicateChunks?: boolean | undefined;
|
|
588
640
|
splitChunks?: false | {
|
|
589
641
|
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
@@ -719,7 +771,7 @@ export declare const node: {
|
|
|
719
771
|
new (): {
|
|
720
772
|
name: import("@rspack/binding").BuiltinPluginName;
|
|
721
773
|
_options: undefined;
|
|
722
|
-
affectedHooks: "
|
|
774
|
+
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
723
775
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
724
776
|
apply(compiler: import("./Compiler").Compiler): void;
|
|
725
777
|
};
|
|
@@ -731,29 +783,22 @@ export declare const electron: {
|
|
|
731
783
|
new (context?: string | undefined): {
|
|
732
784
|
name: import("@rspack/binding").BuiltinPluginName;
|
|
733
785
|
_options: string;
|
|
734
|
-
affectedHooks: "
|
|
786
|
+
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
735
787
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
736
788
|
apply(compiler: import("./Compiler").Compiler): void;
|
|
737
789
|
};
|
|
738
790
|
};
|
|
739
791
|
};
|
|
792
|
+
import { EnableLibraryPlugin } from "./builtin-plugin";
|
|
740
793
|
export declare const library: {
|
|
741
|
-
EnableLibraryPlugin:
|
|
742
|
-
new (type: any): {
|
|
743
|
-
name: import("@rspack/binding").BuiltinPluginName;
|
|
744
|
-
_options: any;
|
|
745
|
-
affectedHooks: "emit" | "done" | "compilation" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishModules" | "finishMake" | "entryOption" | undefined;
|
|
746
|
-
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
747
|
-
apply(compiler: import("./Compiler").Compiler): void;
|
|
748
|
-
};
|
|
749
|
-
};
|
|
794
|
+
EnableLibraryPlugin: typeof EnableLibraryPlugin;
|
|
750
795
|
};
|
|
751
796
|
export declare const wasm: {
|
|
752
797
|
EnableWasmLoadingPlugin: {
|
|
753
798
|
new (type: any): {
|
|
754
799
|
name: import("@rspack/binding").BuiltinPluginName;
|
|
755
800
|
_options: any;
|
|
756
|
-
affectedHooks: "
|
|
801
|
+
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
757
802
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
758
803
|
apply(compiler: import("./Compiler").Compiler): void;
|
|
759
804
|
};
|
|
@@ -764,7 +809,7 @@ export declare const javascript: {
|
|
|
764
809
|
new (type: any): {
|
|
765
810
|
name: import("@rspack/binding").BuiltinPluginName;
|
|
766
811
|
_options: any;
|
|
767
|
-
affectedHooks: "
|
|
812
|
+
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
768
813
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
769
814
|
apply(compiler: import("./Compiler").Compiler): void;
|
|
770
815
|
};
|
|
@@ -775,7 +820,7 @@ export declare const webworker: {
|
|
|
775
820
|
new (): {
|
|
776
821
|
name: import("@rspack/binding").BuiltinPluginName;
|
|
777
822
|
_options: undefined;
|
|
778
|
-
affectedHooks: "
|
|
823
|
+
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
779
824
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
780
825
|
apply(compiler: import("./Compiler").Compiler): void;
|
|
781
826
|
};
|
|
@@ -786,7 +831,7 @@ export declare const optimize: {
|
|
|
786
831
|
new (options: import("./builtin-plugin").LimitChunkCountOptions): {
|
|
787
832
|
name: import("@rspack/binding").BuiltinPluginName;
|
|
788
833
|
_options: import("@rspack/binding").RawLimitChunkCountPluginOptions;
|
|
789
|
-
affectedHooks: "
|
|
834
|
+
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
790
835
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
791
836
|
apply(compiler: import("./Compiler").Compiler): void;
|
|
792
837
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"jest-serializer-path": "^0.1.15",
|
|
46
46
|
"less": "4.2.0",
|
|
47
47
|
"less-loader": "^12.0.0",
|
|
48
|
+
"node-polyfill-webpack-plugin": "3.0.0",
|
|
48
49
|
"postcss-loader": "^8.0.0",
|
|
49
50
|
"postcss-pxtorem": "^6.0.0",
|
|
50
51
|
"pug-loader": "^2.4.0",
|
|
@@ -55,9 +56,8 @@
|
|
|
55
56
|
"styled-components": "^6.0.8",
|
|
56
57
|
"terser": "5.27.2",
|
|
57
58
|
"wast-loader": "^1.11.4",
|
|
58
|
-
"@rspack/plugin-minify": "^0.5.
|
|
59
|
-
"@rspack/
|
|
60
|
-
"@rspack/core": "0.5.8"
|
|
59
|
+
"@rspack/plugin-minify": "^0.5.9",
|
|
60
|
+
"@rspack/core": "0.5.9"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@module-federation/runtime-tools": "0.0.8",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"webpack-sources": "3.2.3",
|
|
73
73
|
"zod": "^3.21.4",
|
|
74
74
|
"zod-validation-error": "1.3.1",
|
|
75
|
-
"@rspack/binding": "0.5.
|
|
75
|
+
"@rspack/binding": "0.5.9"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@swc/helpers": ">=0.5.1"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeJsModule = void 0;
|
|
4
|
-
function normalizeJsModule(m) {
|
|
5
|
-
return Object.assign(m, {
|
|
6
|
-
identifier: () => m.moduleIdentifier
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
exports.normalizeJsModule = normalizeJsModule;
|