@rspack/core 0.6.5-canary-dc02c55-20240516004313 → 0.6.5-canary-b7b5c75-20240821125908
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 +1 -1
- package/dist/Chunk.js +1 -1
- package/dist/ChunkGroup.d.ts +1 -1
- package/dist/ChunkGroup.js +3 -3
- package/dist/Compilation.d.ts +65 -46
- package/dist/Compilation.js +222 -128
- package/dist/Compiler.d.ts +44 -75
- package/dist/Compiler.js +260 -301
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/Entrypoint.js +1 -1
- package/dist/ExecuteModulePlugin.js +1 -1
- package/dist/Module.js +2 -2
- package/dist/MultiCompiler.d.ts +25 -10
- package/dist/MultiCompiler.js +3 -3
- package/dist/MultiStats.d.ts +1 -1
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/Stats.d.ts +2 -2
- package/dist/Watching.d.ts +9 -0
- package/dist/Watching.js +2 -12
- package/dist/builtin-loader/swc/index.d.ts +6 -6
- package/dist/builtin-loader/swc/index.js +3 -3
- package/dist/builtin-loader/swc/types.d.ts +2 -2
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- 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 +2 -2
- package/dist/builtin-plugin/BannerPlugin.js +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/CssModulesPlugin.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/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.js +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 +1 -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 +1 -1
- package/dist/builtin-plugin/EntryPlugin.js +1 -1
- 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 +3 -3
- 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 +2 -2
- package/dist/builtin-plugin/HtmlRspackPlugin.js +2 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.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/JsLoaderRspackPlugin.js +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/RuntimeChunkPlugin.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/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.js +4 -4
- 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/WorkerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/index.d.ts +4 -5
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/loader.js +2 -2
- package/dist/builtin-plugin/index.d.ts +43 -43
- package/dist/builtin-plugin/index.js +43 -43
- package/dist/config/adapter.d.ts +2 -2
- package/dist/config/adapter.js +5 -6
- package/dist/config/adapterRuleUse.d.ts +1 -2
- package/dist/config/adapterRuleUse.js +2 -2
- package/dist/config/defaults.js +4 -6
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +2 -2
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/zod.d.ts +184 -258
- package/dist/config/zod.js +28 -8
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.js +1 -1
- package/dist/container/ModuleFederationPlugin.js +1 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +1 -1
- package/dist/container/ModuleFederationPluginV1.js +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +30 -32
- package/dist/exports.js +17 -15
- package/dist/fileSystem.d.ts +8 -12
- package/dist/fileSystem.js +48 -25
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/loader-runner/index.js +13 -13
- package/dist/logging/Logger.d.ts +1 -1
- package/dist/logging/createConsoleLogger.js +14 -0
- package/dist/node/NodeEnvironmentPlugin.d.ts +1 -1
- package/dist/node/NodeEnvironmentPlugin.js +1 -1
- package/dist/node/nodeConsole.js +4 -0
- package/dist/rspack.d.ts +13 -4
- package/dist/rspack.js +8 -8
- package/dist/rspackOptionsApply.d.ts +10 -1
- package/dist/rspackOptionsApply.js +5 -14
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.js +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js +2 -2
- package/dist/stats/StatsFactory.d.ts +2 -2
- package/dist/stats/StatsFactory.js +9 -0
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -1
- package/dist/util/comparators.d.ts +1 -1
- package/dist/util/createSource.d.ts +5 -0
- package/dist/util/createSource.js +65 -0
- package/dist/util/fs.d.ts +0 -64
- package/dist/util/fs.js +0 -122
- package/dist/util/index.d.ts +1 -2
- package/dist/util/index.js +11 -16
- package/package.json +5 -5
- package/dist/util/source.d.ts +0 -18
- package/dist/util/source.js +0 -66
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
export * from "./APIPlugin";
|
|
2
|
-
export * from "./ArrayPushCallbackChunkFormatPlugin";
|
|
3
|
-
export * from "./AssetModulesPlugin";
|
|
4
|
-
export * from "./AsyncWebAssemblyModulesPlugin";
|
|
5
|
-
export * from "./BannerPlugin";
|
|
6
1
|
export { RspackBuiltinPlugin } from "./base";
|
|
7
|
-
export * from "./BundlerInfoRspackPlugin";
|
|
8
|
-
export * from "./ChunkPrefetchPreloadPlugin";
|
|
9
|
-
export * from "./CommonJsChunkFormatPlugin";
|
|
10
|
-
export * from "./CopyRspackPlugin";
|
|
11
|
-
export * from "./css-extract";
|
|
12
|
-
export * from "./CssModulesPlugin";
|
|
13
|
-
export * from "./DataUriPlugin";
|
|
14
2
|
export * from "./DefinePlugin";
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
3
|
+
export * from "./ProvidePlugin";
|
|
4
|
+
export * from "./BannerPlugin";
|
|
5
|
+
export * from "./IgnorePlugin";
|
|
6
|
+
export * from "./ProgressPlugin";
|
|
7
|
+
export * from "./EntryPlugin";
|
|
17
8
|
export * from "./DynamicEntryPlugin";
|
|
9
|
+
export * from "./ExternalsPlugin";
|
|
10
|
+
export * from "./NodeTargetPlugin";
|
|
18
11
|
export * from "./ElectronTargetPlugin";
|
|
12
|
+
export * from "./HttpExternalsRspackPlugin";
|
|
19
13
|
export * from "./EnableChunkLoadingPlugin";
|
|
20
14
|
export * from "./EnableLibraryPlugin";
|
|
21
15
|
export * from "./EnableWasmLoadingPlugin";
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./ExternalsPlugin";
|
|
27
|
-
export * from "./FileUriPlugin";
|
|
28
|
-
export * from "./FlagDependencyExportsPlugin";
|
|
29
|
-
export * from "./FlagDependencyUsagePlugin";
|
|
16
|
+
export * from "./ChunkPrefetchPreloadPlugin";
|
|
17
|
+
export * from "./ArrayPushCallbackChunkFormatPlugin";
|
|
18
|
+
export * from "./CommonJsChunkFormatPlugin";
|
|
19
|
+
export * from "./ModuleChunkFormatPlugin";
|
|
30
20
|
export * from "./HotModuleReplacementPlugin";
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./IgnorePlugin";
|
|
34
|
-
export * from "./InferAsyncModulesPlugin";
|
|
35
|
-
export * from "./JavascriptModulesPlugin";
|
|
36
|
-
export * from "./JsLoaderRspackPlugin";
|
|
37
|
-
export * from "./JsonModulesPlugin";
|
|
21
|
+
export * from "./WebWorkerTemplatePlugin";
|
|
22
|
+
export * from "./WorkerPlugin";
|
|
38
23
|
export * from "./LimitChunkCountPlugin";
|
|
39
|
-
export * from "./MangleExportsPlugin";
|
|
40
24
|
export * from "./MergeDuplicateChunksPlugin";
|
|
41
|
-
export * from "./
|
|
42
|
-
export * from "./ModuleConcatenationPlugin";
|
|
43
|
-
export * from "./NamedChunkIdsPlugin";
|
|
25
|
+
export * from "./SplitChunksPlugin";
|
|
44
26
|
export * from "./NamedModuleIdsPlugin";
|
|
45
|
-
export * from "./
|
|
46
|
-
export * from "./
|
|
47
|
-
export * from "./
|
|
27
|
+
export * from "./DeterministicModuleIdsPlugin";
|
|
28
|
+
export * from "./NamedChunkIdsPlugin";
|
|
29
|
+
export * from "./DeterministicChunkIdsPlugin";
|
|
48
30
|
export * from "./RealContentHashPlugin";
|
|
49
31
|
export * from "./RemoveEmptyChunksPlugin";
|
|
50
|
-
export * from "./
|
|
32
|
+
export * from "./EnsureChunkConditionsPlugin";
|
|
33
|
+
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
34
|
+
export * from "./DataUriPlugin";
|
|
35
|
+
export * from "./FileUriPlugin";
|
|
51
36
|
export * from "./RuntimePlugin";
|
|
37
|
+
export * from "./JsonModulesPlugin";
|
|
38
|
+
export * from "./InferAsyncModulesPlugin";
|
|
39
|
+
export * from "./JavascriptModulesPlugin";
|
|
40
|
+
export * from "./AsyncWebAssemblyModulesPlugin";
|
|
41
|
+
export * from "./AssetModulesPlugin";
|
|
42
|
+
export * from "./SourceMapDevToolPlugin";
|
|
43
|
+
export * from "./EvalSourceMapDevToolPlugin";
|
|
44
|
+
export * from "./EvalDevToolModulePlugin";
|
|
52
45
|
export * from "./SideEffectsFlagPlugin";
|
|
46
|
+
export * from "./FlagDependencyExportsPlugin";
|
|
47
|
+
export * from "./FlagDependencyUsagePlugin";
|
|
48
|
+
export * from "./MangleExportsPlugin";
|
|
49
|
+
export * from "./BundlerInfoRspackPlugin";
|
|
50
|
+
export * from "./ModuleConcatenationPlugin";
|
|
51
|
+
export * from "./CssModulesPlugin";
|
|
52
|
+
export * from "./APIPlugin";
|
|
53
|
+
export * from "./RuntimeChunkPlugin";
|
|
53
54
|
export * from "./SizeLimitsPlugin";
|
|
54
|
-
export * from "./
|
|
55
|
-
export * from "./
|
|
56
|
-
export * from "./SwcCssMinimizerPlugin";
|
|
55
|
+
export * from "./HtmlRspackPlugin";
|
|
56
|
+
export * from "./CopyRspackPlugin";
|
|
57
57
|
export * from "./SwcJsMinimizerPlugin";
|
|
58
|
-
export * from "./
|
|
59
|
-
export * from "./
|
|
60
|
-
export * from "./
|
|
58
|
+
export * from "./SwcCssMinimizerPlugin";
|
|
59
|
+
export * from "./JsLoaderRspackPlugin";
|
|
60
|
+
export * from "./css-extract";
|
|
61
61
|
import { RawBuiltins } from "@rspack/binding";
|
|
62
62
|
import { RspackOptionsNormalized } from "..";
|
|
63
63
|
export interface Builtins {
|
|
@@ -15,67 +15,67 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.deprecated_resolveBuiltins = exports.RspackBuiltinPlugin = void 0;
|
|
18
|
-
__exportStar(require("./APIPlugin"), exports);
|
|
19
|
-
__exportStar(require("./ArrayPushCallbackChunkFormatPlugin"), exports);
|
|
20
|
-
__exportStar(require("./AssetModulesPlugin"), exports);
|
|
21
|
-
__exportStar(require("./AsyncWebAssemblyModulesPlugin"), exports);
|
|
22
|
-
__exportStar(require("./BannerPlugin"), exports);
|
|
23
18
|
var base_1 = require("./base");
|
|
24
19
|
Object.defineProperty(exports, "RspackBuiltinPlugin", { enumerable: true, get: function () { return base_1.RspackBuiltinPlugin; } });
|
|
25
|
-
__exportStar(require("./BundlerInfoRspackPlugin"), exports);
|
|
26
|
-
__exportStar(require("./ChunkPrefetchPreloadPlugin"), exports);
|
|
27
|
-
__exportStar(require("./CommonJsChunkFormatPlugin"), exports);
|
|
28
|
-
__exportStar(require("./CopyRspackPlugin"), exports);
|
|
29
|
-
__exportStar(require("./css-extract"), exports);
|
|
30
|
-
__exportStar(require("./CssModulesPlugin"), exports);
|
|
31
|
-
__exportStar(require("./DataUriPlugin"), exports);
|
|
32
20
|
__exportStar(require("./DefinePlugin"), exports);
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./ProvidePlugin"), exports);
|
|
22
|
+
__exportStar(require("./BannerPlugin"), exports);
|
|
23
|
+
__exportStar(require("./IgnorePlugin"), exports);
|
|
24
|
+
__exportStar(require("./ProgressPlugin"), exports);
|
|
25
|
+
__exportStar(require("./EntryPlugin"), exports);
|
|
35
26
|
__exportStar(require("./DynamicEntryPlugin"), exports);
|
|
27
|
+
__exportStar(require("./ExternalsPlugin"), exports);
|
|
28
|
+
__exportStar(require("./NodeTargetPlugin"), exports);
|
|
36
29
|
__exportStar(require("./ElectronTargetPlugin"), exports);
|
|
30
|
+
__exportStar(require("./HttpExternalsRspackPlugin"), exports);
|
|
37
31
|
__exportStar(require("./EnableChunkLoadingPlugin"), exports);
|
|
38
32
|
__exportStar(require("./EnableLibraryPlugin"), exports);
|
|
39
33
|
__exportStar(require("./EnableWasmLoadingPlugin"), exports);
|
|
40
|
-
__exportStar(require("./
|
|
41
|
-
__exportStar(require("./
|
|
42
|
-
__exportStar(require("./
|
|
43
|
-
__exportStar(require("./
|
|
44
|
-
__exportStar(require("./ExternalsPlugin"), exports);
|
|
45
|
-
__exportStar(require("./FileUriPlugin"), exports);
|
|
46
|
-
__exportStar(require("./FlagDependencyExportsPlugin"), exports);
|
|
47
|
-
__exportStar(require("./FlagDependencyUsagePlugin"), exports);
|
|
34
|
+
__exportStar(require("./ChunkPrefetchPreloadPlugin"), exports);
|
|
35
|
+
__exportStar(require("./ArrayPushCallbackChunkFormatPlugin"), exports);
|
|
36
|
+
__exportStar(require("./CommonJsChunkFormatPlugin"), exports);
|
|
37
|
+
__exportStar(require("./ModuleChunkFormatPlugin"), exports);
|
|
48
38
|
__exportStar(require("./HotModuleReplacementPlugin"), exports);
|
|
49
|
-
__exportStar(require("./
|
|
50
|
-
__exportStar(require("./
|
|
51
|
-
__exportStar(require("./IgnorePlugin"), exports);
|
|
52
|
-
__exportStar(require("./InferAsyncModulesPlugin"), exports);
|
|
53
|
-
__exportStar(require("./JavascriptModulesPlugin"), exports);
|
|
54
|
-
__exportStar(require("./JsLoaderRspackPlugin"), exports);
|
|
55
|
-
__exportStar(require("./JsonModulesPlugin"), exports);
|
|
39
|
+
__exportStar(require("./WebWorkerTemplatePlugin"), exports);
|
|
40
|
+
__exportStar(require("./WorkerPlugin"), exports);
|
|
56
41
|
__exportStar(require("./LimitChunkCountPlugin"), exports);
|
|
57
|
-
__exportStar(require("./MangleExportsPlugin"), exports);
|
|
58
42
|
__exportStar(require("./MergeDuplicateChunksPlugin"), exports);
|
|
59
|
-
__exportStar(require("./
|
|
60
|
-
__exportStar(require("./ModuleConcatenationPlugin"), exports);
|
|
61
|
-
__exportStar(require("./NamedChunkIdsPlugin"), exports);
|
|
43
|
+
__exportStar(require("./SplitChunksPlugin"), exports);
|
|
62
44
|
__exportStar(require("./NamedModuleIdsPlugin"), exports);
|
|
63
|
-
__exportStar(require("./
|
|
64
|
-
__exportStar(require("./
|
|
65
|
-
__exportStar(require("./
|
|
45
|
+
__exportStar(require("./DeterministicModuleIdsPlugin"), exports);
|
|
46
|
+
__exportStar(require("./NamedChunkIdsPlugin"), exports);
|
|
47
|
+
__exportStar(require("./DeterministicChunkIdsPlugin"), exports);
|
|
66
48
|
__exportStar(require("./RealContentHashPlugin"), exports);
|
|
67
49
|
__exportStar(require("./RemoveEmptyChunksPlugin"), exports);
|
|
68
|
-
__exportStar(require("./
|
|
50
|
+
__exportStar(require("./EnsureChunkConditionsPlugin"), exports);
|
|
51
|
+
__exportStar(require("./WarnCaseSensitiveModulesPlugin"), exports);
|
|
52
|
+
__exportStar(require("./DataUriPlugin"), exports);
|
|
53
|
+
__exportStar(require("./FileUriPlugin"), exports);
|
|
69
54
|
__exportStar(require("./RuntimePlugin"), exports);
|
|
55
|
+
__exportStar(require("./JsonModulesPlugin"), exports);
|
|
56
|
+
__exportStar(require("./InferAsyncModulesPlugin"), exports);
|
|
57
|
+
__exportStar(require("./JavascriptModulesPlugin"), exports);
|
|
58
|
+
__exportStar(require("./AsyncWebAssemblyModulesPlugin"), exports);
|
|
59
|
+
__exportStar(require("./AssetModulesPlugin"), exports);
|
|
60
|
+
__exportStar(require("./SourceMapDevToolPlugin"), exports);
|
|
61
|
+
__exportStar(require("./EvalSourceMapDevToolPlugin"), exports);
|
|
62
|
+
__exportStar(require("./EvalDevToolModulePlugin"), exports);
|
|
70
63
|
__exportStar(require("./SideEffectsFlagPlugin"), exports);
|
|
64
|
+
__exportStar(require("./FlagDependencyExportsPlugin"), exports);
|
|
65
|
+
__exportStar(require("./FlagDependencyUsagePlugin"), exports);
|
|
66
|
+
__exportStar(require("./MangleExportsPlugin"), exports);
|
|
67
|
+
__exportStar(require("./BundlerInfoRspackPlugin"), exports);
|
|
68
|
+
__exportStar(require("./ModuleConcatenationPlugin"), exports);
|
|
69
|
+
__exportStar(require("./CssModulesPlugin"), exports);
|
|
70
|
+
__exportStar(require("./APIPlugin"), exports);
|
|
71
|
+
__exportStar(require("./RuntimeChunkPlugin"), exports);
|
|
71
72
|
__exportStar(require("./SizeLimitsPlugin"), exports);
|
|
72
|
-
__exportStar(require("./
|
|
73
|
-
__exportStar(require("./
|
|
74
|
-
__exportStar(require("./SwcCssMinimizerPlugin"), exports);
|
|
73
|
+
__exportStar(require("./HtmlRspackPlugin"), exports);
|
|
74
|
+
__exportStar(require("./CopyRspackPlugin"), exports);
|
|
75
75
|
__exportStar(require("./SwcJsMinimizerPlugin"), exports);
|
|
76
|
-
__exportStar(require("./
|
|
77
|
-
__exportStar(require("./
|
|
78
|
-
__exportStar(require("./
|
|
76
|
+
__exportStar(require("./SwcCssMinimizerPlugin"), exports);
|
|
77
|
+
__exportStar(require("./JsLoaderRspackPlugin"), exports);
|
|
78
|
+
__exportStar(require("./css-extract"), exports);
|
|
79
79
|
function resolveTreeShaking(treeShaking, production) {
|
|
80
80
|
return treeShaking !== undefined
|
|
81
81
|
? treeShaking.toString()
|
package/dist/config/adapter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RawOptions, RawLibraryOptions } from "@rspack/binding";
|
|
2
2
|
import { Compiler } from "../Compiler";
|
|
3
3
|
import { LoaderContext, LoaderDefinition, LoaderDefinitionFunction } from "./adapterRuleUse";
|
|
4
|
+
import { LibraryOptions, ChunkLoading } from "./zod";
|
|
4
5
|
import { RspackOptionsNormalized } from "./normalization";
|
|
5
|
-
import { ChunkLoading, LibraryOptions } from "./zod";
|
|
6
6
|
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction };
|
|
7
7
|
export declare const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions;
|
|
8
8
|
export declare function getRawLibrary(library: LibraryOptions): RawLibraryOptions;
|
package/dist/config/adapter.js
CHANGED
|
@@ -566,16 +566,14 @@ function getRawAssetGeneratorDataUrl(dataUrl) {
|
|
|
566
566
|
function getRawCssGeneratorOptions(options) {
|
|
567
567
|
return {
|
|
568
568
|
exportsConvention: options.exportsConvention,
|
|
569
|
-
exportsOnly: options.exportsOnly
|
|
570
|
-
esModule: options.esModule
|
|
569
|
+
exportsOnly: options.exportsOnly
|
|
571
570
|
};
|
|
572
571
|
}
|
|
573
572
|
function getRawCssAutoOrModuleGeneratorOptions(options) {
|
|
574
573
|
return {
|
|
575
574
|
localIdentName: options.localIdentName,
|
|
576
575
|
exportsConvention: options.exportsConvention,
|
|
577
|
-
exportsOnly: options.exportsOnly
|
|
578
|
-
esModule: options.esModule
|
|
576
|
+
exportsOnly: options.exportsOnly
|
|
579
577
|
};
|
|
580
578
|
}
|
|
581
579
|
function getRawOptimization(optimization) {
|
|
@@ -617,9 +615,10 @@ function getRawSnapshotOptions(snapshot) {
|
|
|
617
615
|
};
|
|
618
616
|
}
|
|
619
617
|
function getRawExperiments(experiments) {
|
|
620
|
-
const { topLevelAwait, rspackFuture } = experiments;
|
|
621
|
-
(0, assert_1.default)(!(0, util_1.isNil)(topLevelAwait) && !(0, util_1.isNil)(rspackFuture));
|
|
618
|
+
const { newSplitChunks, topLevelAwait, rspackFuture } = experiments;
|
|
619
|
+
(0, assert_1.default)(!(0, util_1.isNil)(newSplitChunks) && !(0, util_1.isNil)(topLevelAwait) && !(0, util_1.isNil)(rspackFuture));
|
|
622
620
|
return {
|
|
621
|
+
newSplitChunks,
|
|
623
622
|
topLevelAwait,
|
|
624
623
|
rspackFuture: getRawRspackFutureOptions(rspackFuture)
|
|
625
624
|
};
|
|
@@ -4,7 +4,6 @@ import { ResolveRequest } from "enhanced-resolve";
|
|
|
4
4
|
import { Compiler } from "../Compiler";
|
|
5
5
|
import { Logger } from "../logging/Logger";
|
|
6
6
|
import Hash = require("../util/hash");
|
|
7
|
-
import { Compilation } from "../Compilation";
|
|
8
7
|
import { Mode, Resolve, RuleSetUseItem } from "./zod";
|
|
9
8
|
export interface ComposeJsUseOptions {
|
|
10
9
|
devtool: RawOptions["devtool"];
|
|
@@ -109,7 +108,7 @@ export interface LoaderContext<OptionsType = {}> {
|
|
|
109
108
|
query: string | OptionsType;
|
|
110
109
|
data: unknown;
|
|
111
110
|
_compiler: Compiler;
|
|
112
|
-
_compilation:
|
|
111
|
+
_compilation: Compiler["compilation"];
|
|
113
112
|
/**
|
|
114
113
|
* Internal field for interoperability.
|
|
115
114
|
* Do not use this in anywhere else.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isUseSimpleSourceMap = exports.isUseSourceMap = exports.createRawModuleRuleUses = void 0;
|
|
4
|
-
const builtin_loader_1 = require("../builtin-loader");
|
|
5
4
|
const loader_runner_1 = require("../loader-runner");
|
|
6
5
|
const util_1 = require("../util");
|
|
6
|
+
const builtin_loader_1 = require("../builtin-loader");
|
|
7
7
|
const BUILTIN_LOADER_PREFIX = "builtin:";
|
|
8
8
|
function createRawModuleRuleUses(uses, path, options) {
|
|
9
9
|
const normalizeRuleSetUseItem = (item) => typeof item === "string" ? { loader: item } : item;
|
|
@@ -75,7 +75,7 @@ function resolveStringifyLoaders(use, path, compiler) {
|
|
|
75
75
|
if (use.options && typeof use.options === "object") {
|
|
76
76
|
if (!ident)
|
|
77
77
|
ident = "[[missing ident]]";
|
|
78
|
-
compiler.
|
|
78
|
+
compiler.ruleSet.references.set(ident, use.options);
|
|
79
79
|
}
|
|
80
80
|
return obj.path + obj.query + obj.fragment;
|
|
81
81
|
}
|
package/dist/config/defaults.js
CHANGED
|
@@ -20,10 +20,10 @@ const util_1 = require("../util");
|
|
|
20
20
|
const cleverMerge_1 = require("../util/cleverMerge");
|
|
21
21
|
const target_1 = require("./target");
|
|
22
22
|
const Template = require("../Template");
|
|
23
|
-
const SwcCssMinimizerPlugin_1 = require("../builtin-plugin/SwcCssMinimizerPlugin");
|
|
24
|
-
const SwcJsMinimizerPlugin_1 = require("../builtin-plugin/SwcJsMinimizerPlugin");
|
|
25
|
-
const ModuleTypeConstants_1 = require("../ModuleTypeConstants");
|
|
26
23
|
const assertNotNil_1 = require("../util/assertNotNil");
|
|
24
|
+
const ModuleTypeConstants_1 = require("../ModuleTypeConstants");
|
|
25
|
+
const SwcJsMinimizerPlugin_1 = require("../builtin-plugin/SwcJsMinimizerPlugin");
|
|
26
|
+
const SwcCssMinimizerPlugin_1 = require("../builtin-plugin/SwcCssMinimizerPlugin");
|
|
27
27
|
const applyRspackOptionsDefaults = (options) => {
|
|
28
28
|
var _a;
|
|
29
29
|
F(options, "context", () => process.cwd());
|
|
@@ -121,6 +121,7 @@ const applyInfrastructureLoggingDefaults = (infrastructureLogging) => {
|
|
|
121
121
|
const applyExperimentsDefaults = (experiments, { cache }) => {
|
|
122
122
|
D(experiments, "lazyCompilation", false);
|
|
123
123
|
D(experiments, "asyncWebAssembly", false);
|
|
124
|
+
D(experiments, "newSplitChunks", true);
|
|
124
125
|
D(experiments, "css", true); // we not align with webpack about the default value for better DX
|
|
125
126
|
D(experiments, "topLevelAwait", true);
|
|
126
127
|
D(experiments, "rspackFuture", {});
|
|
@@ -197,19 +198,16 @@ const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }
|
|
|
197
198
|
(0, assertNotNil_1.assertNotNill)(module.generator.css);
|
|
198
199
|
D(module.generator["css"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
199
200
|
D(module.generator["css"], "exportsConvention", "as-is");
|
|
200
|
-
D(module.generator["css"], "esModule", true);
|
|
201
201
|
F(module.generator, "css/auto", () => ({}));
|
|
202
202
|
(0, assertNotNil_1.assertNotNill)(module.generator["css/auto"]);
|
|
203
203
|
D(module.generator["css/auto"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
204
204
|
D(module.generator["css/auto"], "exportsConvention", "as-is");
|
|
205
205
|
D(module.generator["css/auto"], "localIdentName", "[uniqueName]-[id]-[local]");
|
|
206
|
-
D(module.generator["css/auto"], "esModule", true);
|
|
207
206
|
F(module.generator, "css/module", () => ({}));
|
|
208
207
|
(0, assertNotNil_1.assertNotNill)(module.generator["css/module"]);
|
|
209
208
|
D(module.generator["css/module"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
210
209
|
D(module.generator["css/module"], "exportsConvention", "as-is");
|
|
211
210
|
D(module.generator["css/module"], "localIdentName", "[uniqueName]-[id]-[local]");
|
|
212
|
-
D(module.generator["css/module"], "esModule", true);
|
|
213
211
|
}
|
|
214
212
|
A(module, "defaultRules", () => {
|
|
215
213
|
const esm = {
|
package/dist/config/index.d.ts
CHANGED
package/dist/config/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./adapter"), exports);
|
|
18
|
-
__exportStar(require("./defaults"), exports);
|
|
19
17
|
__exportStar(require("./normalization"), exports);
|
|
20
18
|
__exportStar(require("./zod"), exports);
|
|
19
|
+
__exportStar(require("./defaults"), exports);
|
|
20
|
+
__exportStar(require("./adapter"), exports);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { Compilation } from "../Compilation";
|
|
11
|
-
import type {
|
|
11
|
+
import type { Context, Dependencies, Node, DevTool, Externals, ExternalsPresets, ExternalsType, InfrastructureLogging, LibraryOptions, Mode, Name, Resolve, Target, SnapshotOptions, CacheOptions, StatsValue, Optimization, Performance, Plugins, Watch, WatchOptions, DevServer, Profile, Bail, Builtins, EntryRuntime, ChunkLoading, PublicPath, EntryFilename, Path, Clean, Filename, ChunkFilename, CrossOriginLoading, CssFilename, CssChunkFilename, HotUpdateMainFilename, HotUpdateChunkFilename, AssetModuleFilename, UniqueName, ChunkLoadingGlobal, EnabledLibraryTypes, OutputModule, StrictModuleErrorHandling, GlobalObject, ImportFunctionName, Iife, WasmLoading, EnabledWasmLoadingTypes, WebassemblyModuleFilename, TrustedTypes, SourceMapFilename, HashDigest, HashDigestLength, HashFunction, HashSalt, WorkerPublicPath, RuleSetRules, ParserOptionsByModuleType, GeneratorOptionsByModuleType, RspackFutureOptions, HotUpdateGlobal, ScriptType, NoParseOption, DevtoolNamespace, DevtoolModuleFilenameTemplate, DevtoolFallbackModuleFilenameTemplate, RspackOptions } from "./zod";
|
|
12
12
|
export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
|
|
13
13
|
export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
|
|
14
14
|
export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
|
|
@@ -81,6 +81,7 @@ export interface ExperimentsNormalized {
|
|
|
81
81
|
lazyCompilation?: boolean;
|
|
82
82
|
asyncWebAssembly?: boolean;
|
|
83
83
|
outputModule?: boolean;
|
|
84
|
+
newSplitChunks?: boolean;
|
|
84
85
|
topLevelAwait?: boolean;
|
|
85
86
|
css?: boolean;
|
|
86
87
|
futureDefaults?: boolean;
|