@rspack-debug/browser 2.0.2 → 2.0.3
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/Compilation.d.ts +1 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +7 -0
- package/dist/builtin-plugin/rsc/index.d.ts +3 -3
- package/dist/config/target.d.ts +1 -1
- package/dist/config/types.d.ts +4 -4
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +20 -14
- package/dist/lib/CacheFacade.d.ts +1 -1
- package/dist/napi-binding.d.ts +13 -3
- package/dist/runtime/cssExtractHmr.d.ts +2 -2
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +4 -4
- package/dist/util/comparators.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/identifier.d.ts +35 -8
- package/package.json +1 -1
package/dist/Compilation.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ export declare class Compilation {
|
|
|
235
235
|
*
|
|
236
236
|
* Note: This is a proxy for webpack internal API, only method `get`, `keys`, `values` and `entries` are supported now.
|
|
237
237
|
*/
|
|
238
|
-
get namedChunks(): ReadonlyMap<string, Readonly<
|
|
238
|
+
get namedChunks(): ReadonlyMap<string, Readonly<Chunk>>;
|
|
239
239
|
get entries(): Map<string, EntryData>;
|
|
240
240
|
get codeGenerationResults(): binding.CodeGenerationResults;
|
|
241
241
|
getCache(name: string): import("./lib/CacheFacade").CacheFacade;
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class MultiCompiler {
|
|
|
45
45
|
get options(): import("./config").RspackOptionsNormalized[] & MultiCompilerOptions;
|
|
46
46
|
get outputPath(): string;
|
|
47
47
|
get inputFileSystem(): InputFileSystem;
|
|
48
|
-
get outputFileSystem(): typeof import(
|
|
48
|
+
get outputFileSystem(): typeof import('fs');
|
|
49
49
|
get watchFileSystem(): WatchFileSystem;
|
|
50
50
|
get intermediateFileSystem(): IntermediateFileSystem;
|
|
51
51
|
set inputFileSystem(value: InputFileSystem);
|
package/dist/RuntimeGlobals.d.ts
CHANGED
|
@@ -352,5 +352,5 @@ export declare enum RuntimeVariable {
|
|
|
352
352
|
}
|
|
353
353
|
export declare function renderRuntimeVariables(variable: RuntimeVariable, _compilerOptions?: RspackOptionsNormalized): string;
|
|
354
354
|
export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): Record<keyof typeof RuntimeGlobals, string>;
|
|
355
|
-
declare const DefaultRuntimeGlobals: Record<"
|
|
355
|
+
declare const DefaultRuntimeGlobals: Record<"amdDefine" | "amdOptions" | "asyncModule" | "asyncModuleExportSymbol" | "baseURI" | "chunkCallback" | "chunkName" | "compatGetDefaultExport" | "createFakeNamespaceObject" | "createScript" | "createScriptUrl" | "currentRemoteGetScope" | "definePropertyGetters" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "entryModuleId" | "exports" | "externalInstallChunk" | "getChunkCssFilename" | "getChunkScriptFilename" | "getChunkUpdateCssFilename" | "getChunkUpdateScriptFilename" | "getFullHash" | "getTrustedTypesPolicy" | "getUpdateManifestFilename" | "global" | "harmonyModuleDecorator" | "hasCssModules" | "hasFetchPriority" | "hasOwnProperty" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrInvalidateModuleHandlers" | "hmrModuleData" | "hmrRuntimeStatePrefix" | "initializeSharing" | "instantiateWasm" | "interceptModuleExecution" | "loadScript" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol" | "makeNamespaceObject" | "module" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "moduleId" | "moduleLoaded" | "nodeModuleDecorator" | "onChunksLoaded" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "publicPath" | "relativeUrl" | "require" | "requireScope" | "returnExportsFromRuntime" | "rspackUniqueId" | "rspackVersion" | "runtimeId" | "scriptNonce" | "shareScopeMap" | "startup" | "startupChunkDependencies" | "startupEntrypoint" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "system" | "systemContext" | "thisAsExports" | "uncaughtErrorHandler" | "wasmInstances", string>;
|
|
356
356
|
export { DefaultRuntimeGlobals as RuntimeGlobals };
|
|
@@ -2,6 +2,6 @@ import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
|
|
|
2
2
|
import { RspackBuiltinPlugin } from './base';
|
|
3
3
|
export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: 'compilation';
|
|
6
6
|
raw(): BuiltinPlugin;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
|
|
|
2
2
|
import { RspackBuiltinPlugin } from './base';
|
|
3
3
|
export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: 'compilation';
|
|
6
6
|
raw(): BuiltinPlugin;
|
|
7
7
|
}
|
|
@@ -6,7 +6,7 @@ export declare class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
6
6
|
private context;
|
|
7
7
|
private entry;
|
|
8
8
|
name: BuiltinPluginName;
|
|
9
|
-
affectedHooks:
|
|
9
|
+
affectedHooks: 'make';
|
|
10
10
|
constructor(context: string, entry: EntryDynamicNormalized);
|
|
11
11
|
raw(compiler: Compiler): BuiltinPlugin | undefined;
|
|
12
12
|
}
|
|
@@ -3,7 +3,7 @@ import { RspackBuiltinPlugin } from './base';
|
|
|
3
3
|
export declare class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private global;
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: 'compilation';
|
|
7
7
|
constructor(global: boolean);
|
|
8
8
|
raw(): BuiltinPlugin;
|
|
9
9
|
}
|
|
@@ -30,7 +30,7 @@ export type HttpUriPluginOptions = {
|
|
|
30
30
|
export declare class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
31
31
|
private options;
|
|
32
32
|
name: BuiltinPluginName;
|
|
33
|
-
affectedHooks:
|
|
33
|
+
affectedHooks: 'compilation';
|
|
34
34
|
constructor(options: HttpUriPluginOptions);
|
|
35
35
|
raw(compiler: Compiler): BuiltinPlugin | undefined;
|
|
36
36
|
}
|
|
@@ -9,7 +9,7 @@ export type CompilationHooks = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
11
11
|
name: BuiltinPluginName;
|
|
12
|
-
affectedHooks:
|
|
12
|
+
affectedHooks: 'compilation';
|
|
13
13
|
raw(): BuiltinPlugin;
|
|
14
14
|
static getCompilationHooks(compilation: Compilation): CompilationHooks;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ import { RspackBuiltinPlugin } from './base';
|
|
|
3
3
|
export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private deterministic;
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: 'compilation';
|
|
7
7
|
constructor(deterministic: boolean);
|
|
8
8
|
raw(): BuiltinPlugin;
|
|
9
9
|
}
|
|
@@ -2,6 +2,6 @@ import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
|
|
|
2
2
|
import { RspackBuiltinPlugin } from './base';
|
|
3
3
|
export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: 'compilation';
|
|
6
6
|
raw(): BuiltinPlugin;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
|
|
|
2
2
|
import { RspackBuiltinPlugin } from './base';
|
|
3
3
|
export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: 'compilation';
|
|
6
6
|
raw(): BuiltinPlugin;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
|
|
|
2
2
|
import { RspackBuiltinPlugin } from './base';
|
|
3
3
|
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: 'compilation';
|
|
6
6
|
raw(): BuiltinPlugin;
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import { RspackBuiltinPlugin } from './base';
|
|
|
3
3
|
export declare class SideEffectsFlagPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private analyzeSideEffectsFree;
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: 'compilation';
|
|
7
7
|
constructor(analyzeSideEffectsFree?: boolean);
|
|
8
8
|
raw(): BuiltinPlugin;
|
|
9
9
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const SizeLimitsPlugin: {
|
|
2
2
|
new (options: {
|
|
3
3
|
assetFilter?: (assetFilename: string) => boolean;
|
|
4
|
-
hints?: false |
|
|
4
|
+
hints?: false | 'warning' | 'error';
|
|
5
5
|
maxAssetSize?: number;
|
|
6
6
|
maxEntrypointSize?: number;
|
|
7
7
|
}): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [options: {
|
|
10
10
|
assetFilter?: (assetFilename: string) => boolean;
|
|
11
|
-
hints?: false |
|
|
11
|
+
hints?: false | 'warning' | 'error';
|
|
12
12
|
maxAssetSize?: number;
|
|
13
13
|
maxEntrypointSize?: number;
|
|
14
14
|
}];
|
|
@@ -5,7 +5,7 @@ import { RspackBuiltinPlugin } from './base';
|
|
|
5
5
|
export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private options;
|
|
7
7
|
name: BuiltinPluginName;
|
|
8
|
-
affectedHooks:
|
|
8
|
+
affectedHooks: 'thisCompilation';
|
|
9
9
|
constructor(options: OptimizationSplitChunksOptions);
|
|
10
10
|
raw(compiler: Compiler): BuiltinPlugin;
|
|
11
11
|
}
|
|
@@ -8,7 +8,7 @@ export declare class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
8
8
|
private module;
|
|
9
9
|
private workerPublicPath;
|
|
10
10
|
name: BuiltinPluginName;
|
|
11
|
-
affectedHooks:
|
|
11
|
+
affectedHooks: 'compilation';
|
|
12
12
|
constructor(chunkLoading: ChunkLoading, wasmLoading: WasmLoading, module: OutputModule, workerPublicPath: WorkerPublicPath);
|
|
13
13
|
raw(compiler: Compiler): BuiltinPlugin;
|
|
14
14
|
}
|
|
@@ -24,11 +24,18 @@ export interface RscManifestPerEntry {
|
|
|
24
24
|
moduleLoading: RscModuleLoading;
|
|
25
25
|
entryCssFiles: Record<string, string[]>;
|
|
26
26
|
entryJsFiles: string[];
|
|
27
|
+
cssLinkProps: RscCssLinkProps;
|
|
27
28
|
}
|
|
28
29
|
/** Full RSC manifest (all entries) passed to onManifest. Map from entry name to per-entry manifest. */
|
|
29
30
|
export type RscManifest = Record<string, RscManifestPerEntry>;
|
|
31
|
+
export type RscCssLinkProps = Record<string, string>;
|
|
32
|
+
export type RscCssLinkOptions = {
|
|
33
|
+
precedence?: string | false;
|
|
34
|
+
props?: RscCssLinkProps;
|
|
35
|
+
};
|
|
30
36
|
export type RscServerPluginOptions = {
|
|
31
37
|
coordinator: Coordinator;
|
|
38
|
+
cssLink?: RscCssLinkOptions | null;
|
|
32
39
|
onServerComponentChanges?: () => void | Promise<void>;
|
|
33
40
|
onManifest?: (manifest: RscManifest) => void | Promise<void>;
|
|
34
41
|
};
|
|
@@ -7,18 +7,18 @@ declare class ClientPlugin extends RscClientPlugin {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const rsc: {
|
|
9
9
|
createPlugins: () => {
|
|
10
|
-
ServerPlugin: new (options?: Omit<RscServerPluginOptions,
|
|
10
|
+
ServerPlugin: new (options?: Omit<RscServerPluginOptions, 'coordinator'>) => ServerPlugin;
|
|
11
11
|
ClientPlugin: new () => ClientPlugin;
|
|
12
12
|
};
|
|
13
13
|
Layers: {
|
|
14
14
|
/**
|
|
15
15
|
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
16
16
|
*/
|
|
17
|
-
readonly rsc:
|
|
17
|
+
readonly rsc: 'react-server-components';
|
|
18
18
|
/**
|
|
19
19
|
* Server Side Rendering layer for app.
|
|
20
20
|
*/
|
|
21
|
-
readonly ssr:
|
|
21
|
+
readonly ssr: 'server-side-rendering';
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export {};
|
package/dist/config/target.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @param context the context directory
|
|
12
12
|
* @returns default target
|
|
13
13
|
*/
|
|
14
|
-
export declare const getDefaultTarget: (context: string) =>
|
|
14
|
+
export declare const getDefaultTarget: (context: string) => 'browserslist' | 'web';
|
|
15
15
|
export type PlatformTargetProperties = {
|
|
16
16
|
/** web platform, importing of http(s) and std: is available */
|
|
17
17
|
web?: boolean | null;
|
package/dist/config/types.d.ts
CHANGED
|
@@ -189,7 +189,7 @@ export type Clean = boolean | {
|
|
|
189
189
|
export type OutputModule = boolean;
|
|
190
190
|
/** Tell Rspack to remove a module from the module instance cache (require.cache) if it throws an exception when it is required. */
|
|
191
191
|
export type StrictModuleExceptionHandling = boolean;
|
|
192
|
-
/** Handle error in module loading as per
|
|
192
|
+
/** Handle error in module loading as per ECMAScript Modules spec at a performance cost. */
|
|
193
193
|
export type StrictModuleErrorHandling = boolean;
|
|
194
194
|
/** Indicates what global object will be used to mount the library. */
|
|
195
195
|
export type GlobalObject = string;
|
|
@@ -272,7 +272,7 @@ export type Environment = {
|
|
|
272
272
|
destructuring?: boolean;
|
|
273
273
|
/** The environment supports 'document' variable. */
|
|
274
274
|
document?: boolean;
|
|
275
|
-
/** The environment supports an async import() function to import
|
|
275
|
+
/** The environment supports an async import() function to import ECMAScript modules. */
|
|
276
276
|
dynamicImport?: boolean;
|
|
277
277
|
/** The environment supports an async import() when creating a worker, only for web targets at the moment. */
|
|
278
278
|
dynamicImportInWorker?: boolean;
|
|
@@ -373,7 +373,7 @@ export type Output = {
|
|
|
373
373
|
/** Tell Rspack to remove a module from the module instance cache (require.cache) if it throws an exception when it is required. */
|
|
374
374
|
strictModuleExceptionHandling?: StrictModuleExceptionHandling;
|
|
375
375
|
/**
|
|
376
|
-
* Handle error in module loading as per
|
|
376
|
+
* Handle error in module loading as per ECMAScript Modules spec at a performance cost.
|
|
377
377
|
* @default false
|
|
378
378
|
* */
|
|
379
379
|
strictModuleErrorHandling?: StrictModuleErrorHandling;
|
|
@@ -1099,7 +1099,7 @@ export type Target = false | AllowTarget | AllowTarget[];
|
|
|
1099
1099
|
* `amd`, `umd`, `system` and `jsonp` externals depend on the `output.library.type` being set to the same value e.g. you can only consume amd externals within an amd library.
|
|
1100
1100
|
* @default 'var'
|
|
1101
1101
|
*/
|
|
1102
|
-
export type ExternalsType = 'var' | 'module' | 'assign' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | 'promise' | 'import' | 'module-import' | 'script' | 'node-commonjs' | 'commonjs-import';
|
|
1102
|
+
export type ExternalsType = 'var' | 'module' | 'assign' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | 'promise' | 'import' | 'module-import' | 'modern-module' | 'script' | 'node-commonjs' | 'commonjs-import';
|
|
1103
1103
|
/**
|
|
1104
1104
|
* External item object when both library.type and externalsType is 'umd'
|
|
1105
1105
|
*/
|
package/dist/exports.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ type Config = {
|
|
|
44
44
|
export declare const config: Config;
|
|
45
45
|
export type * from './config';
|
|
46
46
|
export declare const util: {
|
|
47
|
-
createHash: (algorithm:
|
|
47
|
+
createHash: (algorithm: 'xxhash64' | 'md4' | 'native-md4' | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
|
|
48
48
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
49
49
|
};
|
|
50
50
|
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginHandlerInfo, ProgressPluginOptions, ProvidePluginOptions, } from './builtin-plugin';
|
package/dist/index.js
CHANGED
|
@@ -14616,9 +14616,9 @@ __webpack_require__.add({
|
|
|
14616
14616
|
}
|
|
14617
14617
|
utils.intFromLE = intFromLE;
|
|
14618
14618
|
},
|
|
14619
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
14619
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.21.2/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14620
14620
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
14621
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
14621
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.2/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14622
14622
|
const dirname = (path)=>{
|
|
14623
14623
|
let idx = path.length - 1;
|
|
14624
14624
|
while(idx >= 0){
|
|
@@ -14913,7 +14913,7 @@ __webpack_require__.add({
|
|
|
14913
14913
|
}
|
|
14914
14914
|
};
|
|
14915
14915
|
},
|
|
14916
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
14916
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.21.2/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
|
|
14917
14917
|
module.exports = {
|
|
14918
14918
|
versions: {},
|
|
14919
14919
|
nextTick (fn) {
|
|
@@ -35339,14 +35339,14 @@ __webpack_require__.add({
|
|
|
35339
35339
|
watch: ()=>watch
|
|
35340
35340
|
});
|
|
35341
35341
|
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.4_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35342
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?
|
|
35342
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?5821");
|
|
35343
35343
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35344
35344
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35345
35345
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35346
35346
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35347
35347
|
const __rspack_default_export = fs;
|
|
35348
35348
|
},
|
|
35349
|
-
"@rspack/binding?
|
|
35349
|
+
"@rspack/binding?5821" (module) {
|
|
35350
35350
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35351
35351
|
},
|
|
35352
35352
|
"?7763" () {},
|
|
@@ -59721,6 +59721,7 @@ class RscServerPlugin extends RspackBuiltinPlugin {
|
|
|
59721
59721
|
if (this.#options.onManifest) onManifest = (json)=>Promise.resolve(this.#options.onManifest(JSON.parse(json)));
|
|
59722
59722
|
return createBuiltinPlugin(this.name, {
|
|
59723
59723
|
coordinator: coordinator[GET_OR_INIT_BINDING](),
|
|
59724
|
+
cssLink: this.#options.cssLink,
|
|
59724
59725
|
onServerComponentChanges,
|
|
59725
59726
|
onManifest
|
|
59726
59727
|
});
|
|
@@ -61247,7 +61248,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
61247
61248
|
],
|
|
61248
61249
|
[
|
|
61249
61250
|
'esX',
|
|
61250
|
-
'
|
|
61251
|
+
'ECMAScript in this version. Examples: es2020, es5.',
|
|
61251
61252
|
/^es(\d+)$/,
|
|
61252
61253
|
(version)=>{
|
|
61253
61254
|
let v = +version;
|
|
@@ -61371,7 +61372,12 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
61371
61372
|
buildHttp: Boolean(options.experiments.buildHttp),
|
|
61372
61373
|
outputModule: options.output.module
|
|
61373
61374
|
});
|
|
61374
|
-
F(options, 'externalsType', ()=>
|
|
61375
|
+
F(options, 'externalsType', ()=>{
|
|
61376
|
+
if (options.output.library?.type) {
|
|
61377
|
+
if ('modern-module' !== options.output.library.type) return options.output.library.type;
|
|
61378
|
+
}
|
|
61379
|
+
return options.output.module ? 'module-import' : 'var';
|
|
61380
|
+
});
|
|
61375
61381
|
applyNodeDefaults(options.node, {
|
|
61376
61382
|
targetProperties,
|
|
61377
61383
|
outputModule: options.output.module
|
|
@@ -61852,7 +61858,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
61852
61858
|
});
|
|
61853
61859
|
D(output, 'bundlerInfo', {});
|
|
61854
61860
|
if ('object' == typeof output.bundlerInfo) {
|
|
61855
|
-
D(output.bundlerInfo, 'version', "2.0.
|
|
61861
|
+
D(output.bundlerInfo, 'version', "2.0.3");
|
|
61856
61862
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
61857
61863
|
D(output.bundlerInfo, 'force', false);
|
|
61858
61864
|
}
|
|
@@ -63510,7 +63516,7 @@ class MultiStats {
|
|
|
63510
63516
|
return obj;
|
|
63511
63517
|
});
|
|
63512
63518
|
if (childOptions.version) {
|
|
63513
|
-
obj.rspackVersion = "2.0.
|
|
63519
|
+
obj.rspackVersion = "2.0.3";
|
|
63514
63520
|
obj.version = "5.75.0";
|
|
63515
63521
|
}
|
|
63516
63522
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -64387,7 +64393,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
64387
64393
|
}
|
|
64388
64394
|
};
|
|
64389
64395
|
}
|
|
64390
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
64396
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.2/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
64391
64397
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
64392
64398
|
class NodeEnvironmentPlugin {
|
|
64393
64399
|
options;
|
|
@@ -65216,7 +65222,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
65216
65222
|
},
|
|
65217
65223
|
version: (object)=>{
|
|
65218
65224
|
object.version = "5.75.0";
|
|
65219
|
-
object.rspackVersion = "2.0.
|
|
65225
|
+
object.rspackVersion = "2.0.3";
|
|
65220
65226
|
},
|
|
65221
65227
|
env: (object, _compilation, _context, { _env })=>{
|
|
65222
65228
|
object.env = _env;
|
|
@@ -68455,7 +68461,7 @@ class Compiler {
|
|
|
68455
68461
|
const rawOptions = getRawOptions(options, this);
|
|
68456
68462
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
68457
68463
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
68458
|
-
const instanceBinding = __webpack_require__("@rspack/binding?
|
|
68464
|
+
const instanceBinding = __webpack_require__("@rspack/binding?5821");
|
|
68459
68465
|
this.#registers = this.#createHooksRegisters();
|
|
68460
68466
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
68461
68467
|
try {
|
|
@@ -69971,7 +69977,7 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
|
69971
69977
|
for (const external of config.external){
|
|
69972
69978
|
if (external.startsWith('internal ')) continue;
|
|
69973
69979
|
const request = `webpack/container/reference/${key}${i ? `/fallback-${i}` : ''}`;
|
|
69974
|
-
if (('module' === remoteType || 'module-import' === remoteType) && external.startsWith('.')) importExternals[request] = external;
|
|
69980
|
+
if (('module' === remoteType || 'module-import' === remoteType || 'modern-module' === remoteType) && external.startsWith('.')) importExternals[request] = external;
|
|
69975
69981
|
else remoteExternals[request] = external;
|
|
69976
69982
|
i++;
|
|
69977
69983
|
}
|
|
@@ -70045,7 +70051,7 @@ function transformSync(source, options) {
|
|
|
70045
70051
|
const _options = JSON.stringify(options || {});
|
|
70046
70052
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
70047
70053
|
}
|
|
70048
|
-
const exports_rspackVersion = "2.0.
|
|
70054
|
+
const exports_rspackVersion = "2.0.3";
|
|
70049
70055
|
const exports_version = "5.75.0";
|
|
70050
70056
|
const exports_WebpackError = Error;
|
|
70051
70057
|
const exports_config = {
|
|
@@ -134,6 +134,6 @@ export declare class CacheFacade {
|
|
|
134
134
|
* @param computer function to compute the value if not cached
|
|
135
135
|
* @returns promise with the data
|
|
136
136
|
*/
|
|
137
|
-
providePromise<T>(identifier: string, etag: Etag | null, computer: () => Promise<T> | T): Promise<
|
|
137
|
+
providePromise<T>(identifier: string, etag: Etag | null, computer: () => Promise<T> | T): Promise<T | {} | null>;
|
|
138
138
|
}
|
|
139
139
|
export default CacheFacade;
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -216,6 +216,7 @@ export declare class Dependency {
|
|
|
216
216
|
get type(): string
|
|
217
217
|
get category(): string
|
|
218
218
|
get request(): string | undefined
|
|
219
|
+
get attributes(): Record<string, string> | undefined
|
|
219
220
|
get critical(): boolean
|
|
220
221
|
set critical(val: boolean)
|
|
221
222
|
get ids(): Array<string> | undefined
|
|
@@ -741,7 +742,6 @@ export interface JsBuildMeta {
|
|
|
741
742
|
exportsType?: undefined | 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
|
|
742
743
|
defaultObject?: undefined | 'false' | 'redirect' | 'redirect-warn'
|
|
743
744
|
sideEffectFree?: boolean
|
|
744
|
-
exportsFinalName?: Array<[string, string]> | undefined
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
export interface JsBuildTimeExecutionOption {
|
|
@@ -1055,8 +1055,14 @@ export interface JsRscClientPluginOptions {
|
|
|
1055
1055
|
coordinator: JsCoordinator
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
|
+
export interface JsRscCssLinkOptions {
|
|
1059
|
+
precedence?: string | boolean
|
|
1060
|
+
props?: Record<string, string>
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1058
1063
|
export interface JsRscServerPluginOptions {
|
|
1059
1064
|
coordinator: JsCoordinator
|
|
1065
|
+
cssLink?: JsRscCssLinkOptions | undefined | null
|
|
1060
1066
|
onServerComponentChanges?: (() => void | Promise<void>) | undefined | null
|
|
1061
1067
|
onManifest?: ((arg: string) => Promise<undefined>) | undefined | null
|
|
1062
1068
|
}
|
|
@@ -2914,6 +2920,10 @@ export interface RawRslibPluginOptions {
|
|
|
2914
2920
|
emitDts?: RawSwcEmitDtsOptions
|
|
2915
2921
|
}
|
|
2916
2922
|
|
|
2923
|
+
export interface RawRstestDynamicImportOriginOptions {
|
|
2924
|
+
functionName?: string
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2917
2927
|
export interface RawRstestPluginOptions {
|
|
2918
2928
|
injectModulePathName: boolean
|
|
2919
2929
|
importMetaPathName: boolean
|
|
@@ -2921,7 +2931,7 @@ export interface RawRstestPluginOptions {
|
|
|
2921
2931
|
manualMockRoot: string
|
|
2922
2932
|
preserveNewUrl?: Array<string>
|
|
2923
2933
|
globals?: boolean
|
|
2924
|
-
|
|
2934
|
+
injectDynamicImportOrigin?: boolean | { functionName?: string }
|
|
2925
2935
|
}
|
|
2926
2936
|
|
|
2927
2937
|
export interface RawRuleSetCondition {
|
|
@@ -3292,7 +3302,7 @@ export interface TsconfigOptions {
|
|
|
3292
3302
|
*/
|
|
3293
3303
|
configFile: string
|
|
3294
3304
|
/**
|
|
3295
|
-
* Support for
|
|
3305
|
+
* Support for TypeScript Project References.
|
|
3296
3306
|
*
|
|
3297
3307
|
* * `'auto'`: use the `references` field from tsconfig of `config_file`.
|
|
3298
3308
|
* * `string[]`: manually provided relative or absolute path.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function normalizeUrl(url: string): string;
|
|
2
|
-
|
|
3
|
-
declare function cssReload(moduleId: string, options: Record<string, any>):
|
|
2
|
+
type DebouncedFunction<T extends (...args: any[]) => any> = (...args: Parameters<T>) => void;
|
|
3
|
+
declare function cssReload(moduleId: string, options: Record<string, any>): DebouncedFunction<() => void>;
|
|
4
4
|
export { cssReload };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function (): void;
|
|
@@ -31,7 +31,7 @@ export declare function normalizeConsumeShareOptions(consumes: Consumes, shareSc
|
|
|
31
31
|
packageName: string | undefined;
|
|
32
32
|
singleton: boolean;
|
|
33
33
|
eager: boolean;
|
|
34
|
-
treeShakingMode: "
|
|
34
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
35
35
|
}][];
|
|
36
36
|
export declare class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
37
37
|
name: BuiltinPluginName;
|
|
@@ -45,7 +45,7 @@ export declare class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
|
45
45
|
packageName: string | undefined;
|
|
46
46
|
singleton: boolean;
|
|
47
47
|
eager: boolean;
|
|
48
|
-
treeShakingMode: "
|
|
48
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
49
49
|
}][];
|
|
50
50
|
enhanced: boolean;
|
|
51
51
|
};
|
|
@@ -35,14 +35,14 @@ export declare function normalizeProvideShareOptions<Enhanced extends boolean =
|
|
|
35
35
|
shareScope: ShareScope;
|
|
36
36
|
eager: boolean;
|
|
37
37
|
} | {
|
|
38
|
-
singleton: boolean | undefined;
|
|
39
|
-
requiredVersion: string | false | undefined;
|
|
40
|
-
strictVersion: boolean | undefined;
|
|
41
|
-
treeShakingMode: "server-calc" | "runtime-infer" | undefined;
|
|
42
38
|
shareKey: string;
|
|
43
39
|
version: string | false | undefined;
|
|
44
40
|
shareScope: ShareScope;
|
|
45
41
|
eager: boolean;
|
|
42
|
+
singleton: boolean | undefined;
|
|
43
|
+
requiredVersion: string | false | undefined;
|
|
44
|
+
strictVersion: boolean | undefined;
|
|
45
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
46
46
|
}][];
|
|
47
47
|
export declare class ProvideSharedPlugin<Enhanced extends boolean = false> extends RspackBuiltinPlugin {
|
|
48
48
|
name: BuiltinPluginName;
|
|
@@ -39,7 +39,7 @@ export declare function createProvideShareOptions(normalizedSharedOptions: Norma
|
|
|
39
39
|
singleton: boolean | undefined;
|
|
40
40
|
requiredVersion: string | false | undefined;
|
|
41
41
|
strictVersion: boolean | undefined;
|
|
42
|
-
treeShakingMode: "
|
|
42
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
43
43
|
};
|
|
44
44
|
}[];
|
|
45
45
|
export declare function createConsumeShareOptions(normalizedSharedOptions: NormalizedSharedOptions): {
|
|
@@ -52,7 +52,7 @@ export declare function createConsumeShareOptions(normalizedSharedOptions: Norma
|
|
|
52
52
|
singleton: boolean | undefined;
|
|
53
53
|
packageName: string | undefined;
|
|
54
54
|
eager: boolean | undefined;
|
|
55
|
-
treeShakingMode: "
|
|
55
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
56
56
|
};
|
|
57
57
|
}[];
|
|
58
58
|
export declare class SharePlugin {
|
|
@@ -67,7 +67,7 @@ export declare class SharePlugin {
|
|
|
67
67
|
singleton: boolean | undefined;
|
|
68
68
|
packageName: string | undefined;
|
|
69
69
|
eager: boolean | undefined;
|
|
70
|
-
treeShakingMode: "
|
|
70
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
71
71
|
};
|
|
72
72
|
}[];
|
|
73
73
|
_provides: {
|
|
@@ -79,7 +79,7 @@ export declare class SharePlugin {
|
|
|
79
79
|
singleton: boolean | undefined;
|
|
80
80
|
requiredVersion: string | false | undefined;
|
|
81
81
|
strictVersion: boolean | undefined;
|
|
82
|
-
treeShakingMode: "
|
|
82
|
+
treeShakingMode: "runtime-infer" | "server-calc" | undefined;
|
|
83
83
|
};
|
|
84
84
|
}[];
|
|
85
85
|
_enhanced: boolean;
|
|
@@ -12,5 +12,5 @@ type Selector<A, B> = (input: A) => B;
|
|
|
12
12
|
export declare const concatComparators: (...comps: Comparator[]) => Comparator;
|
|
13
13
|
export declare const compareIds: <T = string | number>(a: T, b: T) => -1 | 0 | 1;
|
|
14
14
|
export declare const compareSelect: <T, R>(getter: Selector<T, R>, comparator: Comparator) => Comparator;
|
|
15
|
-
export declare const compareNumbers: (a: number, b: number) =>
|
|
15
|
+
export declare const compareNumbers: (a: number, b: number) => -1 | 0 | 1;
|
|
16
16
|
export {};
|
|
@@ -13,4 +13,4 @@ import Hash from './hash';
|
|
|
13
13
|
* @param algorithm the algorithm name or a constructor creating a hash
|
|
14
14
|
* @returns the hash
|
|
15
15
|
*/
|
|
16
|
-
export declare const createHash: (algorithm:
|
|
16
|
+
export declare const createHash: (algorithm: 'xxhash64' | 'md4' | 'native-md4' | (string & {}) | (new () => Hash)) => Hash;
|
|
@@ -7,25 +7,52 @@ interface ParsedResource {
|
|
|
7
7
|
type ParsedResourceWithoutFragment = Omit<ParsedResource, 'fragment'>;
|
|
8
8
|
export declare const makePathsRelative: {
|
|
9
9
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
12
|
+
* @returns {function(string, string): string} cached function
|
|
13
|
+
*/
|
|
14
|
+
bindCache: (associatedObjectForCache: object | undefined) => ((arg0: string, arg1: string) => string);
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} context context used to create relative path
|
|
17
|
+
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
18
|
+
* @returns {function(string): string} cached function
|
|
19
|
+
*/
|
|
20
|
+
bindContextCache: (context: string, associatedObjectForCache: object | undefined) => ((arg0: string) => string);
|
|
12
21
|
};
|
|
13
22
|
export declare const contextify: {
|
|
14
23
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
/**
|
|
25
|
+
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
26
|
+
* @returns {function(string, string): string} cached function
|
|
27
|
+
*/
|
|
28
|
+
bindCache: (associatedObjectForCache: object | undefined) => ((arg0: string, arg1: string) => string);
|
|
29
|
+
/**
|
|
30
|
+
* @param {string} context context used to create relative path
|
|
31
|
+
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
32
|
+
* @returns {function(string): string} cached function
|
|
33
|
+
*/
|
|
34
|
+
bindContextCache: (context: string, associatedObjectForCache: object | undefined) => ((arg0: string) => string);
|
|
17
35
|
};
|
|
18
36
|
export declare const absolutify: {
|
|
19
37
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
20
|
-
|
|
21
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
40
|
+
* @returns {function(string, string): string} cached function
|
|
41
|
+
*/
|
|
42
|
+
bindCache: (associatedObjectForCache: object | undefined) => ((arg0: string, arg1: string) => string);
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} context context used to create relative path
|
|
45
|
+
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
46
|
+
* @returns {function(string): string} cached function
|
|
47
|
+
*/
|
|
48
|
+
bindContextCache: (context: string, associatedObjectForCache: object | undefined) => ((arg0: string) => string);
|
|
22
49
|
};
|
|
23
50
|
export declare const parseResource: {
|
|
24
51
|
(str: string, associatedObjectForCache?: object): ParsedResource;
|
|
25
|
-
bindCache(associatedObjectForCache: object)
|
|
52
|
+
bindCache: (associatedObjectForCache: object) => (str: string) => ParsedResource;
|
|
26
53
|
};
|
|
27
54
|
export declare const parseResourceWithoutFragment: {
|
|
28
55
|
(str: string, associatedObjectForCache?: object): ParsedResourceWithoutFragment;
|
|
29
|
-
bindCache(associatedObjectForCache: object)
|
|
56
|
+
bindCache: (associatedObjectForCache: object) => (str: string) => ParsedResourceWithoutFragment;
|
|
30
57
|
};
|
|
31
58
|
export {};
|
package/package.json
CHANGED