@rspack-canary/browser 1.7.3-canary-965a4980-20260119085659 → 1.7.3-canary-6991b7b5-20260119174555
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/Compiler.d.ts +0 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/browser/middleware.d.ts +1 -0
- package/dist/builtin-loader/lightningcss/index.d.ts +5 -0
- package/dist/builtin-loader/swc/types.d.ts +4 -2
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +5 -0
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +5 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +4 -0
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/options.d.ts +5 -0
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -1
- package/dist/builtin-plugin/index.d.ts +0 -1
- package/dist/config/normalization.d.ts +32 -4
- package/dist/config/types.d.ts +145 -56
- package/dist/exports.d.ts +15 -4
- package/dist/{index.js → index.mjs} +36360 -4202
- package/dist/{index.js.LICENSE.txt → index.mjs.LICENSE.txt} +7 -0
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +2 -2
- package/dist/napi-binding.d.ts +30 -34
- package/dist/{rslib-runtime.js → rslib-runtime.mjs} +11 -1
- package/dist/rspack.wasi-browser.js +0 -1
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +2 -1
- package/dist/stats/statsFactoryUtils.d.ts +3 -0
- package/dist/wasi-worker-browser.mjs +22749 -22744
- package/package.json +2 -2
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +0 -8
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +0 -13
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +0 -14
- package/dist/builtin-plugin/rsc/index.d.ts +0 -24
package/dist/lib/DllPlugin.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export type DllReferencePluginOptions = {
|
|
|
31
31
|
*/
|
|
32
32
|
scope?: string;
|
|
33
33
|
/**
|
|
34
|
-
* How the dll is exposed (
|
|
34
|
+
* How the dll is exposed (libraryTarget, defaults to manifest.type).
|
|
35
35
|
*/
|
|
36
36
|
sourceType?: DllReferencePluginOptionsSourceType;
|
|
37
37
|
/**
|
|
@@ -60,7 +60,7 @@ export type DllReferencePluginOptions = {
|
|
|
60
60
|
*/
|
|
61
61
|
scope?: string;
|
|
62
62
|
/**
|
|
63
|
-
* How the dll is exposed (
|
|
63
|
+
* How the dll is exposed (libraryTarget).
|
|
64
64
|
*/
|
|
65
65
|
sourceType?: DllReferencePluginOptionsSourceType;
|
|
66
66
|
/**
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -95,8 +95,6 @@ export interface JsSource {
|
|
|
95
95
|
source: string | Buffer
|
|
96
96
|
map?: string
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
export type CompilerId = void;
|
|
100
98
|
/* -- banner.d.ts end -- */
|
|
101
99
|
|
|
102
100
|
/* -- napi-rs generated below -- */
|
|
@@ -336,7 +334,6 @@ export declare class JsCompiler {
|
|
|
336
334
|
rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
|
|
337
335
|
close(): Promise<void>
|
|
338
336
|
getVirtualFileStore(): VirtualFileStore | null
|
|
339
|
-
getCompilerId(): ExternalObject<CompilerId>
|
|
340
337
|
}
|
|
341
338
|
|
|
342
339
|
export declare class JsContextModuleFactoryAfterResolveData {
|
|
@@ -364,10 +361,6 @@ export declare class JsContextModuleFactoryBeforeResolveData {
|
|
|
364
361
|
set recursive(recursive: boolean)
|
|
365
362
|
}
|
|
366
363
|
|
|
367
|
-
export declare class JsCoordinator {
|
|
368
|
-
constructor(getServerCompilerIdJsFn: () => ExternalObject<CompilerId>)
|
|
369
|
-
}
|
|
370
|
-
|
|
371
364
|
export declare class JsDependencies {
|
|
372
365
|
get fileDependencies(): Array<string>
|
|
373
366
|
get addedFileDependencies(): Array<string>
|
|
@@ -609,9 +602,7 @@ export declare enum BuiltinPluginName {
|
|
|
609
602
|
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
610
603
|
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
611
604
|
HttpUriPlugin = 'HttpUriPlugin',
|
|
612
|
-
CssChunkingPlugin = 'CssChunkingPlugin'
|
|
613
|
-
RscServerPlugin = 'RscServerPlugin',
|
|
614
|
-
RscClientPlugin = 'RscClientPlugin'
|
|
605
|
+
CssChunkingPlugin = 'CssChunkingPlugin'
|
|
615
606
|
}
|
|
616
607
|
|
|
617
608
|
export declare function cleanupGlobalTrace(): void
|
|
@@ -1037,15 +1028,6 @@ export interface JsResourceData {
|
|
|
1037
1028
|
descriptionFilePath?: string
|
|
1038
1029
|
}
|
|
1039
1030
|
|
|
1040
|
-
export interface JsRscClientPluginOptions {
|
|
1041
|
-
coordinator: JsCoordinator
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
export interface JsRscServerPluginOptions {
|
|
1045
|
-
coordinator: JsCoordinator
|
|
1046
|
-
onServerComponentChanges?: (() => void) | undefined | null
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
1031
|
export interface JsRsdoctorAsset {
|
|
1050
1032
|
ukey: number
|
|
1051
1033
|
path: string
|
|
@@ -1417,6 +1399,7 @@ export interface JsStatsModuleCommonAttributes {
|
|
|
1417
1399
|
failed?: boolean
|
|
1418
1400
|
errors?: number
|
|
1419
1401
|
warnings?: number
|
|
1402
|
+
profile?: JsStatsModuleProfile
|
|
1420
1403
|
chunks?: Array<string>
|
|
1421
1404
|
assets?: Array<string>
|
|
1422
1405
|
reasons?: Array<JsStatsModuleReason>
|
|
@@ -1841,17 +1824,11 @@ export interface RawCacheGroupOptions {
|
|
|
1841
1824
|
usedExports?: boolean
|
|
1842
1825
|
}
|
|
1843
1826
|
|
|
1844
|
-
export interface
|
|
1827
|
+
export interface RawCacheOptions {
|
|
1828
|
+
type: string
|
|
1845
1829
|
maxGenerations?: number
|
|
1846
1830
|
}
|
|
1847
1831
|
|
|
1848
|
-
export interface RawCacheOptionsPersistent {
|
|
1849
|
-
buildDependencies?: Array<string>
|
|
1850
|
-
version?: string
|
|
1851
|
-
snapshot?: RawSnapshotOptions
|
|
1852
|
-
storage?: RawStorageOptions
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
1832
|
export interface RawCircularDependencyRspackPluginOptions {
|
|
1856
1833
|
failOnError?: boolean
|
|
1857
1834
|
exclude?: RegExp
|
|
@@ -2147,13 +2124,30 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
2147
2124
|
sourceUrlComment?: string
|
|
2148
2125
|
}
|
|
2149
2126
|
|
|
2127
|
+
export interface RawExperimentCacheOptionsPersistent {
|
|
2128
|
+
buildDependencies?: Array<string>
|
|
2129
|
+
version?: string
|
|
2130
|
+
snapshot?: RawExperimentSnapshotOptions
|
|
2131
|
+
storage?: RawStorageOptions
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2150
2134
|
export interface RawExperiments {
|
|
2135
|
+
topLevelAwait: boolean
|
|
2151
2136
|
incremental?: false | { [key: string]: boolean }
|
|
2137
|
+
rspackFuture?: RawRspackFuture
|
|
2138
|
+
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
2152
2139
|
useInputFileSystem?: false | Array<RegExp>
|
|
2153
2140
|
css?: boolean
|
|
2141
|
+
lazyBarrel: boolean
|
|
2154
2142
|
deferImport: boolean
|
|
2155
2143
|
}
|
|
2156
2144
|
|
|
2145
|
+
export interface RawExperimentSnapshotOptions {
|
|
2146
|
+
immutablePaths: Array<string|RegExp>
|
|
2147
|
+
unmanagedPaths: Array<string|RegExp>
|
|
2148
|
+
managedPaths: Array<string|RegExp>
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2157
2151
|
export interface RawExposeOptions {
|
|
2158
2152
|
key: string
|
|
2159
2153
|
name?: string
|
|
@@ -2248,6 +2242,7 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
2248
2242
|
chunks?: Array<string>
|
|
2249
2243
|
excludeChunks?: Array<string>
|
|
2250
2244
|
chunksSortMode: "auto" | "manual"
|
|
2245
|
+
sri?: "sha256" | "sha384" | "sha512"
|
|
2251
2246
|
minify?: boolean
|
|
2252
2247
|
title?: string
|
|
2253
2248
|
favicon?: string
|
|
@@ -2427,6 +2422,7 @@ export interface RawLightningCssMinimizerOptions {
|
|
|
2427
2422
|
targets?: Array<string>
|
|
2428
2423
|
include?: number
|
|
2429
2424
|
exclude?: number
|
|
2425
|
+
draft?: RawDraft
|
|
2430
2426
|
drafts?: RawDraft
|
|
2431
2427
|
nonStandard?: RawNonStandard
|
|
2432
2428
|
pseudoClasses?: RawLightningCssPseudoClasses
|
|
@@ -2608,9 +2604,10 @@ export interface RawOptions {
|
|
|
2608
2604
|
module: RawModuleOptions
|
|
2609
2605
|
optimization: RawOptimizationOptions
|
|
2610
2606
|
stats: RawStatsOptions
|
|
2611
|
-
cache:
|
|
2607
|
+
cache: RawCacheOptions
|
|
2612
2608
|
experiments: RawExperiments
|
|
2613
2609
|
node?: RawNodeOption
|
|
2610
|
+
profile: boolean
|
|
2614
2611
|
amd?: string
|
|
2615
2612
|
bail: boolean
|
|
2616
2613
|
__references: Record<string, any>
|
|
@@ -2646,6 +2643,7 @@ export interface RawOutputOptions {
|
|
|
2646
2643
|
module: boolean
|
|
2647
2644
|
chunkLoading: string | false
|
|
2648
2645
|
chunkLoadTimeout: number
|
|
2646
|
+
charset: boolean
|
|
2649
2647
|
enabledChunkLoadingTypes?: Array<string>
|
|
2650
2648
|
trustedTypes?: RawTrustedTypes
|
|
2651
2649
|
sourceMapFilename: string
|
|
@@ -2790,6 +2788,10 @@ export interface RawRslibPluginOptions {
|
|
|
2790
2788
|
forceNodeShims?: boolean
|
|
2791
2789
|
}
|
|
2792
2790
|
|
|
2791
|
+
export interface RawRspackFuture {
|
|
2792
|
+
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2793
2795
|
export interface RawRstestPluginOptions {
|
|
2794
2796
|
injectModulePathName: boolean
|
|
2795
2797
|
importMetaPathName: boolean
|
|
@@ -2836,12 +2838,6 @@ export interface RawSizeLimitsPluginOptions {
|
|
|
2836
2838
|
maxEntrypointSize?: number
|
|
2837
2839
|
}
|
|
2838
2840
|
|
|
2839
|
-
export interface RawSnapshotOptions {
|
|
2840
|
-
immutablePaths: Array<string|RegExp>
|
|
2841
|
-
unmanagedPaths: Array<string|RegExp>
|
|
2842
|
-
managedPaths: Array<string|RegExp>
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
2841
|
export interface RawSplitChunkSizes {
|
|
2846
2842
|
sizes: Record<string, number>
|
|
2847
2843
|
}
|
|
@@ -4,9 +4,12 @@ function __webpack_require__(moduleId) {
|
|
|
4
4
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
5
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
6
|
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
+
id: moduleId,
|
|
8
|
+
loaded: false,
|
|
7
9
|
exports: {}
|
|
8
10
|
};
|
|
9
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
11
|
+
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
12
|
+
module.loaded = true;
|
|
10
13
|
return module.exports;
|
|
11
14
|
}
|
|
12
15
|
__webpack_require__.m = __webpack_modules__;
|
|
@@ -55,4 +58,11 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
55
58
|
});
|
|
56
59
|
};
|
|
57
60
|
})();
|
|
61
|
+
(()=>{
|
|
62
|
+
__webpack_require__.nmd = (module)=>{
|
|
63
|
+
module.paths = [];
|
|
64
|
+
if (!module.children) module.children = [];
|
|
65
|
+
return module;
|
|
66
|
+
};
|
|
67
|
+
})();
|
|
58
68
|
export { __webpack_require__ };
|
|
@@ -85,7 +85,6 @@ export const JsCompilation = __napiModule.exports.JsCompilation
|
|
|
85
85
|
export const JsCompiler = __napiModule.exports.JsCompiler
|
|
86
86
|
export const JsContextModuleFactoryAfterResolveData = __napiModule.exports.JsContextModuleFactoryAfterResolveData
|
|
87
87
|
export const JsContextModuleFactoryBeforeResolveData = __napiModule.exports.JsContextModuleFactoryBeforeResolveData
|
|
88
|
-
export const JsCoordinator = __napiModule.exports.JsCoordinator
|
|
89
88
|
export const JsDependencies = __napiModule.exports.JsDependencies
|
|
90
89
|
export const JsEntries = __napiModule.exports.JsEntries
|
|
91
90
|
export const JsExportsInfo = __napiModule.exports.JsExportsInfo
|
|
Binary file
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function _exports(): void;
|
|
2
|
+
export = _exports;
|
|
@@ -117,6 +117,7 @@ export type KnownStatsModule = {
|
|
|
117
117
|
failed?: boolean;
|
|
118
118
|
errors?: number;
|
|
119
119
|
warnings?: number;
|
|
120
|
+
profile?: StatsProfile;
|
|
120
121
|
reasons?: StatsModuleReason[];
|
|
121
122
|
usedExports?: boolean | string[] | null;
|
|
122
123
|
providedExports?: string[] | null;
|
|
@@ -126,6 +127,7 @@ export type KnownStatsModule = {
|
|
|
126
127
|
filteredModules?: number;
|
|
127
128
|
source?: string | Buffer;
|
|
128
129
|
};
|
|
130
|
+
export type StatsProfile = KnownStatsProfile & Record<string, any>;
|
|
129
131
|
export type KnownStatsProfile = {
|
|
130
132
|
total: number;
|
|
131
133
|
resolving: number;
|
|
@@ -295,6 +297,7 @@ export type SimpleExtractors = {
|
|
|
295
297
|
module: ExtractorsByOption<binding.JsStatsModule, StatsModule>;
|
|
296
298
|
module$visible: ExtractorsByOption<binding.JsStatsModule, StatsModule>;
|
|
297
299
|
moduleIssuer: ExtractorsByOption<binding.JsStatsModuleIssuer, StatsModuleIssuer>;
|
|
300
|
+
profile: ExtractorsByOption<binding.JsStatsModuleProfile, StatsProfile>;
|
|
298
301
|
moduleReason: ExtractorsByOption<binding.JsStatsModuleReason, StatsModuleReason>;
|
|
299
302
|
chunk: ExtractorsByOption<binding.JsStatsChunk, KnownStatsChunk>;
|
|
300
303
|
chunkOrigin: ExtractorsByOption<JsOriginRecord, StatsChunkOrigin>;
|