@rspack-canary/browser 1.7.3-canary-2f0bc179-20260118174706 → 1.7.3-canary-965a4980-20260119085659
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 +1 -0
- 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 +2 -4
- 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/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +13 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +14 -0
- package/dist/builtin-plugin/rsc/index.d.ts +24 -0
- package/dist/config/normalization.d.ts +4 -32
- package/dist/config/types.d.ts +56 -145
- package/dist/exports.d.ts +4 -15
- package/dist/index.js +35029 -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 +34 -30
- package/dist/rslib-runtime.js +29 -0
- package/dist/rspack.wasi-browser.js +1 -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 +2 -2
- package/dist/index.mjs +0 -67326
- 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
|
@@ -95,6 +95,8 @@ export interface JsSource {
|
|
|
95
95
|
source: string | Buffer
|
|
96
96
|
map?: string
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
export type CompilerId = void;
|
|
98
100
|
/* -- banner.d.ts end -- */
|
|
99
101
|
|
|
100
102
|
/* -- napi-rs generated below -- */
|
|
@@ -334,6 +336,7 @@ export declare class JsCompiler {
|
|
|
334
336
|
rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
|
|
335
337
|
close(): Promise<void>
|
|
336
338
|
getVirtualFileStore(): VirtualFileStore | null
|
|
339
|
+
getCompilerId(): ExternalObject<CompilerId>
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
export declare class JsContextModuleFactoryAfterResolveData {
|
|
@@ -361,6 +364,10 @@ export declare class JsContextModuleFactoryBeforeResolveData {
|
|
|
361
364
|
set recursive(recursive: boolean)
|
|
362
365
|
}
|
|
363
366
|
|
|
367
|
+
export declare class JsCoordinator {
|
|
368
|
+
constructor(getServerCompilerIdJsFn: () => ExternalObject<CompilerId>)
|
|
369
|
+
}
|
|
370
|
+
|
|
364
371
|
export declare class JsDependencies {
|
|
365
372
|
get fileDependencies(): Array<string>
|
|
366
373
|
get addedFileDependencies(): Array<string>
|
|
@@ -602,7 +609,9 @@ export declare enum BuiltinPluginName {
|
|
|
602
609
|
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
603
610
|
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
604
611
|
HttpUriPlugin = 'HttpUriPlugin',
|
|
605
|
-
CssChunkingPlugin = 'CssChunkingPlugin'
|
|
612
|
+
CssChunkingPlugin = 'CssChunkingPlugin',
|
|
613
|
+
RscServerPlugin = 'RscServerPlugin',
|
|
614
|
+
RscClientPlugin = 'RscClientPlugin'
|
|
606
615
|
}
|
|
607
616
|
|
|
608
617
|
export declare function cleanupGlobalTrace(): void
|
|
@@ -1028,6 +1037,15 @@ export interface JsResourceData {
|
|
|
1028
1037
|
descriptionFilePath?: string
|
|
1029
1038
|
}
|
|
1030
1039
|
|
|
1040
|
+
export interface JsRscClientPluginOptions {
|
|
1041
|
+
coordinator: JsCoordinator
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export interface JsRscServerPluginOptions {
|
|
1045
|
+
coordinator: JsCoordinator
|
|
1046
|
+
onServerComponentChanges?: (() => void) | undefined | null
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1031
1049
|
export interface JsRsdoctorAsset {
|
|
1032
1050
|
ukey: number
|
|
1033
1051
|
path: string
|
|
@@ -1399,7 +1417,6 @@ export interface JsStatsModuleCommonAttributes {
|
|
|
1399
1417
|
failed?: boolean
|
|
1400
1418
|
errors?: number
|
|
1401
1419
|
warnings?: number
|
|
1402
|
-
profile?: JsStatsModuleProfile
|
|
1403
1420
|
chunks?: Array<string>
|
|
1404
1421
|
assets?: Array<string>
|
|
1405
1422
|
reasons?: Array<JsStatsModuleReason>
|
|
@@ -1824,11 +1841,17 @@ export interface RawCacheGroupOptions {
|
|
|
1824
1841
|
usedExports?: boolean
|
|
1825
1842
|
}
|
|
1826
1843
|
|
|
1827
|
-
export interface
|
|
1828
|
-
type: string
|
|
1844
|
+
export interface RawCacheOptionsMemory {
|
|
1829
1845
|
maxGenerations?: number
|
|
1830
1846
|
}
|
|
1831
1847
|
|
|
1848
|
+
export interface RawCacheOptionsPersistent {
|
|
1849
|
+
buildDependencies?: Array<string>
|
|
1850
|
+
version?: string
|
|
1851
|
+
snapshot?: RawSnapshotOptions
|
|
1852
|
+
storage?: RawStorageOptions
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1832
1855
|
export interface RawCircularDependencyRspackPluginOptions {
|
|
1833
1856
|
failOnError?: boolean
|
|
1834
1857
|
exclude?: RegExp
|
|
@@ -2124,30 +2147,13 @@ export interface RawEvalDevToolModulePluginOptions {
|
|
|
2124
2147
|
sourceUrlComment?: string
|
|
2125
2148
|
}
|
|
2126
2149
|
|
|
2127
|
-
export interface RawExperimentCacheOptionsPersistent {
|
|
2128
|
-
buildDependencies?: Array<string>
|
|
2129
|
-
version?: string
|
|
2130
|
-
snapshot?: RawExperimentSnapshotOptions
|
|
2131
|
-
storage?: RawStorageOptions
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
2150
|
export interface RawExperiments {
|
|
2135
|
-
topLevelAwait: boolean
|
|
2136
2151
|
incremental?: false | { [key: string]: boolean }
|
|
2137
|
-
rspackFuture?: RawRspackFuture
|
|
2138
|
-
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
2139
2152
|
useInputFileSystem?: false | Array<RegExp>
|
|
2140
2153
|
css?: boolean
|
|
2141
|
-
lazyBarrel: boolean
|
|
2142
2154
|
deferImport: boolean
|
|
2143
2155
|
}
|
|
2144
2156
|
|
|
2145
|
-
export interface RawExperimentSnapshotOptions {
|
|
2146
|
-
immutablePaths: Array<string|RegExp>
|
|
2147
|
-
unmanagedPaths: Array<string|RegExp>
|
|
2148
|
-
managedPaths: Array<string|RegExp>
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
2157
|
export interface RawExposeOptions {
|
|
2152
2158
|
key: string
|
|
2153
2159
|
name?: string
|
|
@@ -2242,7 +2248,6 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
2242
2248
|
chunks?: Array<string>
|
|
2243
2249
|
excludeChunks?: Array<string>
|
|
2244
2250
|
chunksSortMode: "auto" | "manual"
|
|
2245
|
-
sri?: "sha256" | "sha384" | "sha512"
|
|
2246
2251
|
minify?: boolean
|
|
2247
2252
|
title?: string
|
|
2248
2253
|
favicon?: string
|
|
@@ -2422,7 +2427,6 @@ export interface RawLightningCssMinimizerOptions {
|
|
|
2422
2427
|
targets?: Array<string>
|
|
2423
2428
|
include?: number
|
|
2424
2429
|
exclude?: number
|
|
2425
|
-
draft?: RawDraft
|
|
2426
2430
|
drafts?: RawDraft
|
|
2427
2431
|
nonStandard?: RawNonStandard
|
|
2428
2432
|
pseudoClasses?: RawLightningCssPseudoClasses
|
|
@@ -2604,10 +2608,9 @@ export interface RawOptions {
|
|
|
2604
2608
|
module: RawModuleOptions
|
|
2605
2609
|
optimization: RawOptimizationOptions
|
|
2606
2610
|
stats: RawStatsOptions
|
|
2607
|
-
cache:
|
|
2611
|
+
cache: boolean | { type: "memory" } | ({ type: "persistent" } & RawCacheOptionsPersistent)
|
|
2608
2612
|
experiments: RawExperiments
|
|
2609
2613
|
node?: RawNodeOption
|
|
2610
|
-
profile: boolean
|
|
2611
2614
|
amd?: string
|
|
2612
2615
|
bail: boolean
|
|
2613
2616
|
__references: Record<string, any>
|
|
@@ -2643,7 +2646,6 @@ export interface RawOutputOptions {
|
|
|
2643
2646
|
module: boolean
|
|
2644
2647
|
chunkLoading: string | false
|
|
2645
2648
|
chunkLoadTimeout: number
|
|
2646
|
-
charset: boolean
|
|
2647
2649
|
enabledChunkLoadingTypes?: Array<string>
|
|
2648
2650
|
trustedTypes?: RawTrustedTypes
|
|
2649
2651
|
sourceMapFilename: string
|
|
@@ -2788,10 +2790,6 @@ export interface RawRslibPluginOptions {
|
|
|
2788
2790
|
forceNodeShims?: boolean
|
|
2789
2791
|
}
|
|
2790
2792
|
|
|
2791
|
-
export interface RawRspackFuture {
|
|
2792
|
-
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
2793
|
export interface RawRstestPluginOptions {
|
|
2796
2794
|
injectModulePathName: boolean
|
|
2797
2795
|
importMetaPathName: boolean
|
|
@@ -2838,6 +2836,12 @@ export interface RawSizeLimitsPluginOptions {
|
|
|
2838
2836
|
maxEntrypointSize?: number
|
|
2839
2837
|
}
|
|
2840
2838
|
|
|
2839
|
+
export interface RawSnapshotOptions {
|
|
2840
|
+
immutablePaths: Array<string|RegExp>
|
|
2841
|
+
unmanagedPaths: Array<string|RegExp>
|
|
2842
|
+
managedPaths: Array<string|RegExp>
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2841
2845
|
export interface RawSplitChunkSizes {
|
|
2842
2846
|
sizes: Record<string, number>
|
|
2843
2847
|
}
|
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__ };
|
|
@@ -85,6 +85,7 @@ 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
|
|
88
89
|
export const JsDependencies = __napiModule.exports.JsDependencies
|
|
89
90
|
export const JsEntries = __napiModule.exports.JsEntries
|
|
90
91
|
export const JsExportsInfo = __napiModule.exports.JsExportsInfo
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.7.3-canary-
|
|
3
|
+
"version": "1.7.3-canary-965a4980-20260119085659",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@rspack/lite-tapable": "1.1.0",
|
|
35
35
|
"@swc/types": "0.1.25",
|
|
36
36
|
"@types/watchpack": "^2.4.5",
|
|
37
|
-
"memfs": "4.
|
|
37
|
+
"memfs": "4.51.1",
|
|
38
38
|
"webpack-sources": "3.3.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|