@rspack-canary/core 1.7.4-canary-6f161b5e-20260120174123 → 2.0.0-canary-30d58971-20260122174325
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/ChunkGraph.d.ts +1 -1
- package/dist/Compilation.d.ts +27 -27
- package/dist/Compiler.d.ts +19 -17
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/Diagnostics.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/FileSystem.d.ts +1 -1
- package/dist/Module.d.ts +2 -2
- package/dist/ModuleGraph.d.ts +2 -2
- package/dist/MultiCompiler.d.ts +7 -7
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +2 -2
- package/dist/NativeWatchFileSystem.d.ts +1 -1
- package/dist/NormalModule.d.ts +3 -3
- package/dist/NormalModuleFactory.d.ts +3 -3
- package/dist/Resolver.d.ts +1 -1
- package/dist/ResolverFactory.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +3 -3
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +4 -4
- package/dist/builtin-loader/lightningcss/index.d.ts +11 -14
- package/dist/builtin-loader/lightningcss/target.d.ts +4 -0
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +2 -8
- package/dist/builtin-plugin/APIPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BannerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +3 -3
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +4 -4
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DataUriPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DefinePlugin.d.ts +3 -3
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +3 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +3 -3
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FileUriPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +3 -3
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/InlineExportsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +4 -4
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +3 -3
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +7 -11
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +3 -3
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +4 -4
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ProgressPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ProvidePlugin.d.ts +3 -3
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +4 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RuntimePlugin.d.ts +6 -10
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +6 -5
- package/dist/builtin-plugin/URLPlugin.d.ts +3 -3
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +1 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -9
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +84 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +4 -4
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/config/adapter.d.ts +4 -4
- package/dist/config/adapterRuleUse.d.ts +10 -9
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +5 -3
- package/dist/config/devServer.d.ts +3 -3
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +8 -36
- package/dist/config/target.d.ts +14 -11
- package/dist/config/types.d.ts +94 -179
- package/dist/container/ContainerPlugin.d.ts +3 -3
- package/dist/container/ContainerReferencePlugin.d.ts +3 -3
- package/dist/container/ModuleFederationManifestPlugin.d.ts +2 -2
- package/dist/container/ModuleFederationPlugin.d.ts +5 -3
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +7 -3
- package/dist/container/index.d.ts +4 -4
- package/dist/cssExtractHmr.js +2 -27
- package/dist/cssExtractLoader.js +18 -60
- package/dist/exports.d.ts +69 -82
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11676 -11722
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +2 -2
- package/dist/lib/DllReferencePlugin.d.ts +3 -3
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
- package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
- package/dist/lib/WebpackError.d.ts +2 -2
- package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
- package/dist/lib/cache/mergeEtags.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +1 -1
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/logging/createConsoleLogger.d.ts +2 -2
- package/dist/moduleFederationDefaultRuntime.js +1 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +1 -1
- package/dist/node/nodeConsole.d.ts +1 -1
- package/dist/rslib-runtime.js +29 -0
- package/dist/rspack.d.ts +5 -5
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -2
- package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
- package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +2 -2
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +3 -6
- package/dist/taps/compilation.d.ts +1 -1
- package/dist/taps/compiler.d.ts +1 -1
- package/dist/taps/contextModuleFactory.d.ts +1 -1
- package/dist/taps/index.d.ts +6 -6
- package/dist/taps/javascriptModules.d.ts +1 -1
- package/dist/taps/normalModuleFactory.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/fs.d.ts +1 -1
- package/dist/util/hash/md4.d.ts +1 -1
- package/dist/util/hash/xxhash64.d.ts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/targetsVersion.d.ts +2 -0
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/worker.js +846 -918
- package/hot/dev-server.js +12 -9
- package/hot/emitter.js +5 -1
- package/hot/lazy-compilation-node.js +4 -1
- package/hot/lazy-compilation-web.js +2 -3
- package/hot/log-apply-result.js +8 -5
- package/hot/log.js +17 -7
- package/hot/only-dev-server.js +13 -10
- package/hot/poll.js +11 -8
- package/hot/signal.js +13 -9
- package/package.json +10 -6
- package/compiled/browserslist-load-config/index.d.ts +0 -21
- package/compiled/browserslist-load-config/index.js +0 -252
- package/compiled/browserslist-load-config/license +0 -21
- package/compiled/browserslist-load-config/package.json +0 -1
- package/dist/builtin-loader/index.d.ts +0 -1
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
export * from './APIPlugin';
|
|
2
|
-
export * from './ArrayPushCallbackChunkFormatPlugin';
|
|
3
|
-
export * from './AssetModulesPlugin';
|
|
4
|
-
export * from './AsyncWebAssemblyModulesPlugin';
|
|
5
|
-
export * from './BannerPlugin';
|
|
6
|
-
export * from './BundlerInfoRspackPlugin';
|
|
7
|
-
export { createNativePlugin, RspackBuiltinPlugin } from './base';
|
|
8
|
-
export * from './CaseSensitivePlugin';
|
|
9
|
-
export * from './ChunkPrefetchPreloadPlugin';
|
|
10
|
-
export * from './CircularDependencyRspackPlugin';
|
|
11
|
-
export * from './CommonJsChunkFormatPlugin';
|
|
12
|
-
export * from './ContextReplacementPlugin';
|
|
13
|
-
export * from './CopyRspackPlugin';
|
|
14
|
-
export * from './CssChunkingPlugin';
|
|
15
|
-
export * from './CssModulesPlugin';
|
|
16
|
-
export * from './css-extract/index';
|
|
17
|
-
export * from './DataUriPlugin';
|
|
18
|
-
export * from './DefinePlugin';
|
|
19
|
-
export * from './DeterministicChunkIdsPlugin';
|
|
20
|
-
export * from './DeterministicModuleIdsPlugin';
|
|
21
|
-
export * from './DllEntryPlugin';
|
|
22
|
-
export * from './DllReferenceAgencyPlugin';
|
|
23
|
-
export * from './DynamicEntryPlugin';
|
|
24
|
-
export * from './ElectronTargetPlugin';
|
|
25
|
-
export * from './EnableChunkLoadingPlugin';
|
|
26
|
-
export * from './EnableLibraryPlugin';
|
|
27
|
-
export * from './EnableWasmLoadingPlugin';
|
|
28
|
-
export * from './EnsureChunkConditionsPlugin';
|
|
29
|
-
export * from './EntryPlugin';
|
|
30
|
-
export * from './EsmLibraryPlugin';
|
|
31
|
-
export * from './EvalDevToolModulePlugin';
|
|
32
|
-
export * from './EvalSourceMapDevToolPlugin';
|
|
33
|
-
export * from './ExternalsPlugin';
|
|
34
|
-
export * from './FetchCompileAsyncWasmPlugin';
|
|
35
|
-
export * from './FileUriPlugin';
|
|
36
|
-
export * from './FlagDependencyExportsPlugin';
|
|
37
|
-
export * from './FlagDependencyUsagePlugin';
|
|
38
|
-
export * from './HotModuleReplacementPlugin';
|
|
39
|
-
export * from './HttpExternalsRspackPlugin';
|
|
40
|
-
export * from './HttpUriPlugin';
|
|
41
|
-
export * from './html-plugin/index';
|
|
42
|
-
export * from './IgnorePlugin';
|
|
43
|
-
export * from './InferAsyncModulesPlugin';
|
|
44
|
-
export * from './InlineExportsPlugin';
|
|
45
|
-
export * from './JavascriptModulesPlugin';
|
|
46
|
-
export * from './JsLoaderRspackPlugin';
|
|
47
|
-
export * from './JsonModulesPlugin';
|
|
48
|
-
export * from './LibManifestPlugin';
|
|
49
|
-
export * from './LightningCssMinimizerRspackPlugin';
|
|
50
|
-
export * from './LightningCssMinimizerRspackPlugin';
|
|
51
|
-
export * from './LimitChunkCountPlugin';
|
|
52
|
-
export * from './lazy-compilation/middleware';
|
|
53
|
-
export * from './MangleExportsPlugin';
|
|
54
|
-
export * from './MergeDuplicateChunksPlugin';
|
|
55
|
-
export * from './ModuleChunkFormatPlugin';
|
|
56
|
-
export * from './ModuleConcatenationPlugin';
|
|
57
|
-
export * from './ModuleInfoHeaderPlugin';
|
|
58
|
-
export * from './NamedChunkIdsPlugin';
|
|
59
|
-
export * from './NamedModuleIdsPlugin';
|
|
60
|
-
export * from './NaturalChunkIdsPlugin';
|
|
61
|
-
export * from './NaturalModuleIdsPlugin';
|
|
62
|
-
export * from './NodeTargetPlugin';
|
|
63
|
-
export * from './NoEmitOnErrorsPlugin';
|
|
64
|
-
export * from './NormalModuleReplacementPlugin';
|
|
65
|
-
export * from './OccurrenceChunkIdsPlugin';
|
|
66
|
-
export * from './ProgressPlugin';
|
|
67
|
-
export * from './ProvidePlugin';
|
|
68
|
-
export * from './RealContentHashPlugin';
|
|
69
|
-
export * from './RemoveDuplicateModulesPlugin';
|
|
70
|
-
export * from './RemoveEmptyChunksPlugin';
|
|
71
|
-
export * from './RsdoctorPlugin';
|
|
72
|
-
export * from './RslibPlugin';
|
|
73
|
-
export * from './RstestPlugin';
|
|
74
|
-
export * from './RuntimeChunkPlugin';
|
|
75
|
-
export * from './RuntimePlugin';
|
|
76
|
-
export * from './SideEffectsFlagPlugin';
|
|
77
|
-
export * from './SizeLimitsPlugin';
|
|
78
|
-
export * from './SourceMapDevToolPlugin';
|
|
79
|
-
export * from './SplitChunksPlugin';
|
|
80
|
-
export * from './SubresourceIntegrityPlugin';
|
|
81
|
-
export * from './SwcJsMinimizerPlugin';
|
|
82
|
-
export * from './URLPlugin';
|
|
83
|
-
export * from './WebWorkerTemplatePlugin';
|
|
84
|
-
export * from './WorkerPlugin';
|
|
1
|
+
export * from './APIPlugin.js';
|
|
2
|
+
export * from './ArrayPushCallbackChunkFormatPlugin.js';
|
|
3
|
+
export * from './AssetModulesPlugin.js';
|
|
4
|
+
export * from './AsyncWebAssemblyModulesPlugin.js';
|
|
5
|
+
export * from './BannerPlugin.js';
|
|
6
|
+
export * from './BundlerInfoRspackPlugin.js';
|
|
7
|
+
export { createNativePlugin, RspackBuiltinPlugin } from './base.js';
|
|
8
|
+
export * from './CaseSensitivePlugin.js';
|
|
9
|
+
export * from './ChunkPrefetchPreloadPlugin.js';
|
|
10
|
+
export * from './CircularDependencyRspackPlugin.js';
|
|
11
|
+
export * from './CommonJsChunkFormatPlugin.js';
|
|
12
|
+
export * from './ContextReplacementPlugin.js';
|
|
13
|
+
export * from './CopyRspackPlugin.js';
|
|
14
|
+
export * from './CssChunkingPlugin.js';
|
|
15
|
+
export * from './CssModulesPlugin.js';
|
|
16
|
+
export * from './css-extract/index.js';
|
|
17
|
+
export * from './DataUriPlugin.js';
|
|
18
|
+
export * from './DefinePlugin.js';
|
|
19
|
+
export * from './DeterministicChunkIdsPlugin.js';
|
|
20
|
+
export * from './DeterministicModuleIdsPlugin.js';
|
|
21
|
+
export * from './DllEntryPlugin.js';
|
|
22
|
+
export * from './DllReferenceAgencyPlugin.js';
|
|
23
|
+
export * from './DynamicEntryPlugin.js';
|
|
24
|
+
export * from './ElectronTargetPlugin.js';
|
|
25
|
+
export * from './EnableChunkLoadingPlugin.js';
|
|
26
|
+
export * from './EnableLibraryPlugin.js';
|
|
27
|
+
export * from './EnableWasmLoadingPlugin.js';
|
|
28
|
+
export * from './EnsureChunkConditionsPlugin.js';
|
|
29
|
+
export * from './EntryPlugin.js';
|
|
30
|
+
export * from './EsmLibraryPlugin.js';
|
|
31
|
+
export * from './EvalDevToolModulePlugin.js';
|
|
32
|
+
export * from './EvalSourceMapDevToolPlugin.js';
|
|
33
|
+
export * from './ExternalsPlugin.js';
|
|
34
|
+
export * from './FetchCompileAsyncWasmPlugin.js';
|
|
35
|
+
export * from './FileUriPlugin.js';
|
|
36
|
+
export * from './FlagDependencyExportsPlugin.js';
|
|
37
|
+
export * from './FlagDependencyUsagePlugin.js';
|
|
38
|
+
export * from './HotModuleReplacementPlugin.js';
|
|
39
|
+
export * from './HttpExternalsRspackPlugin.js';
|
|
40
|
+
export * from './HttpUriPlugin.js';
|
|
41
|
+
export * from './html-plugin/index.js';
|
|
42
|
+
export * from './IgnorePlugin.js';
|
|
43
|
+
export * from './InferAsyncModulesPlugin.js';
|
|
44
|
+
export * from './InlineExportsPlugin.js';
|
|
45
|
+
export * from './JavascriptModulesPlugin.js';
|
|
46
|
+
export * from './JsLoaderRspackPlugin.js';
|
|
47
|
+
export * from './JsonModulesPlugin.js';
|
|
48
|
+
export * from './LibManifestPlugin.js';
|
|
49
|
+
export * from './LightningCssMinimizerRspackPlugin.js';
|
|
50
|
+
export * from './LightningCssMinimizerRspackPlugin.js';
|
|
51
|
+
export * from './LimitChunkCountPlugin.js';
|
|
52
|
+
export * from './lazy-compilation/middleware.js';
|
|
53
|
+
export * from './MangleExportsPlugin.js';
|
|
54
|
+
export * from './MergeDuplicateChunksPlugin.js';
|
|
55
|
+
export * from './ModuleChunkFormatPlugin.js';
|
|
56
|
+
export * from './ModuleConcatenationPlugin.js';
|
|
57
|
+
export * from './ModuleInfoHeaderPlugin.js';
|
|
58
|
+
export * from './NamedChunkIdsPlugin.js';
|
|
59
|
+
export * from './NamedModuleIdsPlugin.js';
|
|
60
|
+
export * from './NaturalChunkIdsPlugin.js';
|
|
61
|
+
export * from './NaturalModuleIdsPlugin.js';
|
|
62
|
+
export * from './NodeTargetPlugin.js';
|
|
63
|
+
export * from './NoEmitOnErrorsPlugin.js';
|
|
64
|
+
export * from './NormalModuleReplacementPlugin.js';
|
|
65
|
+
export * from './OccurrenceChunkIdsPlugin.js';
|
|
66
|
+
export * from './ProgressPlugin.js';
|
|
67
|
+
export * from './ProvidePlugin.js';
|
|
68
|
+
export * from './RealContentHashPlugin.js';
|
|
69
|
+
export * from './RemoveDuplicateModulesPlugin.js';
|
|
70
|
+
export * from './RemoveEmptyChunksPlugin.js';
|
|
71
|
+
export * from './RsdoctorPlugin.js';
|
|
72
|
+
export * from './RslibPlugin.js';
|
|
73
|
+
export * from './RstestPlugin.js';
|
|
74
|
+
export * from './RuntimeChunkPlugin.js';
|
|
75
|
+
export * from './RuntimePlugin.js';
|
|
76
|
+
export * from './SideEffectsFlagPlugin.js';
|
|
77
|
+
export * from './SizeLimitsPlugin.js';
|
|
78
|
+
export * from './SourceMapDevToolPlugin.js';
|
|
79
|
+
export * from './SplitChunksPlugin.js';
|
|
80
|
+
export * from './SubresourceIntegrityPlugin.js';
|
|
81
|
+
export * from './SwcJsMinimizerPlugin.js';
|
|
82
|
+
export * from './URLPlugin.js';
|
|
83
|
+
export * from './WebWorkerTemplatePlugin.js';
|
|
84
|
+
export * from './WorkerPlugin.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Module } from '../../Module';
|
|
1
|
+
import type { Module } from '../../Module.js';
|
|
2
2
|
export declare const BuiltinLazyCompilationPlugin: {
|
|
3
3
|
new (currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined];
|
|
6
|
-
affectedHooks: keyof import("
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
6
|
+
affectedHooks: keyof import("../../index.js").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: import("../../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("../../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Compiler, MultiCompiler } from '
|
|
2
|
-
import type { MiddlewareHandler } from '../../config/devServer';
|
|
1
|
+
import { type Compiler, MultiCompiler } from '../../index.js';
|
|
2
|
+
import type { MiddlewareHandler } from '../../config/devServer.js';
|
|
3
3
|
export declare const LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-";
|
|
4
4
|
/**
|
|
5
5
|
* Create a middleware that handles lazy compilation requests from the client.
|
package/dist/config/adapter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type RawOptions } from '@rspack/binding';
|
|
2
|
-
import type { Compiler } from '../Compiler';
|
|
3
|
-
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from './adapterRuleUse';
|
|
4
|
-
import type { RspackOptionsNormalized } from './normalization';
|
|
5
|
-
import type { Resolve } from './types';
|
|
2
|
+
import type { Compiler } from '../Compiler.js';
|
|
3
|
+
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from './adapterRuleUse.js';
|
|
4
|
+
import type { RspackOptionsNormalized } from './normalization.js';
|
|
5
|
+
import type { Resolve } from './types.js';
|
|
6
6
|
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction, PitchLoaderDefinitionFunction, };
|
|
7
7
|
export declare const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions;
|
|
8
8
|
export declare function getRawResolve(resolve: Resolve): RawOptions['resolve'];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { AssetInfo, RawModuleRuleUse, RawOptions } from '@rspack/binding';
|
|
2
|
-
import type { Compilation } from '../Compilation';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
4
|
-
import { type LoaderObject } from '../loader-runner';
|
|
5
|
-
import type { Logger } from '../logging/Logger';
|
|
6
|
-
import type { Module } from '../Module';
|
|
7
|
-
import type { ResolveRequest } from '../Resolver';
|
|
8
|
-
import type Hash from '../util/hash';
|
|
9
|
-
import type { RspackOptionsNormalized } from './normalization';
|
|
10
|
-
import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from './types';
|
|
2
|
+
import type { Compilation } from '../Compilation.js';
|
|
3
|
+
import type { Compiler } from '../Compiler.js';
|
|
4
|
+
import { type LoaderObject } from '../loader-runner/index.js';
|
|
5
|
+
import type { Logger } from '../logging/Logger.js';
|
|
6
|
+
import type { Module } from '../Module.js';
|
|
7
|
+
import type { ResolveRequest } from '../Resolver.js';
|
|
8
|
+
import type Hash from '../util/hash/index.js';
|
|
9
|
+
import type { RspackOptionsNormalized } from './normalization.js';
|
|
10
|
+
import type { Mode, PublicPath, Resolve, RuleSetLoaderWithOptions, RuleSetUseItem, Target } from './types.js';
|
|
11
11
|
export declare const BUILTIN_LOADER_PREFIX = "builtin:";
|
|
12
12
|
export interface ComposeJsUseOptions {
|
|
13
13
|
context: RawOptions['context'];
|
|
@@ -387,5 +387,6 @@ export type LoaderDefinition<OptionsType = {}, ContextAdditions = {}> = LoaderDe
|
|
|
387
387
|
pitch?: PitchLoaderDefinitionFunction;
|
|
388
388
|
};
|
|
389
389
|
export declare function createRawModuleRuleUses(uses: RuleSetUseItem | RuleSetUseItem[], path: string, options: ComposeJsUseOptions): RawModuleRuleUse[];
|
|
390
|
+
export type GetLoaderOptions = (o: RuleSetLoaderWithOptions['options'], options: ComposeJsUseOptions) => RuleSetLoaderWithOptions['options'];
|
|
390
391
|
export declare function isUseSourceMap(devtool: RspackOptionsNormalized['devtool']): boolean;
|
|
391
392
|
export declare function isUseSimpleSourceMap(devtool: RspackOptionsNormalized['devtool']): boolean;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { ApiTargetProperties, EcmaTargetProperties, PlatformTargetProperties } from './target';
|
|
10
|
+
import type { ApiTargetProperties, EcmaTargetProperties, PlatformTargetProperties } from './target.js';
|
|
11
11
|
/**
|
|
12
12
|
* @param browsers supported browsers list
|
|
13
13
|
* @returns target properties
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RspackOptionsNormalized } from './normalization';
|
|
2
|
-
export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => {
|
|
3
|
-
platform:
|
|
1
|
+
import type { RspackOptionsNormalized } from './normalization.js';
|
|
2
|
+
export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => false | {
|
|
3
|
+
platform: {
|
|
4
4
|
web: boolean | null | undefined;
|
|
5
5
|
browser: boolean | null | undefined;
|
|
6
6
|
webworker: boolean | null | undefined;
|
|
@@ -8,6 +8,8 @@ export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormaliz
|
|
|
8
8
|
nwjs: boolean | null | undefined;
|
|
9
9
|
electron: boolean | null | undefined;
|
|
10
10
|
};
|
|
11
|
+
esVersion: number | null | undefined;
|
|
12
|
+
targets: Record<string, string> | null | undefined;
|
|
11
13
|
};
|
|
12
14
|
export declare const applyRspackOptionsBaseDefaults: (options: RspackOptionsNormalized) => void;
|
|
13
15
|
export declare const getPnpDefault: () => boolean;
|
|
@@ -11,7 +11,7 @@ import type * as http from 'node:http';
|
|
|
11
11
|
import type * as net from 'node:net';
|
|
12
12
|
import type * as stream from 'node:stream';
|
|
13
13
|
import type * as url from 'node:url';
|
|
14
|
-
import type { Compiler, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from '
|
|
14
|
+
import type { Compiler, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from '../index.js';
|
|
15
15
|
type Logger = ReturnType<Compiler['getInfrastructureLogger']>;
|
|
16
16
|
type MultiWatching = MultiCompiler['watch'];
|
|
17
17
|
type BasicServer = import('net').Server | import('tls').Server;
|
|
@@ -36,11 +36,11 @@ type Headers = {
|
|
|
36
36
|
key: string;
|
|
37
37
|
value: string;
|
|
38
38
|
}[] | Record<string, string | string[]>;
|
|
39
|
-
type OutputFileSystem = import('
|
|
39
|
+
type OutputFileSystem = import('../index.js').OutputFileSystem & {
|
|
40
40
|
statSync: import('fs').StatSyncFn;
|
|
41
41
|
readFileSync: typeof import('fs').readFileSync;
|
|
42
42
|
};
|
|
43
|
-
type RspackConfiguration = import('
|
|
43
|
+
type RspackConfiguration = import('../index.js').Configuration;
|
|
44
44
|
type Port = number | LiteralUnion<'auto', string>;
|
|
45
45
|
type HistoryContext = {
|
|
46
46
|
readonly match: RegExpMatchArray;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './adapter';
|
|
2
|
-
export type { RawSourceMap } from './adapterRuleUse';
|
|
3
|
-
export * from './defaults';
|
|
4
|
-
export * from './normalization';
|
|
5
|
-
export type * from './types';
|
|
1
|
+
export * from './adapter.js';
|
|
2
|
+
export type { RawSourceMap } from './adapterRuleUse.js';
|
|
3
|
+
export * from './defaults.js';
|
|
4
|
+
export * from './normalization.js';
|
|
5
|
+
export type * from './types.js';
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { HttpUriPluginOptions } from '../builtin-plugin';
|
|
11
|
-
import type { Compilation } from '../Compilation';
|
|
12
|
-
import type WebpackError from '../lib/WebpackError';
|
|
13
|
-
import type { Amd, AssetModuleFilename, Bail,
|
|
10
|
+
import type { HttpUriPluginOptions } from '../builtin-plugin/index.js';
|
|
11
|
+
import type { Compilation } from '../Compilation.js';
|
|
12
|
+
import type WebpackError from '../lib/WebpackError.js';
|
|
13
|
+
import type { Amd, AssetModuleFilename, Bail, BundlerInfoOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, Node, NoParseOption, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, PublicPath, Resolve, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from './types.js';
|
|
14
14
|
export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
|
|
15
15
|
export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
|
|
16
16
|
export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
|
|
@@ -66,9 +66,9 @@ export interface OutputNormalized {
|
|
|
66
66
|
devtoolModuleFilenameTemplate?: DevtoolModuleFilenameTemplate;
|
|
67
67
|
devtoolFallbackModuleFilenameTemplate?: DevtoolFallbackModuleFilenameTemplate;
|
|
68
68
|
environment?: Environment;
|
|
69
|
-
charset?: boolean;
|
|
70
69
|
chunkLoadTimeout?: number;
|
|
71
70
|
compareBeforeEmit?: boolean;
|
|
71
|
+
bundlerInfo?: BundlerInfoOptions;
|
|
72
72
|
}
|
|
73
73
|
export interface ModuleOptionsNormalized {
|
|
74
74
|
defaultRules?: RuleSetRules;
|
|
@@ -78,7 +78,7 @@ export interface ModuleOptionsNormalized {
|
|
|
78
78
|
noParse?: NoParseOption;
|
|
79
79
|
unsafeCache?: boolean | RegExp;
|
|
80
80
|
}
|
|
81
|
-
export type
|
|
81
|
+
export type CacheNormalized = boolean | {
|
|
82
82
|
type: 'memory';
|
|
83
83
|
} | {
|
|
84
84
|
type: 'persistent';
|
|
@@ -95,40 +95,12 @@ export type ExperimentCacheNormalized = boolean | {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
export interface ExperimentsNormalized {
|
|
98
|
-
cache?: ExperimentCacheNormalized;
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated This option is deprecated and will be removed in future versions.
|
|
101
|
-
*
|
|
102
|
-
* Please use the Configuration top-level `lazyCompilation` option instead.
|
|
103
|
-
*/
|
|
104
|
-
lazyCompilation?: false | LazyCompilationOptions;
|
|
105
98
|
asyncWebAssembly?: boolean;
|
|
106
99
|
outputModule?: boolean;
|
|
107
|
-
topLevelAwait?: boolean;
|
|
108
100
|
css?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* @deprecated This option is deprecated, layers is enabled since v1.6.0
|
|
111
|
-
*/
|
|
112
|
-
layers?: boolean;
|
|
113
|
-
incremental?: false | Incremental;
|
|
114
101
|
futureDefaults?: boolean;
|
|
115
|
-
rspackFuture?: RspackFutureOptions;
|
|
116
102
|
buildHttp?: HttpUriPluginOptions;
|
|
117
|
-
parallelLoader?: boolean;
|
|
118
103
|
useInputFileSystem?: false | RegExp[];
|
|
119
|
-
/**
|
|
120
|
-
* @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
|
|
121
|
-
*/
|
|
122
|
-
inlineConst?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
|
|
125
|
-
*/
|
|
126
|
-
inlineEnum?: boolean;
|
|
127
|
-
typeReexportsPresence?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
|
|
130
|
-
*/
|
|
131
|
-
lazyBarrel?: boolean;
|
|
132
104
|
nativeWatcher?: boolean;
|
|
133
105
|
deferImport?: boolean;
|
|
134
106
|
}
|
|
@@ -157,18 +129,18 @@ export interface RspackOptionsNormalized {
|
|
|
157
129
|
node: Node;
|
|
158
130
|
loader: Loader;
|
|
159
131
|
snapshot: SnapshotOptions;
|
|
160
|
-
cache?:
|
|
132
|
+
cache?: CacheNormalized;
|
|
161
133
|
stats: StatsValue;
|
|
162
134
|
optimization: Optimization;
|
|
163
135
|
plugins: Plugins;
|
|
164
136
|
experiments: ExperimentsNormalized;
|
|
165
137
|
lazyCompilation?: false | LazyCompilationOptions;
|
|
138
|
+
incremental?: false | Incremental;
|
|
166
139
|
watch?: Watch;
|
|
167
140
|
watchOptions: WatchOptions;
|
|
168
141
|
devServer?: DevServer;
|
|
169
142
|
ignoreWarnings?: IgnoreWarningsNormalized;
|
|
170
143
|
performance?: Performance;
|
|
171
|
-
profile?: Profile;
|
|
172
144
|
amd?: Amd;
|
|
173
145
|
bail?: Bail;
|
|
174
146
|
}
|
package/dist/config/target.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The following code is modified based on
|
|
3
|
+
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/config/target.js
|
|
4
|
+
*
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
* Author Tobias Koppers @sokra
|
|
7
|
+
* Copyright (c) JS Foundation and other contributors
|
|
8
|
+
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
|
+
*/
|
|
1
10
|
/**
|
|
2
11
|
* @param context the context directory
|
|
3
12
|
* @returns default target
|
|
@@ -73,21 +82,15 @@ export type EcmaTargetProperties = {
|
|
|
73
82
|
/** async functions and await are available */
|
|
74
83
|
asyncFunction: boolean | null;
|
|
75
84
|
};
|
|
85
|
+
export type ExtractedTargetProperties = {
|
|
86
|
+
esVersion?: number | null;
|
|
87
|
+
targets?: Record<string, string> | null;
|
|
88
|
+
};
|
|
76
89
|
type Never<T> = {
|
|
77
90
|
[P in keyof T]?: never;
|
|
78
91
|
};
|
|
79
92
|
type Mix<A, B> = (A & Never<B>) | (Never<A> & B) | (A & B);
|
|
80
|
-
export type TargetProperties = Mix<Mix<PlatformTargetProperties, ElectronContextTargetProperties>, Mix<ApiTargetProperties, EcmaTargetProperties
|
|
81
|
-
/**
|
|
82
|
-
* @param target the target
|
|
83
|
-
* @param context the context directory
|
|
84
|
-
* @returns target properties
|
|
85
|
-
*/
|
|
93
|
+
export type TargetProperties = Mix<Mix<PlatformTargetProperties, ElectronContextTargetProperties>, Mix<ApiTargetProperties, EcmaTargetProperties>> & ExtractedTargetProperties;
|
|
86
94
|
export declare const getTargetProperties: (target: string, context: string) => TargetProperties;
|
|
87
|
-
/**
|
|
88
|
-
* @param targets the targets
|
|
89
|
-
* @param context the context directory
|
|
90
|
-
* @returns target properties
|
|
91
|
-
*/
|
|
92
95
|
export declare const getTargetsProperties: (targets: string[], context: string) => TargetProperties;
|
|
93
96
|
export {};
|