@rspack-debug/browser 2.0.1 → 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 +3 -3
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/browser/fs.d.ts +1 -7
- package/dist/browser/index.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 +8 -1
- package/dist/builtin-plugin/rsc/index.d.ts +6 -6
- 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 +451 -429
- package/dist/lib/CacheFacade.d.ts +1 -1
- package/dist/napi-binding.d.ts +32 -14
- 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/stats/statsFactoryUtils.d.ts +3 -3
- 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 +2 -3
package/dist/Compilation.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface Asset {
|
|
|
45
45
|
info: AssetInfo;
|
|
46
46
|
}
|
|
47
47
|
export type ChunkPathData = {
|
|
48
|
-
id?: string;
|
|
48
|
+
id?: string | number;
|
|
49
49
|
name?: string;
|
|
50
50
|
hash?: string;
|
|
51
51
|
contentHash?: Record<string, string>;
|
|
@@ -56,7 +56,7 @@ export type PathData = {
|
|
|
56
56
|
contentHash?: string;
|
|
57
57
|
runtime?: string;
|
|
58
58
|
url?: string;
|
|
59
|
-
id?: string;
|
|
59
|
+
id?: string | number;
|
|
60
60
|
chunk?: Chunk | ChunkPathData;
|
|
61
61
|
contentHashType?: string;
|
|
62
62
|
};
|
|
@@ -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 };
|
package/dist/browser/fs.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ import type { IFs, memfs as Memfs, Volume } from 'memfs';
|
|
|
2
2
|
export declare const fs: IFs;
|
|
3
3
|
export declare const volume: Volume;
|
|
4
4
|
export declare const memfs: typeof Memfs;
|
|
5
|
-
declare const readFileSync:
|
|
6
|
-
(path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/node/Stats").Stats>): void;
|
|
7
|
-
(path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IStatOptions, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/node/Stats").Stats>): void;
|
|
8
|
-
}, existsSync: (path: import("memfs/lib/node/types/misc").PathLike) => boolean, readdir: {
|
|
9
|
-
(path: import("memfs/lib/node/types/misc").PathLike, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/node/Dirent").Dirent[]>): any;
|
|
10
|
-
(path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IReaddirOptions | string, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/node/Dirent").Dirent[]>): any;
|
|
11
|
-
}, watch: (path: import("memfs/lib/node/types/misc").PathLike, options?: import("memfs/lib/node/volume").IWatchOptions | string, listener?: (eventType: string, filename: string) => void) => import("memfs/lib/node/volume").FSWatcher;
|
|
5
|
+
declare const readFileSync: typeof import("fs").readFileSync, readdirSync: typeof import("fs").readdirSync, lstat: typeof import("fs").lstat, existsSync: typeof import("fs").existsSync, readdir: typeof import("fs").readdir, watch: typeof import("fs").watch;
|
|
12
6
|
export default fs;
|
|
13
7
|
export { existsSync, lstat, readdir, readdirSync, readFileSync, watch };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { BrowserRequirePlugin } from './BrowserRequirePlugin';
|
|
|
4
4
|
export declare const builtinMemFs: {
|
|
5
5
|
fs: import("memfs").IFs;
|
|
6
6
|
volume: import("memfs").Volume;
|
|
7
|
-
memfs: (json?: import("memfs").NestedDirectoryJSON,
|
|
7
|
+
memfs: (json?: import("memfs").NestedDirectoryJSON, cwdOrOpts?: string | import("memfs").MemfsOptions) => {
|
|
8
8
|
fs: import("memfs").IFs;
|
|
9
9
|
vol: import("memfs").Volume;
|
|
10
10
|
};
|
|
@@ -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,12 +24,19 @@ 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;
|
|
32
|
-
|
|
38
|
+
cssLink?: RscCssLinkOptions | null;
|
|
39
|
+
onServerComponentChanges?: () => void | Promise<void>;
|
|
33
40
|
onManifest?: (manifest: RscManifest) => void | Promise<void>;
|
|
34
41
|
};
|
|
35
42
|
export declare class RscServerPlugin extends RspackBuiltinPlugin {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { RscClientPlugin
|
|
2
|
-
import { RscServerPlugin } from './RscServerPlugin';
|
|
1
|
+
import { RscClientPlugin } from './RscClientPlugin';
|
|
2
|
+
import { RscServerPlugin, type RscServerPluginOptions } from './RscServerPlugin';
|
|
3
3
|
declare class ServerPlugin extends RscServerPlugin {
|
|
4
|
-
constructor(options?: Omit<
|
|
4
|
+
constructor(options?: Omit<RscServerPluginOptions, 'coordinator'>);
|
|
5
5
|
}
|
|
6
6
|
declare class ClientPlugin extends RscClientPlugin {
|
|
7
7
|
}
|
|
8
8
|
export declare const rsc: {
|
|
9
9
|
createPlugins: () => {
|
|
10
|
-
ServerPlugin: new (options?: Omit<
|
|
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';
|