@rspack/core 1.2.0-alpha.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/browserslist/index.js +28 -28
- package/compiled/graceful-fs/index.js +18 -18
- package/compiled/watchpack/index.js +34 -34
- package/compiled/webpack-sources/index.js +76 -76
- package/compiled/zod/index.js +30 -30
- package/dist/ChunkGraph.d.ts +1 -0
- package/dist/ChunkGroup.d.ts +2 -0
- package/dist/Compilation.d.ts +0 -9
- package/dist/Module.d.ts +5 -8
- package/dist/ResolverFactory.d.ts +1 -1
- 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 +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/ContextReplacementPlugin.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/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.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/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/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.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/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.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/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.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/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.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/RemoveDuplicateModulesPlugin.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/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/normalization.d.ts +3 -2
- package/dist/config/types.d.ts +33 -53
- package/dist/config/zod.d.ts +124 -119
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +2 -3
- package/dist/index.js +368 -290
- package/dist/stats/statsFactoryUtils.d.ts +9 -0
- package/package.json +11 -5
|
@@ -164,6 +164,11 @@ export type StatsModuleTraceItem = {
|
|
|
164
164
|
moduleName?: string;
|
|
165
165
|
originId?: string;
|
|
166
166
|
moduleId?: string;
|
|
167
|
+
dependencies?: StatsModuleTraceDependency[];
|
|
168
|
+
};
|
|
169
|
+
export type StatsModuleTraceDependency = KnownStatsModuleTraceDependency & Record<string, any>;
|
|
170
|
+
export type KnownStatsModuleTraceDependency = {
|
|
171
|
+
loc: string;
|
|
167
172
|
};
|
|
168
173
|
export type KnownStatsModuleReason = {
|
|
169
174
|
moduleIdentifier?: string;
|
|
@@ -172,7 +177,10 @@ export type KnownStatsModuleReason = {
|
|
|
172
177
|
resolvedModuleIdentifier?: string;
|
|
173
178
|
resolvedModule?: string;
|
|
174
179
|
type?: string;
|
|
180
|
+
active: boolean;
|
|
181
|
+
explanation?: string;
|
|
175
182
|
userRequest?: string;
|
|
183
|
+
loc?: string;
|
|
176
184
|
moduleId?: string | null;
|
|
177
185
|
resolvedModuleId?: string | number | null;
|
|
178
186
|
};
|
|
@@ -256,6 +264,7 @@ export type SimpleExtractors = {
|
|
|
256
264
|
error: ExtractorsByOption<binding.JsStatsError, StatsError>;
|
|
257
265
|
warning: ExtractorsByOption<binding.JsStatsWarning, StatsError>;
|
|
258
266
|
moduleTraceItem: ExtractorsByOption<binding.JsStatsModuleTrace, StatsModuleTraceItem>;
|
|
267
|
+
moduleTraceDependency: ExtractorsByOption<binding.JsStatsModuleTraceDependency, StatsModuleTraceDependency>;
|
|
259
268
|
};
|
|
260
269
|
export declare const uniqueArray: <T, I>(items: Iterable<T>, selector: (arg: T) => Iterable<I>) => I[];
|
|
261
270
|
export declare const uniqueOrderedArray: <T, I>(items: Iterable<T>, selector: (arg: T) => Iterable<I>, comparator: Comparator) => I[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -47,28 +47,34 @@
|
|
|
47
47
|
"enhanced-resolve": "5.17.1",
|
|
48
48
|
"graceful-fs": "4.2.11",
|
|
49
49
|
"json-parse-even-better-errors": "^3.0.0",
|
|
50
|
-
"prebundle": "^1.
|
|
50
|
+
"prebundle": "^1.2.7",
|
|
51
51
|
"tsc-alias": "^1.8.8",
|
|
52
52
|
"tsup": "^8.3.0",
|
|
53
|
+
"tsx": "^4.19.2",
|
|
53
54
|
"typescript": "^5.7.2",
|
|
54
55
|
"watchpack": "^2.4.0",
|
|
55
56
|
"webpack-dev-server": "5.0.4",
|
|
56
57
|
"webpack-sources": "3.2.3",
|
|
57
58
|
"zod": "^3.23.8",
|
|
58
|
-
"zod-validation-error": "3.4.0"
|
|
59
|
+
"zod-validation-error": "3.4.0",
|
|
60
|
+
"@rspack/tracing": "1.2.0"
|
|
59
61
|
},
|
|
60
62
|
"dependencies": {
|
|
61
63
|
"@module-federation/runtime-tools": "0.8.4",
|
|
62
64
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
65
|
"caniuse-lite": "^1.0.30001616",
|
|
64
|
-
"@rspack/binding": "1.2.0
|
|
66
|
+
"@rspack/binding": "1.2.0"
|
|
65
67
|
},
|
|
66
68
|
"peerDependencies": {
|
|
69
|
+
"@rspack/tracing": "^1.x",
|
|
67
70
|
"@swc/helpers": ">=0.5.1"
|
|
68
71
|
},
|
|
69
72
|
"peerDependenciesMeta": {
|
|
70
73
|
"@swc/helpers": {
|
|
71
74
|
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"@rspack/tracing": {
|
|
77
|
+
"optional": true
|
|
72
78
|
}
|
|
73
79
|
},
|
|
74
80
|
"scripts": {
|
|
@@ -78,7 +84,7 @@
|
|
|
78
84
|
"dev:types": "tsc -w",
|
|
79
85
|
"dev:js": "tsup --watch",
|
|
80
86
|
"prepare-container-runtime": "node ./scripts/prepare-container-runtime.js",
|
|
81
|
-
"doc-coverage": "
|
|
87
|
+
"doc-coverage": "tsx ./scripts/check-documentation-coverage.ts",
|
|
82
88
|
"api-extractor": "api-extractor run --verbose",
|
|
83
89
|
"api-extractor:ci": "api-extractor run --verbose || diff temp/core.api.md etc/core.api.md"
|
|
84
90
|
}
|