@rspack/browser 1.7.0-beta.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BuildInfo.d.ts +4 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +3 -3
- package/dist/Chunks.d.ts +2 -2
- package/dist/Compilation.d.ts +40 -40
- package/dist/Compiler.d.ts +25 -22
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +2 -2
- package/dist/Diagnostics.d.ts +2 -2
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +2 -2
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +3 -3
- package/dist/Module.d.ts +6 -6
- package/dist/ModuleGraph.d.ts +3 -3
- package/dist/MultiCompiler.d.ts +8 -8
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +3 -3
- package/dist/NativeWatchFileSystem.d.ts +5 -5
- package/dist/NormalModule.d.ts +6 -6
- package/dist/NormalModuleFactory.d.ts +4 -4
- package/dist/Resolver.d.ts +2 -2
- package/dist/ResolverFactory.d.ts +3 -3
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +4 -4
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +5 -5
- package/dist/browser/BrowserHttpImportEsmPlugin.d.ts +1 -1
- package/dist/browser/BrowserRequirePlugin.d.ts +1 -1
- package/dist/browser/buffer.d.ts +1 -1
- package/dist/browser/fs.d.ts +1 -1
- package/dist/browser/index.d.ts +3 -3
- package/dist/builtin-loader/index.d.ts +1 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +10 -4
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/{WarnCaseSensitiveModulesPlugin.d.ts → CaseSensitivePlugin.d.ts} +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +5 -10
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +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/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
- package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
- package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
- package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
- 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 +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/config/adapter.d.ts +7 -7
- package/dist/config/adapterRuleUse.d.ts +16 -16
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +11 -2
- package/dist/config/devServer.d.ts +32 -32
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +9 -9
- package/dist/config/target.d.ts +7 -7
- package/dist/config/types.d.ts +74 -74
- package/dist/container/ContainerPlugin.d.ts +4 -4
- package/dist/container/ContainerReferencePlugin.d.ts +4 -4
- package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
- package/dist/container/ModuleFederationPlugin.d.ts +6 -6
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/index.d.ts +4 -4
- package/dist/exports.d.ts +76 -72
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +6614 -6625
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +2 -2
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +5 -5
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/service.d.ts +8 -8
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +3 -3
- package/dist/logging/createConsoleLogger.d.ts +4 -4
- package/dist/napi-binding.d.ts +11 -3
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +3 -3
- package/dist/node/nodeConsole.d.ts +2 -2
- package/dist/rslib-runtime.js +29 -0
- package/dist/rslib-runtime.mjs +68 -0
- package/dist/rspack.d.ts +6 -6
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +5 -5
- package/dist/stats/StatsPrinter.d.ts +3 -3
- package/dist/stats/statsFactoryUtils.d.ts +5 -5
- package/dist/swc.d.ts +2 -2
- package/dist/taps/compilation.d.ts +2 -2
- 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 +3 -3
- package/dist/trace/index.d.ts +4 -4
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/createReadonlyMap.d.ts +1 -1
- package/dist/util/fs.d.ts +14 -14
- package/dist/util/hash/wasm-hash.d.ts +1 -1
- package/dist/util/identifier.d.ts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/source.d.ts +2 -2
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/wasi-worker-browser.mjs +22673 -22676
- package/package.json +1 -1
package/dist/exports.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
declare const rspackVersion: string;
|
|
2
2
|
declare const version: string;
|
|
3
3
|
export { rspackVersion, version };
|
|
4
|
-
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from
|
|
5
|
-
export { Compilation } from
|
|
6
|
-
export { Compiler, type CompilerHooks } from
|
|
7
|
-
export type { MultiCompilerOptions, MultiRspackOptions } from
|
|
8
|
-
export { MultiCompiler } from
|
|
9
|
-
import { RspackOptionsApply } from
|
|
4
|
+
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData, } from './Compilation';
|
|
5
|
+
export { Compilation } from './Compilation';
|
|
6
|
+
export { Compiler, type CompilerHooks } from './Compiler';
|
|
7
|
+
export type { MultiCompilerOptions, MultiRspackOptions } from './MultiCompiler';
|
|
8
|
+
export { MultiCompiler } from './MultiCompiler';
|
|
9
|
+
import { RspackOptionsApply } from './rspackOptionsApply';
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
|
-
export type { ChunkGroup } from
|
|
12
|
-
export { AsyncDependenciesBlock, Dependency, EntryDependency } from
|
|
13
|
-
export type { Chunk } from
|
|
14
|
-
export { ConcatenatedModule } from
|
|
15
|
-
export { ContextModule } from
|
|
16
|
-
export { ExternalModule } from
|
|
17
|
-
export type { ResolveData, ResourceDataWithData } from
|
|
18
|
-
export { Module } from
|
|
19
|
-
export type { default as ModuleGraph } from
|
|
20
|
-
export { MultiStats } from
|
|
21
|
-
export { NormalModule } from
|
|
22
|
-
export type { NormalModuleFactory } from
|
|
23
|
-
export { type RspackError, type RspackSeverity, ValidationError } from
|
|
24
|
-
export { RuntimeGlobals } from
|
|
25
|
-
export { RuntimeModule } from
|
|
26
|
-
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from
|
|
27
|
-
export { Stats } from
|
|
28
|
-
export { StatsErrorCode } from
|
|
29
|
-
import * as ModuleFilenameHelpers from
|
|
11
|
+
export type { ChunkGroup } from '@rspack/binding';
|
|
12
|
+
export { AsyncDependenciesBlock, Dependency, EntryDependency, } from '@rspack/binding';
|
|
13
|
+
export type { Chunk } from './Chunk';
|
|
14
|
+
export { ConcatenatedModule } from './ConcatenatedModule';
|
|
15
|
+
export { ContextModule } from './ContextModule';
|
|
16
|
+
export { ExternalModule } from './ExternalModule';
|
|
17
|
+
export type { ResolveData, ResourceDataWithData } from './Module';
|
|
18
|
+
export { Module } from './Module';
|
|
19
|
+
export type { default as ModuleGraph } from './ModuleGraph';
|
|
20
|
+
export { MultiStats } from './MultiStats';
|
|
21
|
+
export { NormalModule } from './NormalModule';
|
|
22
|
+
export type { NormalModuleFactory } from './NormalModuleFactory';
|
|
23
|
+
export { type RspackError, type RspackSeverity, ValidationError, } from './RspackError';
|
|
24
|
+
export { RuntimeGlobals } from './RuntimeGlobals';
|
|
25
|
+
export { RuntimeModule } from './RuntimeModule';
|
|
26
|
+
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats';
|
|
27
|
+
export { Stats } from './Stats';
|
|
28
|
+
export { StatsErrorCode } from './stats/statsFactoryUtils';
|
|
29
|
+
import * as ModuleFilenameHelpers from './lib/ModuleFilenameHelpers';
|
|
30
30
|
export { ModuleFilenameHelpers };
|
|
31
|
-
export { Template } from
|
|
31
|
+
export { Template } from './Template';
|
|
32
32
|
export declare const WebpackError: ErrorConstructor;
|
|
33
|
-
export type { Watching } from
|
|
34
|
-
import sources = require(
|
|
33
|
+
export type { Watching } from './Watching';
|
|
34
|
+
import sources = require('webpack-sources');
|
|
35
35
|
export { sources };
|
|
36
|
-
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from
|
|
36
|
+
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from './config';
|
|
37
37
|
type Config = {
|
|
38
38
|
getNormalizedRspackOptions: typeof getNormalizedRspackOptions;
|
|
39
39
|
applyRspackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
@@ -41,29 +41,33 @@ type Config = {
|
|
|
41
41
|
applyWebpackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
42
42
|
};
|
|
43
43
|
export declare const config: Config;
|
|
44
|
-
export type * from
|
|
44
|
+
export type * from './config';
|
|
45
45
|
export declare const util: {
|
|
46
46
|
createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
|
|
47
47
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
48
48
|
};
|
|
49
|
-
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from
|
|
50
|
-
export { BannerPlugin,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export
|
|
58
|
-
|
|
49
|
+
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions, } from './builtin-plugin';
|
|
50
|
+
export { BannerPlugin, CaseSensitivePlugin,
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use `rspack.CaseSensitivePlugin` instead
|
|
53
|
+
*/
|
|
54
|
+
CaseSensitivePlugin as WarnCaseSensitiveModulesPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin';
|
|
55
|
+
export { DllPlugin, type DllPluginOptions } from './lib/DllPlugin';
|
|
56
|
+
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType, } from './lib/DllReferencePlugin';
|
|
57
|
+
export { default as EntryOptionPlugin } from './lib/EntryOptionPlugin';
|
|
58
|
+
export { EnvironmentPlugin } from './lib/EnvironmentPlugin';
|
|
59
|
+
export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin';
|
|
60
|
+
export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin';
|
|
61
|
+
export type { OutputFileSystem, WatchFileSystem } from './util/fs';
|
|
62
|
+
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from './builtin-plugin';
|
|
59
63
|
export { SubresourceIntegrityPlugin };
|
|
60
64
|
interface Web {
|
|
61
65
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
62
66
|
}
|
|
63
67
|
export declare const web: Web;
|
|
64
|
-
import { NodeTargetPlugin } from
|
|
65
|
-
import NodeEnvironmentPlugin from
|
|
66
|
-
import NodeTemplatePlugin from
|
|
68
|
+
import { NodeTargetPlugin } from './builtin-plugin';
|
|
69
|
+
import NodeEnvironmentPlugin from './node/NodeEnvironmentPlugin';
|
|
70
|
+
import NodeTemplatePlugin from './node/NodeTemplatePlugin';
|
|
67
71
|
interface Node {
|
|
68
72
|
NodeTargetPlugin: typeof NodeTargetPlugin;
|
|
69
73
|
NodeTemplatePlugin: typeof NodeTemplatePlugin;
|
|
@@ -71,75 +75,75 @@ interface Node {
|
|
|
71
75
|
}
|
|
72
76
|
export { lazyCompilationMiddleware };
|
|
73
77
|
export declare const node: Node;
|
|
74
|
-
import { ElectronTargetPlugin } from
|
|
78
|
+
import { ElectronTargetPlugin } from './builtin-plugin';
|
|
75
79
|
interface Electron {
|
|
76
80
|
ElectronTargetPlugin: typeof ElectronTargetPlugin;
|
|
77
81
|
}
|
|
78
82
|
export declare const electron: Electron;
|
|
79
|
-
import { EnableLibraryPlugin } from
|
|
83
|
+
import { EnableLibraryPlugin } from './builtin-plugin';
|
|
80
84
|
interface Library {
|
|
81
85
|
EnableLibraryPlugin: typeof EnableLibraryPlugin;
|
|
82
86
|
}
|
|
83
87
|
export declare const library: Library;
|
|
84
|
-
import { EnableWasmLoadingPlugin } from
|
|
88
|
+
import { EnableWasmLoadingPlugin } from './builtin-plugin';
|
|
85
89
|
interface Wasm {
|
|
86
90
|
EnableWasmLoadingPlugin: typeof EnableWasmLoadingPlugin;
|
|
87
91
|
}
|
|
88
92
|
export declare const wasm: Wasm;
|
|
89
|
-
import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from
|
|
93
|
+
import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from './builtin-plugin';
|
|
90
94
|
interface JavaScript {
|
|
91
95
|
EnableChunkLoadingPlugin: typeof EnableChunkLoadingPlugin;
|
|
92
96
|
JavascriptModulesPlugin: typeof JavascriptModulesPlugin;
|
|
93
97
|
}
|
|
94
98
|
export declare const javascript: JavaScript;
|
|
95
|
-
import { WebWorkerTemplatePlugin } from
|
|
99
|
+
import { WebWorkerTemplatePlugin } from './builtin-plugin';
|
|
96
100
|
interface Webworker {
|
|
97
101
|
WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
|
|
98
102
|
}
|
|
99
103
|
export declare const webworker: Webworker;
|
|
100
|
-
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from
|
|
104
|
+
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from './builtin-plugin';
|
|
101
105
|
interface Optimize {
|
|
102
106
|
LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
|
|
103
107
|
RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
|
|
104
108
|
SplitChunksPlugin: typeof SplitChunksPlugin;
|
|
105
109
|
}
|
|
106
110
|
export declare const optimize: Optimize;
|
|
107
|
-
import { ModuleFederationPlugin } from
|
|
108
|
-
export type { ModuleFederationPluginOptions } from
|
|
109
|
-
import { ModuleFederationPluginV1 } from
|
|
110
|
-
export type { ModuleFederationPluginV1Options } from
|
|
111
|
-
import { ContainerPlugin } from
|
|
112
|
-
import { ContainerReferencePlugin } from
|
|
113
|
-
export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject } from
|
|
114
|
-
export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject } from
|
|
111
|
+
import { ModuleFederationPlugin } from './container/ModuleFederationPlugin';
|
|
112
|
+
export type { ModuleFederationPluginOptions } from './container/ModuleFederationPlugin';
|
|
113
|
+
import { ModuleFederationPluginV1 } from './container/ModuleFederationPluginV1';
|
|
114
|
+
export type { ModuleFederationPluginV1Options } from './container/ModuleFederationPluginV1';
|
|
115
|
+
import { ContainerPlugin } from './container/ContainerPlugin';
|
|
116
|
+
import { ContainerReferencePlugin } from './container/ContainerReferencePlugin';
|
|
117
|
+
export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject, } from './container/ContainerPlugin';
|
|
118
|
+
export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject, } from './container/ContainerReferencePlugin';
|
|
115
119
|
export declare const container: {
|
|
116
120
|
ContainerPlugin: typeof ContainerPlugin;
|
|
117
121
|
ContainerReferencePlugin: typeof ContainerReferencePlugin;
|
|
118
122
|
ModuleFederationPlugin: typeof ModuleFederationPlugin;
|
|
119
123
|
ModuleFederationPluginV1: typeof ModuleFederationPluginV1;
|
|
120
124
|
};
|
|
121
|
-
import { ConsumeSharedPlugin } from
|
|
122
|
-
import { ProvideSharedPlugin } from
|
|
123
|
-
import { SharePlugin } from
|
|
124
|
-
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from
|
|
125
|
-
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from
|
|
126
|
-
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from
|
|
125
|
+
import { ConsumeSharedPlugin } from './sharing/ConsumeSharedPlugin';
|
|
126
|
+
import { ProvideSharedPlugin } from './sharing/ProvideSharedPlugin';
|
|
127
|
+
import { SharePlugin } from './sharing/SharePlugin';
|
|
128
|
+
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject, } from './sharing/ConsumeSharedPlugin';
|
|
129
|
+
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject, } from './sharing/ProvideSharedPlugin';
|
|
130
|
+
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions, } from './sharing/SharePlugin';
|
|
127
131
|
export declare const sharing: {
|
|
128
132
|
ProvideSharedPlugin: typeof ProvideSharedPlugin;
|
|
129
133
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
|
130
134
|
SharePlugin: typeof SharePlugin;
|
|
131
135
|
};
|
|
132
|
-
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from
|
|
133
|
-
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from
|
|
134
|
-
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from
|
|
135
|
-
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from
|
|
136
|
-
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from
|
|
137
|
-
import { createNativePlugin } from
|
|
138
|
-
import { minify, minifySync, transform, transformSync } from
|
|
139
|
-
import { VirtualModulesPlugin } from
|
|
136
|
+
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions, } from './builtin-loader/lightningcss/index';
|
|
137
|
+
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './builtin-loader/swc/index';
|
|
138
|
+
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions, } from './builtin-plugin';
|
|
139
|
+
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin, } from './builtin-plugin';
|
|
140
|
+
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from '@rspack/binding';
|
|
141
|
+
import { createNativePlugin } from './builtin-plugin';
|
|
142
|
+
import { minify, minifySync, transform, transformSync } from './swc';
|
|
143
|
+
import { VirtualModulesPlugin } from './VirtualModulesPlugin';
|
|
140
144
|
interface Experiments {
|
|
141
145
|
globalTrace: {
|
|
142
|
-
register: (filter: string, layer:
|
|
146
|
+
register: (filter: string, layer: 'logger' | 'perfetto', output: string) => Promise<void>;
|
|
143
147
|
cleanup: () => Promise<void>;
|
|
144
148
|
};
|
|
145
149
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as rspackExports from
|
|
2
|
-
import { rspack as rspackFn } from
|
|
1
|
+
import * as rspackExports from './exports';
|
|
2
|
+
import { rspack as rspackFn } from './rspack';
|
|
3
3
|
type Rspack = typeof rspackFn & typeof rspackExports & {
|
|
4
4
|
rspack: Rspack;
|
|
5
5
|
webpack: Rspack;
|
|
6
6
|
};
|
|
7
7
|
declare const rspack: Rspack;
|
|
8
|
-
export * from
|
|
8
|
+
export * from './exports';
|
|
9
9
|
export default rspack;
|
|
10
10
|
export { rspack };
|