@rspack/browser 1.7.2 → 2.0.0-canary-20260116
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/MultiCompiler.d.ts +1 -1
- package/dist/builtin-loader/lightningcss/index.d.ts +0 -5
- package/dist/builtin-loader/swc/types.d.ts +0 -6
- 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 +0 -5
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -5
- package/dist/builtin-plugin/RuntimePlugin.d.ts +0 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/options.d.ts +0 -5
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -5
- package/dist/config/normalization.d.ts +4 -32
- package/dist/config/types.d.ts +56 -145
- package/dist/exports.d.ts +2 -14
- package/dist/index.js +34866 -0
- package/dist/{index.mjs.LICENSE.txt → index.js.LICENSE.txt} +0 -7
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +2 -2
- package/dist/napi-binding.d.ts +15 -29
- package/dist/rslib-runtime.js +29 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -2
- package/dist/stats/statsFactoryUtils.d.ts +0 -3
- package/package.json +1 -1
- package/dist/index.mjs +0 -67275
- package/dist/rslib-runtime.mjs +0 -68
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 (library.type, 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 (library.type).
|
|
64
64
|
*/
|
|
65
65
|
sourceType?: DllReferencePluginOptionsSourceType;
|
|
66
66
|
/**
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -1399,7 +1399,6 @@ export interface JsStatsModuleCommonAttributes {
|
|
|
1399
1399
|
failed?: boolean
|
|
1400
1400
|
errors?: number
|
|
1401
1401
|
warnings?: number
|
|
1402
|
-
profile?: JsStatsModuleProfile
|
|
1403
1402
|
chunks?: Array<string>
|
|
1404
1403
|
assets?: Array<string>
|
|
1405
1404
|
reasons?: Array<JsStatsModuleReason>
|
|
@@ -1824,11 +1823,17 @@ export interface RawCacheGroupOptions {
|
|
|
1824
1823
|
usedExports?: boolean
|
|
1825
1824
|
}
|
|
1826
1825
|
|
|
1827
|
-
export interface
|
|
1828
|
-
type: string
|
|
1826
|
+
export interface RawCacheOptionsMemory {
|
|
1829
1827
|
maxGenerations?: number
|
|
1830
1828
|
}
|
|
1831
1829
|
|
|
1830
|
+
export interface RawCacheOptionsPersistent {
|
|
1831
|
+
buildDependencies?: Array<string>
|
|
1832
|
+
version?: string
|
|
1833
|
+
snapshot?: RawSnapshotOptions
|
|
1834
|
+
storage?: RawStorageOptions
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1832
1837
|
export interface RawCircularDependencyRspackPluginOptions {
|
|
1833
1838
|
failOnError?: boolean
|
|
1834
1839
|
exclude?: RegExp
|
|
@@ -2124,30 +2129,13 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
2124
2129
|
sourceUrlComment?: string
|
|
2125
2130
|
}
|
|
2126
2131
|
|
|
2127
|
-
export interface RawExperimentCacheOptionsPersistent {
|
|
2128
|
-
buildDependencies?: Array<string>
|
|
2129
|
-
version?: string
|
|
2130
|
-
snapshot?: RawExperimentSnapshotOptions
|
|
2131
|
-
storage?: RawStorageOptions
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
2132
|
export interface RawExperiments {
|
|
2135
|
-
topLevelAwait: boolean
|
|
2136
2133
|
incremental?: false | { [key: string]: boolean }
|
|
2137
|
-
rspackFuture?: RawRspackFuture
|
|
2138
|
-
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
2139
2134
|
useInputFileSystem?: false | Array<RegExp>
|
|
2140
2135
|
css?: boolean
|
|
2141
|
-
lazyBarrel: boolean
|
|
2142
2136
|
deferImport: boolean
|
|
2143
2137
|
}
|
|
2144
2138
|
|
|
2145
|
-
export interface RawExperimentSnapshotOptions {
|
|
2146
|
-
immutablePaths: Array<string|RegExp>
|
|
2147
|
-
unmanagedPaths: Array<string|RegExp>
|
|
2148
|
-
managedPaths: Array<string|RegExp>
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
2139
|
export interface RawExposeOptions {
|
|
2152
2140
|
key: string
|
|
2153
2141
|
name?: string
|
|
@@ -2242,7 +2230,6 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
2242
2230
|
chunks?: Array<string>
|
|
2243
2231
|
excludeChunks?: Array<string>
|
|
2244
2232
|
chunksSortMode: "auto" | "manual"
|
|
2245
|
-
sri?: "sha256" | "sha384" | "sha512"
|
|
2246
2233
|
minify?: boolean
|
|
2247
2234
|
title?: string
|
|
2248
2235
|
favicon?: string
|
|
@@ -2422,7 +2409,6 @@ export interface RawLightningCssMinimizerOptions {
|
|
|
2422
2409
|
targets?: Array<string>
|
|
2423
2410
|
include?: number
|
|
2424
2411
|
exclude?: number
|
|
2425
|
-
draft?: RawDraft
|
|
2426
2412
|
drafts?: RawDraft
|
|
2427
2413
|
nonStandard?: RawNonStandard
|
|
2428
2414
|
pseudoClasses?: RawLightningCssPseudoClasses
|
|
@@ -2604,10 +2590,9 @@ export interface RawOptions {
|
|
|
2604
2590
|
module: RawModuleOptions
|
|
2605
2591
|
optimization: RawOptimizationOptions
|
|
2606
2592
|
stats: RawStatsOptions
|
|
2607
|
-
cache:
|
|
2593
|
+
cache: boolean | { type: "memory" } | ({ type: "persistent" } & RawCacheOptionsPersistent)
|
|
2608
2594
|
experiments: RawExperiments
|
|
2609
2595
|
node?: RawNodeOption
|
|
2610
|
-
profile: boolean
|
|
2611
2596
|
amd?: string
|
|
2612
2597
|
bail: boolean
|
|
2613
2598
|
__references: Record<string, any>
|
|
@@ -2643,7 +2628,6 @@ export interface RawOutputOptions {
|
|
|
2643
2628
|
module: boolean
|
|
2644
2629
|
chunkLoading: string | false
|
|
2645
2630
|
chunkLoadTimeout: number
|
|
2646
|
-
charset: boolean
|
|
2647
2631
|
enabledChunkLoadingTypes?: Array<string>
|
|
2648
2632
|
trustedTypes?: RawTrustedTypes
|
|
2649
2633
|
sourceMapFilename: string
|
|
@@ -2788,10 +2772,6 @@ export interface RawRslibPluginOptions {
|
|
|
2788
2772
|
forceNodeShims?: boolean
|
|
2789
2773
|
}
|
|
2790
2774
|
|
|
2791
|
-
export interface RawRspackFuture {
|
|
2792
|
-
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
2775
|
export interface RawRstestPluginOptions {
|
|
2796
2776
|
injectModulePathName: boolean
|
|
2797
2777
|
importMetaPathName: boolean
|
|
@@ -2838,6 +2818,12 @@ export interface RawSizeLimitsPluginOptions {
|
|
|
2838
2818
|
maxEntrypointSize?: number
|
|
2839
2819
|
}
|
|
2840
2820
|
|
|
2821
|
+
export interface RawSnapshotOptions {
|
|
2822
|
+
immutablePaths: Array<string|RegExp>
|
|
2823
|
+
unmanagedPaths: Array<string|RegExp>
|
|
2824
|
+
managedPaths: Array<string|RegExp>
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2841
2827
|
export interface RawSplitChunkSizes {
|
|
2842
2828
|
sizes: Record<string, number>
|
|
2843
2829
|
}
|
package/dist/rslib-runtime.js
CHANGED
|
@@ -15,6 +15,15 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
15
15
|
Object.assign(__webpack_require__.m, modules);
|
|
16
16
|
};
|
|
17
17
|
})();
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.n = (module)=>{
|
|
20
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
21
|
+
__webpack_require__.d(getter, {
|
|
22
|
+
a: getter
|
|
23
|
+
});
|
|
24
|
+
return getter;
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
18
27
|
(()=>{
|
|
19
28
|
__webpack_require__.d = (exports, definition)=>{
|
|
20
29
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
@@ -23,7 +32,27 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
23
32
|
});
|
|
24
33
|
};
|
|
25
34
|
})();
|
|
35
|
+
(()=>{
|
|
36
|
+
__webpack_require__.g = (()=>{
|
|
37
|
+
if ('object' == typeof globalThis) return globalThis;
|
|
38
|
+
try {
|
|
39
|
+
return this || new Function('return this')();
|
|
40
|
+
} catch (e) {
|
|
41
|
+
if ('object' == typeof window) return window;
|
|
42
|
+
}
|
|
43
|
+
})();
|
|
44
|
+
})();
|
|
26
45
|
(()=>{
|
|
27
46
|
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
28
47
|
})();
|
|
48
|
+
(()=>{
|
|
49
|
+
__webpack_require__.r = (exports)=>{
|
|
50
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
51
|
+
value: 'Module'
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, '__esModule', {
|
|
54
|
+
value: true
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
})();
|
|
29
58
|
export { __webpack_require__ };
|
|
Binary file
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export = _exports;
|
|
1
|
+
export default function _default(): void;
|
|
@@ -117,7 +117,6 @@ export type KnownStatsModule = {
|
|
|
117
117
|
failed?: boolean;
|
|
118
118
|
errors?: number;
|
|
119
119
|
warnings?: number;
|
|
120
|
-
profile?: StatsProfile;
|
|
121
120
|
reasons?: StatsModuleReason[];
|
|
122
121
|
usedExports?: boolean | string[] | null;
|
|
123
122
|
providedExports?: string[] | null;
|
|
@@ -127,7 +126,6 @@ export type KnownStatsModule = {
|
|
|
127
126
|
filteredModules?: number;
|
|
128
127
|
source?: string | Buffer;
|
|
129
128
|
};
|
|
130
|
-
export type StatsProfile = KnownStatsProfile & Record<string, any>;
|
|
131
129
|
export type KnownStatsProfile = {
|
|
132
130
|
total: number;
|
|
133
131
|
resolving: number;
|
|
@@ -297,7 +295,6 @@ export type SimpleExtractors = {
|
|
|
297
295
|
module: ExtractorsByOption<binding.JsStatsModule, StatsModule>;
|
|
298
296
|
module$visible: ExtractorsByOption<binding.JsStatsModule, StatsModule>;
|
|
299
297
|
moduleIssuer: ExtractorsByOption<binding.JsStatsModuleIssuer, StatsModuleIssuer>;
|
|
300
|
-
profile: ExtractorsByOption<binding.JsStatsModuleProfile, StatsProfile>;
|
|
301
298
|
moduleReason: ExtractorsByOption<binding.JsStatsModuleReason, StatsModuleReason>;
|
|
302
299
|
chunk: ExtractorsByOption<binding.JsStatsChunk, KnownStatsChunk>;
|
|
303
300
|
chunkOrigin: ExtractorsByOption<JsOriginRecord, StatsChunkOrigin>;
|
package/package.json
CHANGED