@rspack-canary/core 1.7.0-canary-4941195f-20251224083309 → 1.7.0-canary-08772c3f-20251224173339
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 +3 -1
- package/dist/builtin-loader/swc/types.d.ts +6 -4
- package/dist/builtin-plugin/{WarnCaseSensitiveModulesPlugin.d.ts → CaseSensitivePlugin.d.ts} +1 -1
- package/dist/builtin-plugin/index.d.ts +1 -5
- package/dist/config/defaults.d.ts +10 -1
- package/dist/config/target.d.ts +6 -6
- package/dist/config/types.d.ts +1 -0
- package/dist/exports.d.ts +7 -5
- package/dist/index.js +104 -159
- package/dist/rspack.d.ts +9 -0
- package/dist/util/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +0 -8
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +0 -10
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +0 -10
- package/dist/builtin-plugin/rsc/index.d.ts +0 -19
package/dist/Compiler.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import type { CompilationParams } from "./Compilation";
|
|
|
16
16
|
import { Compilation } from "./Compilation";
|
|
17
17
|
import { ContextModuleFactory } from "./ContextModuleFactory";
|
|
18
18
|
import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from "./config";
|
|
19
|
+
import type { PlatformTargetProperties } from "./config/target";
|
|
19
20
|
import type { FileSystemInfoEntry } from "./FileSystemInfo";
|
|
20
21
|
import { rspack } from "./index";
|
|
21
22
|
import Cache from "./lib/Cache";
|
|
@@ -78,7 +79,6 @@ export type CompilerHooks = {
|
|
|
78
79
|
entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
|
|
79
80
|
additionalPass: liteTapable.AsyncSeriesHook<[]>;
|
|
80
81
|
};
|
|
81
|
-
export declare const GET_COMPILER_ID: unique symbol;
|
|
82
82
|
declare class Compiler {
|
|
83
83
|
#private;
|
|
84
84
|
hooks: CompilerHooks;
|
|
@@ -127,6 +127,8 @@ declare class Compiler {
|
|
|
127
127
|
get managedPaths(): never;
|
|
128
128
|
get immutablePaths(): never;
|
|
129
129
|
get _lastCompilation(): Compilation | undefined;
|
|
130
|
+
get platform(): PlatformTargetProperties;
|
|
131
|
+
set platform(platform: PlatformTargetProperties);
|
|
130
132
|
/**
|
|
131
133
|
* Note: This is not a webpack public API, maybe removed in future.
|
|
132
134
|
* @internal
|
|
@@ -10,6 +10,11 @@ export type SwcLoaderTsParserConfig = TsParserConfig;
|
|
|
10
10
|
export type SwcLoaderTransformConfig = TransformConfig;
|
|
11
11
|
export type SwcLoaderOptions = Config & {
|
|
12
12
|
isModule?: boolean | "unknown";
|
|
13
|
+
/**
|
|
14
|
+
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
|
15
|
+
* providing better TypeScript development experience and smaller output bundle size.
|
|
16
|
+
*/
|
|
17
|
+
collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
|
|
13
18
|
/**
|
|
14
19
|
* Experimental features provided by Rspack.
|
|
15
20
|
* @experimental
|
|
@@ -17,14 +22,11 @@ export type SwcLoaderOptions = Config & {
|
|
|
17
22
|
rspackExperiments?: {
|
|
18
23
|
import?: PluginImportOptions;
|
|
19
24
|
/**
|
|
25
|
+
* @deprecated Use top-level `collectTypeScriptInfo` instead.
|
|
20
26
|
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
|
21
27
|
* providing better TypeScript development experience and smaller output bundle size.
|
|
22
28
|
*/
|
|
23
29
|
collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
|
|
24
|
-
/**
|
|
25
|
-
* Enable React Server Components support.
|
|
26
|
-
*/
|
|
27
|
-
reactServerComponents?: boolean;
|
|
28
30
|
};
|
|
29
31
|
};
|
|
30
32
|
export interface TerserCompressOptions {
|
|
@@ -5,6 +5,7 @@ export * from "./AsyncWebAssemblyModulesPlugin";
|
|
|
5
5
|
export * from "./BannerPlugin";
|
|
6
6
|
export * from "./BundlerInfoRspackPlugin";
|
|
7
7
|
export { createNativePlugin, RspackBuiltinPlugin } from "./base";
|
|
8
|
+
export * from "./CaseSensitivePlugin";
|
|
8
9
|
export * from "./ChunkPrefetchPreloadPlugin";
|
|
9
10
|
export * from "./CircularDependencyRspackPlugin";
|
|
10
11
|
export * from "./CommonJsChunkFormatPlugin";
|
|
@@ -72,10 +73,6 @@ export * from "./RslibPlugin";
|
|
|
72
73
|
export * from "./RstestPlugin";
|
|
73
74
|
export * from "./RuntimeChunkPlugin";
|
|
74
75
|
export * from "./RuntimePlugin";
|
|
75
|
-
export { createRscPlugins, RSC_LAYERS_NAMES } from "./rsc";
|
|
76
|
-
export * from "./rsc/Coordinator";
|
|
77
|
-
export * from "./rsc/RscClientPlugin";
|
|
78
|
-
export * from "./rsc/RscServerPlugin";
|
|
79
76
|
export * from "./SideEffectsFlagPlugin";
|
|
80
77
|
export * from "./SizeLimitsPlugin";
|
|
81
78
|
export * from "./SourceMapDevToolPlugin";
|
|
@@ -83,6 +80,5 @@ export * from "./SplitChunksPlugin";
|
|
|
83
80
|
export * from "./SubresourceIntegrityPlugin";
|
|
84
81
|
export * from "./SwcJsMinimizerPlugin";
|
|
85
82
|
export * from "./URLPlugin";
|
|
86
|
-
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
87
83
|
export * from "./WebWorkerTemplatePlugin";
|
|
88
84
|
export * from "./WorkerPlugin";
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { RspackOptionsNormalized } from "./normalization";
|
|
2
|
-
export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) =>
|
|
2
|
+
export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => {
|
|
3
|
+
platform: false | {
|
|
4
|
+
web: boolean | null | undefined;
|
|
5
|
+
browser: boolean | null | undefined;
|
|
6
|
+
webworker: boolean | null | undefined;
|
|
7
|
+
node: boolean | null | undefined;
|
|
8
|
+
nwjs: boolean | null | undefined;
|
|
9
|
+
electron: boolean | null | undefined;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
3
12
|
export declare const applyRspackOptionsBaseDefaults: (options: RspackOptionsNormalized) => void;
|
|
4
13
|
export declare const getPnpDefault: () => boolean;
|
package/dist/config/target.d.ts
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
export declare const getDefaultTarget: (context: string) => "browserslist" | "web";
|
|
6
6
|
export type PlatformTargetProperties = {
|
|
7
7
|
/** web platform, importing of http(s) and std: is available */
|
|
8
|
-
web
|
|
8
|
+
web?: boolean | null;
|
|
9
9
|
/** browser platform, running in a normal web browser */
|
|
10
|
-
browser
|
|
10
|
+
browser?: boolean | null;
|
|
11
11
|
/** (Web)Worker platform, running in a web/shared/service worker */
|
|
12
|
-
webworker
|
|
12
|
+
webworker?: boolean | null;
|
|
13
13
|
/** node platform, require of node built-in modules is available */
|
|
14
|
-
node
|
|
14
|
+
node?: boolean | null;
|
|
15
15
|
/** nwjs platform, require of legacy nw.gui is available */
|
|
16
|
-
nwjs
|
|
16
|
+
nwjs?: boolean | null;
|
|
17
17
|
/** electron platform, require of some electron built-in modules is available */
|
|
18
|
-
electron
|
|
18
|
+
electron?: boolean | null;
|
|
19
19
|
};
|
|
20
20
|
export type ElectronContextTargetProperties = {
|
|
21
21
|
/** in main context */
|
package/dist/config/types.d.ts
CHANGED
package/dist/exports.d.ts
CHANGED
|
@@ -47,7 +47,11 @@ export declare const util: {
|
|
|
47
47
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
48
48
|
};
|
|
49
49
|
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
|
|
50
|
-
export { BannerPlugin,
|
|
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";
|
|
51
55
|
export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
|
|
52
56
|
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
|
|
53
57
|
export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
|
|
@@ -55,7 +59,7 @@ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
|
55
59
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
56
60
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
57
61
|
export type { OutputFileSystem, WatchFileSystem } from "./util/fs";
|
|
58
|
-
import {
|
|
62
|
+
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
59
63
|
export { SubresourceIntegrityPlugin };
|
|
60
64
|
interface Web {
|
|
61
65
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
@@ -132,7 +136,7 @@ export declare const sharing: {
|
|
|
132
136
|
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from "./builtin-loader/lightningcss/index";
|
|
133
137
|
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
|
134
138
|
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
135
|
-
export { CircularDependencyRspackPlugin, ContextReplacementPlugin,
|
|
139
|
+
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
|
136
140
|
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from "@rspack/binding";
|
|
137
141
|
import { createNativePlugin } from "./builtin-plugin";
|
|
138
142
|
import { minify, minifySync, transform, transformSync } from "./swc";
|
|
@@ -170,7 +174,5 @@ interface Experiments {
|
|
|
170
174
|
CssChunkingPlugin: typeof CssChunkingPlugin;
|
|
171
175
|
createNativePlugin: typeof createNativePlugin;
|
|
172
176
|
VirtualModulesPlugin: typeof VirtualModulesPlugin;
|
|
173
|
-
createRscPlugins: typeof createRscPlugins;
|
|
174
|
-
RSC_LAYERS_NAMES: typeof RSC_LAYERS_NAMES;
|
|
175
177
|
}
|
|
176
178
|
export declare const experiments: Experiments;
|
package/dist/index.js
CHANGED
|
@@ -288,10 +288,8 @@ for(var __rspack_i in (()=>{
|
|
|
288
288
|
SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
|
|
289
289
|
ContextModule: ()=>binding_.ContextModule,
|
|
290
290
|
DllPlugin: ()=>DllPlugin,
|
|
291
|
-
WarnCaseSensitiveModulesPlugin: ()=>
|
|
292
|
-
Coordinator: ()=>Coordinator,
|
|
291
|
+
WarnCaseSensitiveModulesPlugin: ()=>CaseSensitivePlugin,
|
|
293
292
|
ProvidePlugin: ()=>ProvidePlugin,
|
|
294
|
-
RscClientPlugin: ()=>RscClientPlugin,
|
|
295
293
|
Template: ()=>Template,
|
|
296
294
|
container: ()=>container,
|
|
297
295
|
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
@@ -303,7 +301,6 @@ for(var __rspack_i in (()=>{
|
|
|
303
301
|
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
304
302
|
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
305
303
|
Compilation: ()=>Compilation,
|
|
306
|
-
RscServerPlugin: ()=>RscServerPlugin,
|
|
307
304
|
experiments: ()=>exports_experiments,
|
|
308
305
|
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
309
306
|
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
@@ -333,9 +330,10 @@ for(var __rspack_i in (()=>{
|
|
|
333
330
|
ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
|
|
334
331
|
MultiCompiler: ()=>MultiCompiler,
|
|
335
332
|
SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
|
|
333
|
+
CaseSensitivePlugin: ()=>CaseSensitivePlugin,
|
|
336
334
|
SubresourceIntegrityPlugin: ()=>SubresourceIntegrityPlugin,
|
|
337
|
-
library: ()=>exports_library,
|
|
338
335
|
RuntimeGlobals: ()=>DefaultRuntimeGlobals,
|
|
336
|
+
library: ()=>exports_library,
|
|
339
337
|
node: ()=>exports_node,
|
|
340
338
|
rspackVersion: ()=>exports_rspackVersion,
|
|
341
339
|
util: ()=>util,
|
|
@@ -363,13 +361,13 @@ for(var __rspack_i in (()=>{
|
|
|
363
361
|
__webpack_require__.r(exports_namespaceObject), __webpack_require__.d(exports_namespaceObject, {
|
|
364
362
|
AsyncDependenciesBlock: ()=>binding_.AsyncDependenciesBlock,
|
|
365
363
|
BannerPlugin: ()=>BannerPlugin,
|
|
364
|
+
CaseSensitivePlugin: ()=>CaseSensitivePlugin,
|
|
366
365
|
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
367
366
|
Compilation: ()=>Compilation,
|
|
368
367
|
Compiler: ()=>Compiler,
|
|
369
368
|
ConcatenatedModule: ()=>binding_.ConcatenatedModule,
|
|
370
369
|
ContextModule: ()=>binding_.ContextModule,
|
|
371
370
|
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
372
|
-
Coordinator: ()=>Coordinator,
|
|
373
371
|
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
374
372
|
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
375
373
|
DefinePlugin: ()=>DefinePlugin,
|
|
@@ -400,8 +398,6 @@ for(var __rspack_i in (()=>{
|
|
|
400
398
|
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
401
399
|
ProgressPlugin: ()=>ProgressPlugin,
|
|
402
400
|
ProvidePlugin: ()=>ProvidePlugin,
|
|
403
|
-
RscClientPlugin: ()=>RscClientPlugin,
|
|
404
|
-
RscServerPlugin: ()=>RscServerPlugin,
|
|
405
401
|
RspackOptionsApply: ()=>RspackOptionsApply,
|
|
406
402
|
RuntimeGlobals: ()=>DefaultRuntimeGlobals,
|
|
407
403
|
RuntimeModule: ()=>RuntimeModule,
|
|
@@ -413,7 +409,7 @@ for(var __rspack_i in (()=>{
|
|
|
413
409
|
SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
|
|
414
410
|
Template: ()=>Template,
|
|
415
411
|
ValidationError: ()=>ValidationError,
|
|
416
|
-
WarnCaseSensitiveModulesPlugin: ()=>
|
|
412
|
+
WarnCaseSensitiveModulesPlugin: ()=>CaseSensitivePlugin,
|
|
417
413
|
WebpackError: ()=>exports_WebpackError,
|
|
418
414
|
WebpackOptionsApply: ()=>RspackOptionsApply,
|
|
419
415
|
config: ()=>exports_config,
|
|
@@ -2048,7 +2044,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2048
2044
|
version: options.version || "unknown",
|
|
2049
2045
|
bundler: options.bundler || "rspack",
|
|
2050
2046
|
force: options.force ?? !0
|
|
2051
|
-
})), ChunkPrefetchPreloadPlugin = base_create(binding_.BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
2047
|
+
})), CaseSensitivePlugin = base_create(binding_.BuiltinPluginName.CaseSensitivePlugin, ()=>{}, "compilation"), ChunkPrefetchPreloadPlugin = base_create(binding_.BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
2052
2048
|
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
2053
2049
|
name = binding_.BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
2054
2050
|
_options;
|
|
@@ -2341,9 +2337,13 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2341
2337
|
return o.path + o.query + o.fragment;
|
|
2342
2338
|
}
|
|
2343
2339
|
let unsupported = (name, issue)=>{
|
|
2344
|
-
let s = `${name} is not supported by
|
|
2345
|
-
throw issue && (s += `
|
|
2346
|
-
},
|
|
2340
|
+
let s = `${name} is not supported by Rspack.`;
|
|
2341
|
+
throw issue && (s += ` Refer to issue ${issue} for more information.`), Error(s);
|
|
2342
|
+
}, warnedMessages = new Set();
|
|
2343
|
+
function deprecate(message) {
|
|
2344
|
+
warnedMessages.has(message) || (warnedMessages.add(message), console.warn(`[Rspack Deprecation] ${message}`));
|
|
2345
|
+
}
|
|
2346
|
+
let WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/, SEGMENTS_SPLIT_REGEXP = /([|!])/, WINDOWS_PATH_SEPARATOR_REGEXP = /\\/g, relativePathToRequest = (relativePath)=>"" === relativePath ? "./." : ".." === relativePath ? "../." : relativePath.startsWith("../") ? relativePath : `./${relativePath}`, absoluteToRequest = (context, maybeAbsolutePath)=>{
|
|
2347
2347
|
if ("/" === maybeAbsolutePath[0]) {
|
|
2348
2348
|
if (maybeAbsolutePath.length > 1 && "/" === maybeAbsolutePath[maybeAbsolutePath.length - 1]) return maybeAbsolutePath;
|
|
2349
2349
|
let querySplitPos = maybeAbsolutePath.indexOf("?"), resource = -1 === querySplitPos ? maybeAbsolutePath : maybeAbsolutePath.slice(0, querySplitPos);
|
|
@@ -2427,6 +2427,12 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2427
2427
|
query: match[2] ? match[2].replace(/\u200b(.)/g, "$1") : ""
|
|
2428
2428
|
};
|
|
2429
2429
|
});
|
|
2430
|
+
function resolveCollectTypeScriptInfo(options) {
|
|
2431
|
+
return {
|
|
2432
|
+
typeExports: options.typeExports,
|
|
2433
|
+
exportedEnum: !0 === options.exportedEnum ? "all" : !1 === options.exportedEnum || void 0 === options.exportedEnum ? "none" : "const-only"
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2430
2436
|
function toFeatures(featureOptions) {
|
|
2431
2437
|
let feature = 0;
|
|
2432
2438
|
for (let key of Reflect.ownKeys(featureOptions))if (!0 === featureOptions[key]) switch(key){
|
|
@@ -3724,33 +3730,27 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3724
3730
|
let temp = function(identifier, o, options) {
|
|
3725
3731
|
if (identifier.startsWith(`${BUILTIN_LOADER_PREFIX}swc-loader`)) return ((options, _)=>{
|
|
3726
3732
|
if (options && "object" == typeof options) {
|
|
3727
|
-
options.jsc ??= {}, options.jsc.experimental ??= {}, options.jsc.experimental.disableAllLints ??= !0;
|
|
3733
|
+
options.jsc ??= {}, options.jsc.experimental ??= {}, options.jsc.experimental.disableAllLints ??= !0, options.collectTypeScriptInfo && (options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(options.collectTypeScriptInfo));
|
|
3728
3734
|
let { rspackExperiments } = options;
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
styleLibraryDirectory: config.styleLibraryDirectory
|
|
3747
|
-
}), rawConfig;
|
|
3748
|
-
});
|
|
3749
|
-
}(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (rspackExperiments.collectTypeScriptInfo = {
|
|
3750
|
-
typeExports: (options1 = rspackExperiments.collectTypeScriptInfo).typeExports,
|
|
3751
|
-
exportedEnum: !0 === options1.exportedEnum ? "all" : !1 === options1.exportedEnum || void 0 === options1.exportedEnum ? "none" : "const-only"
|
|
3735
|
+
rspackExperiments && ((rspackExperiments.import || rspackExperiments.pluginImport) && (rspackExperiments.import = function(pluginImport) {
|
|
3736
|
+
if (pluginImport) return pluginImport.map((config)=>{
|
|
3737
|
+
let rawConfig = {
|
|
3738
|
+
...config,
|
|
3739
|
+
style: {}
|
|
3740
|
+
};
|
|
3741
|
+
if ("boolean" == typeof config.style) rawConfig.style.bool = config.style;
|
|
3742
|
+
else if ("string" == typeof config.style) {
|
|
3743
|
+
let isTpl = config.style.includes("{{");
|
|
3744
|
+
rawConfig.style[isTpl ? "custom" : "css"] = config.style;
|
|
3745
|
+
} else {
|
|
3746
|
+
var val;
|
|
3747
|
+
val = config.style, "[object Object]" === Object.prototype.toString.call(val) && (rawConfig.style = config.style);
|
|
3748
|
+
}
|
|
3749
|
+
return config.styleLibraryDirectory && (rawConfig.style = {
|
|
3750
|
+
styleLibraryDirectory: config.styleLibraryDirectory
|
|
3751
|
+
}), rawConfig;
|
|
3752
3752
|
});
|
|
3753
|
-
}
|
|
3753
|
+
}(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (deprecate("`rspackExperiments.collectTypeScriptInfo` is deprecated and will be removed in Rspack v2.0. Use top-level `collectTypeScriptInfo` instead."), options.collectTypeScriptInfo || (options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(rspackExperiments.collectTypeScriptInfo)), delete rspackExperiments.collectTypeScriptInfo));
|
|
3754
3754
|
}
|
|
3755
3755
|
return options;
|
|
3756
3756
|
})(o, 0);
|
|
@@ -4053,6 +4053,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4053
4053
|
};
|
|
4054
4054
|
if (![
|
|
4055
4055
|
"asset/source",
|
|
4056
|
+
"asset/bytes",
|
|
4056
4057
|
"javascript",
|
|
4057
4058
|
"javascript/auto",
|
|
4058
4059
|
"javascript/dynamic",
|
|
@@ -4468,9 +4469,9 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4468
4469
|
"function" == typeof next && next();
|
|
4469
4470
|
}, DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN = "The `experiments.lazyCompilation` option is deprecated, please use the configuration top level `lazyCompilation` instead.", REPEAT_LAZY_COMPILATION_OPTIONS_WARN = "Both top-level `lazyCompilation` and `experiments.lazyCompilation` options are set. The top-level `lazyCompilation` configuration will take precedence.", lazyCompilationMiddleware = (compiler)=>{
|
|
4470
4471
|
if (compiler instanceof MultiCompiler) {
|
|
4471
|
-
let middlewareByCompiler = new Map(), i = 0
|
|
4472
|
+
let middlewareByCompiler = new Map(), i = 0;
|
|
4472
4473
|
for (let c of compiler.compilers){
|
|
4473
|
-
if (c.options.experiments.lazyCompilation && (c.name ?
|
|
4474
|
+
if (c.options.experiments.lazyCompilation && (c.name ? deprecate(`The 'experiments.lazyCompilation' option in compiler named '${c.name}' is deprecated, please use the Configuration top level 'lazyCompilation' instead.`) : deprecate(DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN)), c.options.lazyCompilation && c.options.experiments.lazyCompilation && (c.name ? deprecate(`The top-level 'lazyCompilation' option in compiler named '${c.name}' will override the 'experiments.lazyCompilation' option.`) : deprecate(REPEAT_LAZY_COMPILATION_OPTIONS_WARN)), !c.options.lazyCompilation && !c.options.experiments.lazyCompilation) continue;
|
|
4474
4475
|
let options = {
|
|
4475
4476
|
...c.options.experiments.lazyCompilation,
|
|
4476
4477
|
...c.options.lazyCompilation
|
|
@@ -4489,7 +4490,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4489
4490
|
return middleware?.(req, res, next);
|
|
4490
4491
|
};
|
|
4491
4492
|
}
|
|
4492
|
-
if (compiler.options.experiments.lazyCompilation && (
|
|
4493
|
+
if (compiler.options.experiments.lazyCompilation && (deprecate(DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN), compiler.options.lazyCompilation && deprecate(REPEAT_LAZY_COMPILATION_OPTIONS_WARN)), !compiler.options.lazyCompilation && !compiler.options.experiments.lazyCompilation) return noop;
|
|
4493
4494
|
let activeModules = new Set(), options = {
|
|
4494
4495
|
...compiler.options.experiments.lazyCompilation,
|
|
4495
4496
|
...compiler.options.lazyCompilation
|
|
@@ -4622,64 +4623,6 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4622
4623
|
])
|
|
4623
4624
|
}, RuntimePlugin_compilationHooksMap.set(compilation, hooks)), hooks;
|
|
4624
4625
|
};
|
|
4625
|
-
let Coordinator_PLUGIN_NAME = "RscPlugin", GET_OR_INIT_BINDING = Symbol("GET_OR_INIT_BINDING");
|
|
4626
|
-
class Coordinator {
|
|
4627
|
-
#serverCompiler;
|
|
4628
|
-
#clientCompiler;
|
|
4629
|
-
#clientLastCompilation;
|
|
4630
|
-
#binding;
|
|
4631
|
-
constructor(){
|
|
4632
|
-
Object.defineProperty(this, GET_OR_INIT_BINDING, {
|
|
4633
|
-
enumerable: !1,
|
|
4634
|
-
configurable: !1,
|
|
4635
|
-
writable: !1,
|
|
4636
|
-
value: ()=>(this.#binding || (this.#binding = new binding_.JsCoordinator(()=>{
|
|
4637
|
-
if (!this.#serverCompiler) throw Error("[RscPlugin] Coordinator.getOrInitBinding() called before the server compiler was attached. Call coordinator.applyServerCompiler(serverCompiler) first.");
|
|
4638
|
-
return this.#serverCompiler[GET_COMPILER_ID]();
|
|
4639
|
-
})), this.#binding)
|
|
4640
|
-
});
|
|
4641
|
-
}
|
|
4642
|
-
applyServerCompiler(serverCompiler) {
|
|
4643
|
-
this.#serverCompiler = serverCompiler, serverCompiler.hooks.done.tap(Coordinator_PLUGIN_NAME, (stats)=>{
|
|
4644
|
-
this.#clientLastCompilation && (stats.compilation.fileDependencies.addAll(this.#clientLastCompilation.fileDependencies), stats.compilation.contextDependencies.addAll(this.#clientLastCompilation.contextDependencies), stats.compilation.missingDependencies.addAll(this.#clientLastCompilation.missingDependencies));
|
|
4645
|
-
}), serverCompiler.hooks.watchRun.tap(Coordinator_PLUGIN_NAME, ()=>{
|
|
4646
|
-
this.#clientCompiler.watching.invalidateWithChangesAndRemovals(new Set(this.#serverCompiler.modifiedFiles), new Set(this.#serverCompiler.removedFiles));
|
|
4647
|
-
});
|
|
4648
|
-
}
|
|
4649
|
-
applyClientCompiler(clientCompiler) {
|
|
4650
|
-
this.#clientCompiler = clientCompiler;
|
|
4651
|
-
let originalWatch = clientCompiler.watch;
|
|
4652
|
-
clientCompiler.watch = function(watchOptions, handler) {
|
|
4653
|
-
return watchOptions.ignored = ()=>!0, originalWatch.call(this, watchOptions, handler);
|
|
4654
|
-
}, clientCompiler.hooks.done.tap(Coordinator_PLUGIN_NAME, (stats)=>{
|
|
4655
|
-
this.#clientLastCompilation = stats.compilation;
|
|
4656
|
-
});
|
|
4657
|
-
}
|
|
4658
|
-
}
|
|
4659
|
-
class RscClientPlugin extends RspackBuiltinPlugin {
|
|
4660
|
-
name = "RscClientPlugin";
|
|
4661
|
-
#coordinator;
|
|
4662
|
-
constructor(coordinator){
|
|
4663
|
-
super(), this.#coordinator = coordinator;
|
|
4664
|
-
}
|
|
4665
|
-
raw(compiler) {
|
|
4666
|
-
return this.#coordinator.applyClientCompiler(compiler), createBuiltinPlugin(this.name, this.#coordinator[GET_OR_INIT_BINDING]());
|
|
4667
|
-
}
|
|
4668
|
-
}
|
|
4669
|
-
class RscServerPlugin extends RspackBuiltinPlugin {
|
|
4670
|
-
name = "RscServerPlugin";
|
|
4671
|
-
#coordinator;
|
|
4672
|
-
constructor(coordinator){
|
|
4673
|
-
super(), this.#coordinator = coordinator;
|
|
4674
|
-
}
|
|
4675
|
-
#resolve(serverCompiler) {
|
|
4676
|
-
return this.#coordinator.applyServerCompiler(serverCompiler), this.#coordinator[GET_OR_INIT_BINDING]();
|
|
4677
|
-
}
|
|
4678
|
-
raw(compiler) {
|
|
4679
|
-
let bindingOptions = this.#resolve(compiler);
|
|
4680
|
-
return createBuiltinPlugin(this.name, bindingOptions);
|
|
4681
|
-
}
|
|
4682
|
-
}
|
|
4683
4626
|
let SideEffectsFlagPlugin = base_create(binding_.BuiltinPluginName.SideEffectsFlagPlugin, ()=>{}, "compilation"), SizeLimitsPlugin = base_create(binding_.BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
4684
4627
|
let hints = !1 === options.hints ? void 0 : options.hints;
|
|
4685
4628
|
return {
|
|
@@ -4927,7 +4870,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4927
4870
|
module: options?.minimizerOptions?.module
|
|
4928
4871
|
}
|
|
4929
4872
|
};
|
|
4930
|
-
}, "compilation"), URLPlugin = base_create(binding_.BuiltinPluginName.URLPlugin, ()=>{}, "compilation")
|
|
4873
|
+
}, "compilation"), URLPlugin = base_create(binding_.BuiltinPluginName.URLPlugin, ()=>{}, "compilation");
|
|
4931
4874
|
class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
4932
4875
|
name = binding_.BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
4933
4876
|
raw(compiler) {
|
|
@@ -5846,7 +5789,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5846
5789
|
if ("function" != typeof options.entry) for (let key of Object.keys(options.entry))F(options.entry[key], "import", ()=>[
|
|
5847
5790
|
"./src"
|
|
5848
5791
|
]);
|
|
5849
|
-
F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), F(options, "lazyCompilation", ()=>!!targetProperties && !!targetProperties.web && !targetProperties.electron && !targetProperties.node && !targetProperties.nwjs && {
|
|
5792
|
+
return F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), F(options, "lazyCompilation", ()=>!!targetProperties && !!targetProperties.web && !targetProperties.electron && !targetProperties.node && !targetProperties.nwjs && {
|
|
5850
5793
|
imports: !0,
|
|
5851
5794
|
entries: !1
|
|
5852
5795
|
}), D(options, "bail", !1), F(options, "cache", ()=>development), !1 === options.cache && (options.experiments.cache = !1), applyExperimentsDefaults(options.experiments, {
|
|
@@ -5888,7 +5831,16 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5888
5831
|
targetProperties,
|
|
5889
5832
|
mode: options.mode,
|
|
5890
5833
|
css: options.experiments.css
|
|
5891
|
-
}), options.resolve), options.resolveLoader = cleverMerge(getResolveLoaderDefaults(), options.resolveLoader)
|
|
5834
|
+
}), options.resolve), options.resolveLoader = cleverMerge(getResolveLoaderDefaults(), options.resolveLoader), {
|
|
5835
|
+
platform: !1 === targetProperties ? targetProperties : {
|
|
5836
|
+
web: targetProperties.web,
|
|
5837
|
+
browser: targetProperties.browser,
|
|
5838
|
+
webworker: targetProperties.webworker,
|
|
5839
|
+
node: targetProperties.node,
|
|
5840
|
+
nwjs: targetProperties.nwjs,
|
|
5841
|
+
electron: targetProperties.electron
|
|
5842
|
+
}
|
|
5843
|
+
};
|
|
5892
5844
|
}, applyInfrastructureLoggingDefaults = (infrastructureLogging)=>{
|
|
5893
5845
|
F(infrastructureLogging, "stream", ()=>process.stderr);
|
|
5894
5846
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
@@ -5896,7 +5848,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5896
5848
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5897
5849
|
F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !0), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
|
|
5898
5850
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5899
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-
|
|
5851
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-08772c3f-20251224173339"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5900
5852
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, deferImport })=>{
|
|
5901
5853
|
if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { deferImport })=>{
|
|
5902
5854
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
@@ -6028,6 +5980,11 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6028
5980
|
type: "text"
|
|
6029
5981
|
},
|
|
6030
5982
|
type: "asset/source"
|
|
5983
|
+
}, {
|
|
5984
|
+
with: {
|
|
5985
|
+
type: "bytes"
|
|
5986
|
+
},
|
|
5987
|
+
type: "asset/bytes"
|
|
6031
5988
|
}), rules;
|
|
6032
5989
|
});
|
|
6033
5990
|
}, applyOutputDefaults = (output, { context, outputModule, targetProperties: tp, isAffectedByBrowserslist, entry })=>{
|
|
@@ -6376,7 +6333,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6376
6333
|
main: {}
|
|
6377
6334
|
} : "function" == typeof config.entry ? (fn = config.entry, ()=>Promise.resolve().then(fn).then(getNormalizedEntryStatic)) : getNormalizedEntryStatic(config.entry),
|
|
6378
6335
|
output: nestedConfig(config.output, (output)=>{
|
|
6379
|
-
"cssHeadDataCompression" in output &&
|
|
6336
|
+
"cssHeadDataCompression" in output && deprecate("cssHeadDataCompression is not used now, see https://github.com/web-infra-dev/rspack/pull/8534, this option could be removed in the future");
|
|
6380
6337
|
let { library } = output, libraryBase = "object" == typeof library && library && !Array.isArray(library) && "type" in library ? library : library || output.libraryTarget ? {
|
|
6381
6338
|
name: library
|
|
6382
6339
|
} : void 0;
|
|
@@ -6515,7 +6472,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6515
6472
|
plugins: nestedArray(config.plugins, (p)=>[
|
|
6516
6473
|
...p
|
|
6517
6474
|
]),
|
|
6518
|
-
experiments: nestedConfig(config.experiments, (experiments)=>(experiments.layers &&
|
|
6475
|
+
experiments: nestedConfig(config.experiments, (experiments)=>(experiments.layers && deprecate("`experiments.layers` config is deprecated and will be removed in Rspack v2.0. Feature layers will always be enabled. Remove this option from your Rspack configuration."), !1 === experiments.topLevelAwait && deprecate("`experiments.topLevelAwait` config is deprecated and will be removed in Rspack v2.0. Top-level await will always be enabled. Remove this option from your Rspack configuration."), experiments.lazyBarrel && deprecate("`experiments.lazyBarrel` config is deprecated and will be removed in Rspack v2.0. Lazy barrel is already stable and enabled by default. Remove this option from your Rspack configuration."), experiments.inlineConst && deprecate("`experiments.inlineConst` config is deprecated and will be removed in Rspack v2.0. Inline Const is already stable and enabled by default. Remove this option from your Rspack configuration."), experiments.inlineEnum && deprecate("`experiments.inlineEnum` config is deprecated and will be removed in Rspack v2.0. Inline Enum is already stable. Remove this option from your Rspack configuration."), experiments.typeReexportsPresence && deprecate("`experiments.typeReexportsPresence` config is deprecated and will be removed in Rspack v2.0. typeReexportsPresence is already stable. Remove this option from your Rspack configuration."), {
|
|
6519
6476
|
...experiments,
|
|
6520
6477
|
cache: optionalNestedConfig(experiments.cache, (cache)=>{
|
|
6521
6478
|
if ("boolean" == typeof cache || "memory" === cache.type) return cache;
|
|
@@ -7662,7 +7619,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7662
7619
|
});
|
|
7663
7620
|
}
|
|
7664
7621
|
}
|
|
7665
|
-
let CORE_VERSION = "1.7.0-canary-
|
|
7622
|
+
let CORE_VERSION = "1.7.0-canary-08772c3f-20251224173339", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7666
7623
|
|
|
7667
7624
|
Help:
|
|
7668
7625
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -7890,21 +7847,21 @@ Help:
|
|
|
7890
7847
|
let startTime = this.startTime;
|
|
7891
7848
|
this.startTime = void 0, compilation.startTime = startTime, compilation.endTime = Date.now();
|
|
7892
7849
|
let cbs = this.callbacks;
|
|
7893
|
-
this.callbacks = []
|
|
7850
|
+
this.callbacks = [];
|
|
7851
|
+
let fileDependencies = new Set([
|
|
7852
|
+
...compilation.fileDependencies
|
|
7853
|
+
]);
|
|
7854
|
+
fileDependencies.added = new Set(compilation.__internal__addedFileDependencies), fileDependencies.removed = new Set(compilation.__internal__removedFileDependencies);
|
|
7855
|
+
let contextDependencies = new Set([
|
|
7856
|
+
...compilation.contextDependencies
|
|
7857
|
+
]);
|
|
7858
|
+
contextDependencies.added = new Set(compilation.__internal__addedContextDependencies), contextDependencies.removed = new Set(compilation.__internal__removedContextDependencies);
|
|
7859
|
+
let missingDependencies = new Set([
|
|
7860
|
+
...compilation.missingDependencies
|
|
7861
|
+
]);
|
|
7862
|
+
missingDependencies.added = new Set(compilation.__internal__addedMissingDependencies), missingDependencies.removed = new Set(compilation.__internal__removedMissingDependencies), this.compiler.hooks.done.callAsync(stats, (err)=>{
|
|
7894
7863
|
if (err) return handleError(err, cbs);
|
|
7895
|
-
this.handler(null, stats)
|
|
7896
|
-
let fileDependencies = new Set([
|
|
7897
|
-
...compilation.fileDependencies
|
|
7898
|
-
]);
|
|
7899
|
-
fileDependencies.added = new Set(compilation.__internal__addedFileDependencies), fileDependencies.removed = new Set(compilation.__internal__removedFileDependencies);
|
|
7900
|
-
let contextDependencies = new Set([
|
|
7901
|
-
...compilation.contextDependencies
|
|
7902
|
-
]);
|
|
7903
|
-
contextDependencies.added = new Set(compilation.__internal__addedContextDependencies), contextDependencies.removed = new Set(compilation.__internal__removedContextDependencies);
|
|
7904
|
-
let missingDependencies = new Set([
|
|
7905
|
-
...compilation.missingDependencies
|
|
7906
|
-
]);
|
|
7907
|
-
for (let cb of (missingDependencies.added = new Set(compilation.__internal__addedMissingDependencies), missingDependencies.removed = new Set(compilation.__internal__removedMissingDependencies), process.nextTick(()=>{
|
|
7864
|
+
for (let cb of (this.handler(null, stats), process.nextTick(()=>{
|
|
7908
7865
|
this.#closed || this.watch(fileDependencies, contextDependencies, missingDependencies);
|
|
7909
7866
|
}), cbs))cb(null);
|
|
7910
7867
|
this.compiler.hooks.afterDone.call(stats);
|
|
@@ -7925,7 +7882,7 @@ Help:
|
|
|
7925
7882
|
this.suspended && (this.suspended = !1, this.#invalidate());
|
|
7926
7883
|
}
|
|
7927
7884
|
}
|
|
7928
|
-
let COMPILATION_WEAK_MAP = new WeakMap()
|
|
7885
|
+
let COMPILATION_WEAK_MAP = new WeakMap();
|
|
7929
7886
|
class Compiler {
|
|
7930
7887
|
#instance;
|
|
7931
7888
|
#initial;
|
|
@@ -7962,6 +7919,7 @@ Help:
|
|
|
7962
7919
|
context;
|
|
7963
7920
|
cache;
|
|
7964
7921
|
compilerPath;
|
|
7922
|
+
#platform;
|
|
7965
7923
|
options;
|
|
7966
7924
|
unsafeFastDrop = !1;
|
|
7967
7925
|
__internal_browser_require;
|
|
@@ -8060,14 +8018,16 @@ Help:
|
|
|
8060
8018
|
}, this.rspack = {
|
|
8061
8019
|
...src_rspack_0,
|
|
8062
8020
|
RuntimeGlobals: compilerRuntimeGlobals
|
|
8063
|
-
}, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this
|
|
8021
|
+
}, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.#platform = {
|
|
8022
|
+
web: null,
|
|
8023
|
+
browser: null,
|
|
8024
|
+
webworker: null,
|
|
8025
|
+
node: null,
|
|
8026
|
+
nwjs: null,
|
|
8027
|
+
electron: null
|
|
8028
|
+
}, this.__internal_browser_require = ()=>{
|
|
8064
8029
|
throw Error("Cannot execute user defined code in browser without `BrowserRequirePlugin`");
|
|
8065
|
-
}, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault(), options.resolve, options.resolveLoader), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this), new TraceHookPlugin().apply(this)
|
|
8066
|
-
writable: !1,
|
|
8067
|
-
configurable: !1,
|
|
8068
|
-
enumerable: !1,
|
|
8069
|
-
value: ()=>this.#instance.getCompilerId()
|
|
8070
|
-
});
|
|
8030
|
+
}, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault(), options.resolve, options.resolveLoader), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this), new TraceHookPlugin().apply(this);
|
|
8071
8031
|
}
|
|
8072
8032
|
get recordsInputPath() {
|
|
8073
8033
|
return unsupported("Compiler.recordsInputPath");
|
|
@@ -8084,6 +8044,12 @@ Help:
|
|
|
8084
8044
|
get _lastCompilation() {
|
|
8085
8045
|
return this.#compilation;
|
|
8086
8046
|
}
|
|
8047
|
+
get platform() {
|
|
8048
|
+
return this.#platform;
|
|
8049
|
+
}
|
|
8050
|
+
set platform(platform) {
|
|
8051
|
+
this.#platform = platform;
|
|
8052
|
+
}
|
|
8087
8053
|
get __internal__builtinPlugins() {
|
|
8088
8054
|
return this.#builtinPlugins;
|
|
8089
8055
|
}
|
|
@@ -8350,7 +8316,7 @@ Help:
|
|
|
8350
8316
|
this.#registers = this.#createHooksRegisters();
|
|
8351
8317
|
let inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options1.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
8352
8318
|
try {
|
|
8353
|
-
this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop), callback(null, this.#instance);
|
|
8319
|
+
this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop, this.#platform), callback(null, this.#instance);
|
|
8354
8320
|
} catch (err) {
|
|
8355
8321
|
err instanceof Error && delete err.stack, callback(Error("Failed to create Rspack compiler instance, check the Rspack configuration.", {
|
|
8356
8322
|
cause: err
|
|
@@ -8976,7 +8942,7 @@ Help:
|
|
|
8976
8942
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8977
8943
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8978
8944
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8979
|
-
}), childOptions.version && (obj.rspackVersion = "1.7.0-canary-
|
|
8945
|
+
}), childOptions.version && (obj.rspackVersion = "1.7.0-canary-08772c3f-20251224173339", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8980
8946
|
let mapError = (j, obj)=>({
|
|
8981
8947
|
...obj,
|
|
8982
8948
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9886,7 +9852,7 @@ Help:
|
|
|
9886
9852
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9887
9853
|
},
|
|
9888
9854
|
version: (object)=>{
|
|
9889
|
-
object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-
|
|
9855
|
+
object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-08772c3f-20251224173339";
|
|
9890
9856
|
},
|
|
9891
9857
|
env: (object, _compilation, _context, { _env })=>{
|
|
9892
9858
|
object.env = _env;
|
|
@@ -12105,7 +12071,7 @@ Help:
|
|
|
12105
12071
|
let _options = JSON.stringify(options || {});
|
|
12106
12072
|
return binding_default().transform(source, _options);
|
|
12107
12073
|
}
|
|
12108
|
-
let exports_rspackVersion = "1.7.0-canary-
|
|
12074
|
+
let exports_rspackVersion = "1.7.0-canary-08772c3f-20251224173339", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
12109
12075
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
12110
12076
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
12111
12077
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -12338,27 +12304,7 @@ Help:
|
|
|
12338
12304
|
if (INTERNAL_PLUGIN_NAMES.includes(name)) throw Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
|
|
12339
12305
|
return base_create(name, resolve, affectedHooks);
|
|
12340
12306
|
},
|
|
12341
|
-
VirtualModulesPlugin: VirtualModulesPlugin
|
|
12342
|
-
createRscPlugins: function() {
|
|
12343
|
-
let coordinator = new Coordinator();
|
|
12344
|
-
return {
|
|
12345
|
-
ServerPlugin: class extends RscServerPlugin {
|
|
12346
|
-
constructor(){
|
|
12347
|
-
super(coordinator);
|
|
12348
|
-
}
|
|
12349
|
-
},
|
|
12350
|
-
ClientPlugin: class extends RscClientPlugin {
|
|
12351
|
-
constructor(){
|
|
12352
|
-
super(coordinator);
|
|
12353
|
-
}
|
|
12354
|
-
}
|
|
12355
|
-
};
|
|
12356
|
-
},
|
|
12357
|
-
RSC_LAYERS_NAMES: {
|
|
12358
|
-
REACT_SERVER_COMPONENTS: "react-server-components",
|
|
12359
|
-
SERVER_SIDE_RENDERING: "server-side-rendering",
|
|
12360
|
-
ACTION_BROWSER: "action-browser"
|
|
12361
|
-
}
|
|
12307
|
+
VirtualModulesPlugin: VirtualModulesPlugin
|
|
12362
12308
|
}, ERROR_PREFIX = "Invalid Rspack configuration:";
|
|
12363
12309
|
function validateRspackConfig(config) {
|
|
12364
12310
|
(({ context })=>{
|
|
@@ -12394,7 +12340,8 @@ Help:
|
|
|
12394
12340
|
if (new NodeEnvironmentPlugin({
|
|
12395
12341
|
infrastructureLogging: options1.infrastructureLogging
|
|
12396
12342
|
}).apply(compiler), Array.isArray(options1.plugins)) for (let plugin of options1.plugins)"function" == typeof plugin ? plugin.call(compiler, compiler) : plugin && plugin.apply(compiler);
|
|
12397
|
-
|
|
12343
|
+
let { platform } = applyRspackOptionsDefaults(compiler.options);
|
|
12344
|
+
return platform && (compiler.platform = platform), compiler.hooks.environment.call(), compiler.hooks.afterEnvironment.call(), new RspackOptionsApply().process(compiler.options, compiler), compiler.hooks.initialize.call(), compiler;
|
|
12398
12345
|
}
|
|
12399
12346
|
function isMultiRspackOptions(o) {
|
|
12400
12347
|
return Array.isArray(o);
|
|
@@ -12439,21 +12386,21 @@ Help:
|
|
|
12439
12386
|
}
|
|
12440
12387
|
{
|
|
12441
12388
|
let { compiler, watch } = create();
|
|
12442
|
-
return watch &&
|
|
12389
|
+
return watch && deprecate("A 'callback' argument needs to be provided to the 'rspack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback."), compiler;
|
|
12443
12390
|
}
|
|
12444
12391
|
}, exports_namespaceObject);
|
|
12445
12392
|
src_fn.rspack = src_fn, src_fn.webpack = src_fn;
|
|
12446
12393
|
let src_rspack_0 = src_fn, src_0 = src_rspack_0;
|
|
12447
|
-
})(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.
|
|
12394
|
+
})(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CaseSensitivePlugin = __webpack_exports__.CaseSensitivePlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.CopyRspackPlugin = __webpack_exports__.CopyRspackPlugin, exports.CssExtractRspackPlugin = __webpack_exports__.CssExtractRspackPlugin, exports.DefinePlugin = __webpack_exports__.DefinePlugin, exports.Dependency = __webpack_exports__.Dependency, exports.DllPlugin = __webpack_exports__.DllPlugin, exports.DllReferencePlugin = __webpack_exports__.DllReferencePlugin, exports.DynamicEntryPlugin = __webpack_exports__.DynamicEntryPlugin, exports.EntryDependency = __webpack_exports__.EntryDependency, exports.EntryOptionPlugin = __webpack_exports__.EntryOptionPlugin, exports.EntryPlugin = __webpack_exports__.EntryPlugin, exports.EnvironmentPlugin = __webpack_exports__.EnvironmentPlugin, exports.EvalDevToolModulePlugin = __webpack_exports__.EvalDevToolModulePlugin, exports.EvalSourceMapDevToolPlugin = __webpack_exports__.EvalSourceMapDevToolPlugin, exports.ExternalModule = __webpack_exports__.ExternalModule, exports.ExternalsPlugin = __webpack_exports__.ExternalsPlugin, exports.HotModuleReplacementPlugin = __webpack_exports__.HotModuleReplacementPlugin, exports.HtmlRspackPlugin = __webpack_exports__.HtmlRspackPlugin, exports.IgnorePlugin = __webpack_exports__.IgnorePlugin, exports.LightningCssMinimizerRspackPlugin = __webpack_exports__.LightningCssMinimizerRspackPlugin, exports.LoaderOptionsPlugin = __webpack_exports__.LoaderOptionsPlugin, exports.LoaderTargetPlugin = __webpack_exports__.LoaderTargetPlugin, exports.Module = __webpack_exports__.Module, exports.ModuleFilenameHelpers = __webpack_exports__.ModuleFilenameHelpers, exports.MultiCompiler = __webpack_exports__.MultiCompiler, exports.MultiStats = __webpack_exports__.MultiStats, exports.NoEmitOnErrorsPlugin = __webpack_exports__.NoEmitOnErrorsPlugin, exports.NormalModule = __webpack_exports__.NormalModule, exports.NormalModuleReplacementPlugin = __webpack_exports__.NormalModuleReplacementPlugin, exports.ProgressPlugin = __webpack_exports__.ProgressPlugin, exports.ProvidePlugin = __webpack_exports__.ProvidePlugin, exports.RspackOptionsApply = __webpack_exports__.RspackOptionsApply, exports.RuntimeGlobals = __webpack_exports__.RuntimeGlobals, exports.RuntimeModule = __webpack_exports__.RuntimeModule, exports.RuntimePlugin = __webpack_exports__.RuntimePlugin, exports.SourceMapDevToolPlugin = __webpack_exports__.SourceMapDevToolPlugin, exports.Stats = __webpack_exports__.Stats, exports.StatsErrorCode = __webpack_exports__.StatsErrorCode, exports.SubresourceIntegrityPlugin = __webpack_exports__.SubresourceIntegrityPlugin, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.WarnCaseSensitiveModulesPlugin = __webpack_exports__.WarnCaseSensitiveModulesPlugin, exports.WebpackError = __webpack_exports__.WebpackError, exports.WebpackOptionsApply = __webpack_exports__.WebpackOptionsApply, exports.config = __webpack_exports__.config, exports.container = __webpack_exports__.container, exports.default = __webpack_exports__.default, exports.electron = __webpack_exports__.electron, exports.experiments = __webpack_exports__.experiments, exports.javascript = __webpack_exports__.javascript, exports.lazyCompilationMiddleware = __webpack_exports__.lazyCompilationMiddleware, exports.library = __webpack_exports__.library, exports.node = __webpack_exports__.node, exports.optimize = __webpack_exports__.optimize, exports.rspack = __webpack_exports__.rspack, exports.rspackVersion = __webpack_exports__.rspackVersion, exports.sharing = __webpack_exports__.sharing, exports.sources = __webpack_exports__.sources, exports.util = __webpack_exports__.util, exports.version = __webpack_exports__.version, exports.wasm = __webpack_exports__.wasm, exports.web = __webpack_exports__.web, exports.webworker = __webpack_exports__.webworker, __webpack_exports__)-1 === [
|
|
12448
12395
|
"AsyncDependenciesBlock",
|
|
12449
12396
|
"BannerPlugin",
|
|
12397
|
+
"CaseSensitivePlugin",
|
|
12450
12398
|
"CircularDependencyRspackPlugin",
|
|
12451
12399
|
"Compilation",
|
|
12452
12400
|
"Compiler",
|
|
12453
12401
|
"ConcatenatedModule",
|
|
12454
12402
|
"ContextModule",
|
|
12455
12403
|
"ContextReplacementPlugin",
|
|
12456
|
-
"Coordinator",
|
|
12457
12404
|
"CopyRspackPlugin",
|
|
12458
12405
|
"CssExtractRspackPlugin",
|
|
12459
12406
|
"DefinePlugin",
|
|
@@ -12484,8 +12431,6 @@ Help:
|
|
|
12484
12431
|
"NormalModuleReplacementPlugin",
|
|
12485
12432
|
"ProgressPlugin",
|
|
12486
12433
|
"ProvidePlugin",
|
|
12487
|
-
"RscClientPlugin",
|
|
12488
|
-
"RscServerPlugin",
|
|
12489
12434
|
"RspackOptionsApply",
|
|
12490
12435
|
"RuntimeGlobals",
|
|
12491
12436
|
"RuntimeModule",
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The following code is modified based on
|
|
3
|
+
* https://github.com/webpack/webpack/blob/4b4ca3b/lib
|
|
4
|
+
*
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
* Author Tobias Koppers @sokra
|
|
7
|
+
* Copyright (c) JS Foundation and other contributors
|
|
8
|
+
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
|
+
*/
|
|
1
10
|
import type { Callback } from "@rspack/lite-tapable";
|
|
2
11
|
import { Compiler } from "./Compiler";
|
|
3
12
|
import { type RspackOptions } from "./config";
|
package/dist/util/index.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare function serializeObject(map: string | object | undefined | null)
|
|
|
6
6
|
export declare function indent(str: string, prefix: string): string;
|
|
7
7
|
export declare function stringifyLoaderObject(o: LoaderObject): string;
|
|
8
8
|
export declare const unsupported: (name: string, issue?: string) => never;
|
|
9
|
+
export declare function deprecate(message: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.7.0-canary-
|
|
3
|
+
"version": "1.7.0-canary-08772c3f-20251224173339",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"webpack-sources": "3.3.3"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@module-federation/runtime-tools": "0.
|
|
59
|
+
"@module-federation/runtime-tools": "0.22.0",
|
|
60
60
|
"@rspack/lite-tapable": "1.1.0",
|
|
61
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.7.0-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.7.0-canary-08772c3f-20251224173339"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from "../../Compiler";
|
|
2
|
-
export declare const GET_OR_INIT_BINDING: unique symbol;
|
|
3
|
-
export declare class Coordinator {
|
|
4
|
-
#private;
|
|
5
|
-
constructor();
|
|
6
|
-
applyServerCompiler(serverCompiler: Compiler): void;
|
|
7
|
-
applyClientCompiler(clientCompiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type binding from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../..";
|
|
3
|
-
import { RspackBuiltinPlugin } from "../base";
|
|
4
|
-
import { type Coordinator } from "./Coordinator";
|
|
5
|
-
export declare class RscClientPlugin extends RspackBuiltinPlugin {
|
|
6
|
-
#private;
|
|
7
|
-
name: string;
|
|
8
|
-
constructor(coordinator: Coordinator);
|
|
9
|
-
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type binding from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../..";
|
|
3
|
-
import { RspackBuiltinPlugin } from "../base";
|
|
4
|
-
import { type Coordinator } from "./Coordinator";
|
|
5
|
-
export declare class RscServerPlugin extends RspackBuiltinPlugin {
|
|
6
|
-
#private;
|
|
7
|
-
name: string;
|
|
8
|
-
constructor(coordinator: Coordinator);
|
|
9
|
-
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { RspackPluginInstance } from "../..";
|
|
2
|
-
export declare function createRscPlugins(): {
|
|
3
|
-
ServerPlugin: RspackPluginInstance;
|
|
4
|
-
ClientPlugin: RspackPluginInstance;
|
|
5
|
-
};
|
|
6
|
-
export declare const RSC_LAYERS_NAMES: {
|
|
7
|
-
/**
|
|
8
|
-
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
9
|
-
*/
|
|
10
|
-
REACT_SERVER_COMPONENTS: string;
|
|
11
|
-
/**
|
|
12
|
-
* Server Side Rendering layer for app.
|
|
13
|
-
*/
|
|
14
|
-
SERVER_SIDE_RENDERING: string;
|
|
15
|
-
/**
|
|
16
|
-
* The browser client bundle layer for actions.
|
|
17
|
-
*/
|
|
18
|
-
ACTION_BROWSER: string;
|
|
19
|
-
};
|