@rspack/core 2.0.0-beta.7 → 2.0.0-beta.9
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/compiled/@swc/types/index.d.ts +15 -9
- package/compiled/@swc/types/package.json +1 -1
- package/compiled/watchpack/index.d.ts +2 -0
- package/compiled/webpack-sources/package.json +1 -1
- package/dist/BuildInfo.d.ts +1 -1
- package/dist/Compilation.d.ts +4 -2
- package/dist/Compiler.d.ts +3 -3
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/FileSystem.d.ts +1 -1
- package/dist/Module.d.ts +1 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/MultiWatching.d.ts +1 -1
- package/dist/NativeWatchFileSystem.d.ts +1 -1
- package/dist/NormalModule.d.ts +1 -1
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/Watching.d.ts +1 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
- package/dist/builtin-loader/swc/types.d.ts +7 -1
- package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/devServer.d.ts +3 -3
- package/dist/config/types.d.ts +5 -2
- package/dist/exports.d.ts +4 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.js +91 -80
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +1 -1
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/swc.d.ts +2 -2
- package/dist/taps/types.d.ts +1 -1
- package/dist/util/source.d.ts +1 -1
- package/dist/worker.js +20 -3
- package/package.json +8 -8
- package/dist/rslib-runtime.js +0 -29
- /package/compiled/webpack-sources/{types.d.ts → index.d.ts} +0 -0
|
@@ -293,6 +293,8 @@ interface TerserCompressOptions {
|
|
|
293
293
|
unsafe_proto?: boolean;
|
|
294
294
|
unsafe_regexp?: boolean;
|
|
295
295
|
unsafe_undefined?: boolean;
|
|
296
|
+
unsafe_hoist_static_method_alias?: boolean;
|
|
297
|
+
unsafe_hoist_global_objects_alias?: boolean;
|
|
296
298
|
unused?: boolean;
|
|
297
299
|
const_to_let?: boolean;
|
|
298
300
|
module?: boolean;
|
|
@@ -386,27 +388,27 @@ interface Options extends Config {
|
|
|
386
388
|
*
|
|
387
389
|
* "root" - Passes the "root" value through as unchanged.
|
|
388
390
|
* "upward" - Walks upward from the "root" directory, looking for a directory
|
|
389
|
-
* containing a
|
|
391
|
+
* containing a .swcrc file, and throws an error if a .swcrc
|
|
390
392
|
* is not found.
|
|
391
393
|
* "upward-optional" - Walk upward from the "root" directory, looking for
|
|
392
|
-
* a directory containing a
|
|
393
|
-
* if a
|
|
394
|
+
* a directory containing a .swcrc file, and falls back to "root"
|
|
395
|
+
* if a .swcrc is not found.
|
|
394
396
|
*
|
|
395
397
|
*
|
|
396
398
|
* "root" is the default mode because it avoids the risk that Swc
|
|
397
|
-
* will accidentally load a
|
|
399
|
+
* will accidentally load a .swcrc that is entirely outside
|
|
398
400
|
* of the current project folder. If you use "upward-optional",
|
|
399
401
|
* be aware that it will walk up the directory structure all the
|
|
400
402
|
* way to the filesystem root, and it is always possible that someone
|
|
401
|
-
* will have a forgotten
|
|
403
|
+
* will have a forgotten .swcrc in their home directory,
|
|
402
404
|
* which could cause unexpected errors in your builds.
|
|
403
405
|
*
|
|
404
406
|
*
|
|
405
407
|
* Users with monorepo project structures that run builds/tests on a
|
|
406
408
|
* per-package basis may well want to use "upward" since monorepos
|
|
407
|
-
* often have a
|
|
409
|
+
* often have a .swcrc in the project root. Running Swc
|
|
408
410
|
* in a monorepo subdirectory without "upward", will cause Swc
|
|
409
|
-
* to skip loading any
|
|
411
|
+
* to skip loading any .swcrc files in the project root,
|
|
410
412
|
* which can lead to unexpected errors and compilation failure.
|
|
411
413
|
*/
|
|
412
414
|
rootMode?: "root" | "upward" | "upward-optional";
|
|
@@ -595,6 +597,10 @@ interface JscConfig {
|
|
|
595
597
|
* This option only works when `keepImportAttributes` is `true`.
|
|
596
598
|
*/
|
|
597
599
|
emitAssertForImportAttributes?: boolean;
|
|
600
|
+
/**
|
|
601
|
+
* Emit ECMA-426 source-map scopes metadata.
|
|
602
|
+
*/
|
|
603
|
+
emitSourceMapScopes?: boolean;
|
|
598
604
|
/**
|
|
599
605
|
* Specify the location where SWC stores its intermediate cache files.
|
|
600
606
|
* Currently only transform plugin uses this. If not specified, SWC will
|
|
@@ -775,7 +781,7 @@ interface TransformConfig {
|
|
|
775
781
|
/**
|
|
776
782
|
* https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
|
|
777
783
|
*/
|
|
778
|
-
decoratorVersion?: "2021-12" | "2022-03";
|
|
784
|
+
decoratorVersion?: "2021-12" | "2022-03" | "2023-11";
|
|
779
785
|
treatConstEnumAsEnum?: boolean;
|
|
780
786
|
/**
|
|
781
787
|
* https://www.typescriptlang.org/tsconfig#useDefineForClassFields
|
|
@@ -1443,7 +1449,7 @@ interface JSXAttribute extends Node, HasSpan {
|
|
|
1443
1449
|
value?: JSXAttrValue;
|
|
1444
1450
|
}
|
|
1445
1451
|
type JSXAttributeName = Identifier | JSXNamespacedName;
|
|
1446
|
-
type JSXAttrValue =
|
|
1452
|
+
type JSXAttrValue = StringLiteral | JSXExpressionContainer | JSXElement | JSXFragment;
|
|
1447
1453
|
interface JSXText extends Node, HasSpan {
|
|
1448
1454
|
type: "JSXText";
|
|
1449
1455
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.
|
|
1
|
+
{"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.26","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"webpack-sources","author":"Tobias Koppers @sokra","version":"3.3.4","license":"MIT","types":"
|
|
1
|
+
{"name":"webpack-sources","author":"Tobias Koppers @sokra","version":"3.3.4","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/dist/BuildInfo.d.ts
CHANGED
package/dist/Compilation.d.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
import type { AssetInfo, ChunkGroup, Dependency, ExternalObject, JsCompilation } from '@rspack/binding';
|
|
11
11
|
import binding from '@rspack/binding';
|
|
12
12
|
export type { AssetInfo } from '@rspack/binding';
|
|
13
|
-
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist';
|
|
14
|
-
import type { Source } from '../compiled/webpack-sources';
|
|
13
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
14
|
+
import type { Source } from '../compiled/webpack-sources/index.js';
|
|
15
15
|
import type { EntryOptions, EntryPlugin } from './builtin-plugin/index.js';
|
|
16
16
|
import type { Chunk } from './Chunk.js';
|
|
17
17
|
import type { ChunkGraph } from './ChunkGraph.js';
|
|
@@ -433,6 +433,8 @@ export declare class Entries implements Map<string, EntryData> {
|
|
|
433
433
|
has(key: string): boolean;
|
|
434
434
|
set(key: string, value: EntryData): this;
|
|
435
435
|
delete(key: string): boolean;
|
|
436
|
+
getOrInsert(key: string, defaultValue: EntryData): EntryData;
|
|
437
|
+
getOrInsertComputed(key: string, callback: (key: string) => EntryData): EntryData;
|
|
436
438
|
get(key: string): EntryData | undefined;
|
|
437
439
|
keys(): ReturnType<Map<string, EntryData>['keys']>;
|
|
438
440
|
}
|
package/dist/Compiler.d.ts
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type binding from '@rspack/binding';
|
|
11
|
-
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist';
|
|
12
|
-
import type Watchpack from '../compiled/watchpack';
|
|
13
|
-
import type { Source } from '../compiled/webpack-sources';
|
|
11
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
12
|
+
import type Watchpack from '../compiled/watchpack/index.js';
|
|
13
|
+
import type { Source } from '../compiled/webpack-sources/index.js';
|
|
14
14
|
import type { Chunk } from './Chunk.js';
|
|
15
15
|
import type { CompilationParams } from './Compilation.js';
|
|
16
16
|
import { Compilation } from './Compilation.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist';
|
|
1
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
2
2
|
import type { ContextModuleFactoryAfterResolveResult, ContextModuleFactoryBeforeResolveResult } from './Module.js';
|
|
3
3
|
export declare class ContextModuleFactory {
|
|
4
4
|
hooks: {
|
package/dist/FileSystem.d.ts
CHANGED
|
@@ -51,4 +51,4 @@ declare class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
|
51
51
|
constructor(fs?: IntermediateFileSystem);
|
|
52
52
|
static __to_binding(fs?: IntermediateFileSystem): ThreadsafeIntermediateNodeFS;
|
|
53
53
|
}
|
|
54
|
-
export { ThreadsafeInputNodeFS,
|
|
54
|
+
export { ThreadsafeInputNodeFS, ThreadsafeIntermediateNodeFS, ThreadsafeOutputNodeFS, };
|
package/dist/Module.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import binding, { type AssetInfo } from '@rspack/binding';
|
|
2
|
-
import type { Source } from '../compiled/webpack-sources';
|
|
2
|
+
import type { Source } from '../compiled/webpack-sources/index.js';
|
|
3
3
|
import type { ResourceData } from './Resolver.js';
|
|
4
4
|
import './BuildInfo.js';
|
|
5
5
|
export type ResourceDataWithData = ResourceData & {
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist';
|
|
10
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
11
11
|
import type { CompilationParams, Compiler, CompilerHooks, RspackOptions } from './index.js';
|
|
12
12
|
import type { WatchOptions } from './config/index.js';
|
|
13
13
|
import MultiStats from './MultiStats.js';
|
package/dist/MultiWatching.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Callback } from '../compiled/@rspack/lite-tapable/dist';
|
|
10
|
+
import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
11
11
|
import type { MultiCompiler } from './MultiCompiler.js';
|
|
12
12
|
import type { Watching } from './Watching.js';
|
|
13
13
|
declare class MultiWatching {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import binding from '@rspack/binding';
|
|
2
|
-
import type Watchpack from '../compiled/watchpack';
|
|
2
|
+
import type Watchpack from '../compiled/watchpack/index.js';
|
|
3
3
|
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from './util/fs.js';
|
|
4
4
|
export default class NativeWatchFileSystem implements WatchFileSystem {
|
|
5
5
|
#private;
|
package/dist/NormalModule.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist';
|
|
1
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
2
2
|
import type { Compilation } from './Compilation.js';
|
|
3
3
|
import type { LoaderContext } from './config/index.js';
|
|
4
4
|
import type { Module } from './Module.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist';
|
|
2
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import type { ResolveData, ResourceDataWithData } from './Module.js';
|
|
4
4
|
import type { ResolveOptionsWithDependencyType, ResolverFactory } from './ResolverFactory.js';
|
|
5
5
|
export type NormalModuleCreateData = binding.JsNormalModuleFactoryCreateModuleArgs & {
|
package/dist/Watching.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Callback } from '../compiled/@rspack/lite-tapable/dist';
|
|
10
|
+
import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
11
11
|
import type { Compiler } from './index.js';
|
|
12
12
|
import { Stats } from './index.js';
|
|
13
13
|
import type { WatchOptions } from './config/index.js';
|
|
@@ -29,5 +29,5 @@ type PluginImportConfig = {
|
|
|
29
29
|
};
|
|
30
30
|
type PluginImportOptions = PluginImportConfig[];
|
|
31
31
|
declare function resolvePluginImport(pluginImport: PluginImportOptions): RawPluginImportConfig[] | undefined;
|
|
32
|
-
export { resolvePluginImport };
|
|
33
32
|
export type { PluginImportOptions };
|
|
33
|
+
export { resolvePluginImport };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Config, EnvConfig, EsParserConfig, JscConfig, ModuleConfig, ParserConfig, TerserEcmaVersion, TransformConfig, TsParserConfig } from '../../../compiled/@swc/types';
|
|
1
|
+
import type { Config, EnvConfig, EsParserConfig, JscConfig, ModuleConfig, ParserConfig, TerserEcmaVersion, TransformConfig, TsParserConfig } from '../../../compiled/@swc/types/index.js';
|
|
2
2
|
import type { CollectTypeScriptInfoOptions } from './collectTypeScriptInfo.js';
|
|
3
3
|
import type { PluginImportOptions } from './pluginImport.js';
|
|
4
4
|
export type SwcLoaderEnvConfig = EnvConfig;
|
|
@@ -9,6 +9,12 @@ export type SwcLoaderEsParserConfig = EsParserConfig;
|
|
|
9
9
|
export type SwcLoaderTsParserConfig = TsParserConfig;
|
|
10
10
|
export type SwcLoaderTransformConfig = TransformConfig;
|
|
11
11
|
export type SwcLoaderOptions = Config & {
|
|
12
|
+
/**
|
|
13
|
+
* When set to `"auto"`, `builtin:swc-loader` infers `jsc.parser` from the resource extension.
|
|
14
|
+
* This is useful when one rule needs to handle mixed module types such as `.js`, `.jsx`, `.ts`, and `.tsx`.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
detectSyntax?: false | 'auto';
|
|
12
18
|
isModule?: boolean | 'unknown';
|
|
13
19
|
/**
|
|
14
20
|
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const EsmNodeTargetPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist';
|
|
2
|
+
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import type { Chunk } from '../Chunk.js';
|
|
4
4
|
import { type Compilation } from '../Compilation.js';
|
|
5
5
|
import type Hash from '../util/hash/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsRsdoctorAsset, type JsRsdoctorAssetPatch, type JsRsdoctorChunk, type JsRsdoctorChunkAssets, type JsRsdoctorChunkGraph, type JsRsdoctorChunkModules, type JsRsdoctorConnectionsOnlyImport, type JsRsdoctorConnectionsOnlyImportConnection, type JsRsdoctorDependency, type JsRsdoctorEntrypoint, type JsRsdoctorEntrypointAssets, type JsRsdoctorExportInfo, type JsRsdoctorModule, type JsRsdoctorModuleGraph, type JsRsdoctorModuleGraphModule, type JsRsdoctorModuleIdsPatch, type JsRsdoctorModuleOriginalSource, type JsRsdoctorModuleSourcesPatch, type JsRsdoctorSideEffect, type JsRsdoctorSourcePosition, type JsRsdoctorSourceRange, type JsRsdoctorStatement, type JsRsdoctorVariable } from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist';
|
|
2
|
+
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import { type Compilation } from '../Compilation.js';
|
|
4
4
|
import type { Compiler } from '../Compiler.js';
|
|
5
5
|
import type { CreatePartialRegisters } from '../taps/types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import binding from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist';
|
|
2
|
+
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import type { Chunk } from '../Chunk.js';
|
|
4
4
|
import { type Compilation } from '../Compilation.js';
|
|
5
5
|
import type { CreatePartialRegisters } from '../taps/types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '../../../compiled/@rspack/lite-tapable/dist';
|
|
2
|
+
import * as liteTapable from '../../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import { type Compilation } from '../../Compilation.js';
|
|
4
4
|
import type { HtmlRspackPluginOptions } from './options.js';
|
|
5
5
|
type ExtraPluginHookData = {
|
|
@@ -28,6 +28,7 @@ export * from './EnableWasmLoadingPlugin.js';
|
|
|
28
28
|
export * from './EnsureChunkConditionsPlugin.js';
|
|
29
29
|
export * from './EntryPlugin.js';
|
|
30
30
|
export * from './EsmLibraryPlugin.js';
|
|
31
|
+
export * from './EsmNodeTargetPlugin.js';
|
|
31
32
|
export * from './EvalDevToolModulePlugin.js';
|
|
32
33
|
export * from './EvalSourceMapDevToolPlugin.js';
|
|
33
34
|
export * from './ExternalsPlugin.js';
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
import type { ReadStream } from 'node:fs';
|
|
11
11
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
12
12
|
import type { ServerOptions } from 'node:https';
|
|
13
|
-
import type { Server as ConnectApplication, NextFunction } from '../../compiled/connect-next';
|
|
14
|
-
import type { Filter as ProxyFilter, Options as ProxyOptions } from '../../compiled/http-proxy-middleware';
|
|
15
|
-
import type { Options as OpenOptions } from '../../compiled/open';
|
|
13
|
+
import type { Server as ConnectApplication, NextFunction } from '../../compiled/connect-next/index.js';
|
|
14
|
+
import type { Filter as ProxyFilter, Options as ProxyOptions } from '../../compiled/http-proxy-middleware/index.js';
|
|
15
|
+
import type { Options as OpenOptions } from '../../compiled/open/index.js';
|
|
16
16
|
import type { Compiler, Configuration, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from '../index.js';
|
|
17
17
|
type Logger = ReturnType<Compiler['getInfrastructureLogger']>;
|
|
18
18
|
type MultiWatching = MultiCompiler['watch'];
|
package/dist/config/types.d.ts
CHANGED
|
@@ -600,8 +600,6 @@ export type ResolveOptions = {
|
|
|
600
600
|
byDependency?: Record<string, ResolveOptions>;
|
|
601
601
|
/** enable Yarn PnP */
|
|
602
602
|
pnp?: boolean;
|
|
603
|
-
/** Path to PnP manifest file */
|
|
604
|
-
pnpManifest?: string | false;
|
|
605
603
|
};
|
|
606
604
|
/** Used to configure the Rspack module resolution */
|
|
607
605
|
export type Resolve = ResolveOptions;
|
|
@@ -895,6 +893,11 @@ export type JavascriptParserOptions = {
|
|
|
895
893
|
* @default false
|
|
896
894
|
*/
|
|
897
895
|
deferImport?: boolean;
|
|
896
|
+
/**
|
|
897
|
+
* Whether to enable import.meta.resolve().
|
|
898
|
+
* @default false
|
|
899
|
+
*/
|
|
900
|
+
importMetaResolve?: boolean;
|
|
898
901
|
};
|
|
899
902
|
export type JsonParserOptions = {
|
|
900
903
|
/**
|
package/dist/exports.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare const rspackVersion: string;
|
|
2
2
|
declare const version: string;
|
|
3
|
-
export { rspackVersion, version };
|
|
4
3
|
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData, } from './Compilation.js';
|
|
5
4
|
export { Compilation } from './Compilation.js';
|
|
6
5
|
export { Compiler, type CompilerHooks } from './Compiler.js';
|
|
7
6
|
export type { MultiCompilerOptions, MultiRspackOptions } from './MultiCompiler.js';
|
|
8
7
|
export { MultiCompiler } from './MultiCompiler.js';
|
|
8
|
+
export { rspackVersion, version };
|
|
9
9
|
import { RspackOptionsApply } from './rspackOptionsApply.js';
|
|
10
|
-
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
10
|
export type { ChunkGroup } from '@rspack/binding';
|
|
12
11
|
export { AsyncDependenciesBlock, Dependency, EntryDependency, } from '@rspack/binding';
|
|
13
12
|
export type { Chunk } from './Chunk.js';
|
|
@@ -26,12 +25,13 @@ export { RuntimeModule } from './RuntimeModule.js';
|
|
|
26
25
|
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats.js';
|
|
27
26
|
export { Stats } from './Stats.js';
|
|
28
27
|
export { StatsErrorCode } from './stats/statsFactoryUtils.js';
|
|
28
|
+
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
29
29
|
import * as ModuleFilenameHelpers from './lib/ModuleFilenameHelpers.js';
|
|
30
|
-
export { ModuleFilenameHelpers };
|
|
31
30
|
export { Template } from './Template.js';
|
|
31
|
+
export { ModuleFilenameHelpers };
|
|
32
32
|
export declare const WebpackError: ErrorConstructor;
|
|
33
33
|
export type { Watching } from './Watching.js';
|
|
34
|
-
import * as sources from '../compiled/webpack-sources';
|
|
34
|
+
import * as sources from '../compiled/webpack-sources/index.js';
|
|
35
35
|
export { sources };
|
|
36
36
|
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from './config/index.js';
|
|
37
37
|
type Config = {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,14 +1,40 @@
|
|
|
1
1
|
let createMd4, createXxhash64, service_pool, loadLoader_url;
|
|
2
|
-
import
|
|
3
|
-
import { createRequire as __rspack_createRequire
|
|
4
|
-
let __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
5
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
6
|
-
import node_util, { format as external_node_util_format, inspect, promisify } from "node:util";
|
|
2
|
+
import node_util, { inspect, promisify } from "node:util";
|
|
3
|
+
import { createRequire, createRequire as __rspack_createRequire } from "node:module";
|
|
7
4
|
import node_path, { isAbsolute, join, relative, resolve as external_node_path_resolve, sep } from "node:path";
|
|
8
5
|
import node_querystring from "node:querystring";
|
|
9
6
|
import node_fs, { readFileSync } from "node:fs";
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
let __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
8
|
+
import * as __rspack_external_node_util_1b29d436 from "node:util";
|
|
9
|
+
var RuntimeGlobals, StatsErrorCode, _computedKey, _computedKey1, _computedKey2, ArrayQueue_computedKey, __webpack_modules__ = {}, __webpack_module_cache__ = {};
|
|
10
|
+
function __webpack_require__(moduleId) {
|
|
11
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
12
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
13
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
14
|
+
exports: {}
|
|
15
|
+
};
|
|
16
|
+
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
17
|
+
}
|
|
18
|
+
__webpack_require__.m = __webpack_modules__, __webpack_require__.n = (module)=>{
|
|
19
|
+
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
20
|
+
return __webpack_require__.d(getter, {
|
|
21
|
+
a: getter
|
|
22
|
+
}), getter;
|
|
23
|
+
}, __webpack_require__.d = (exports, definition)=>{
|
|
24
|
+
for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key) && Object.defineProperty(exports, key, {
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
get: definition[key]
|
|
27
|
+
});
|
|
28
|
+
}, __webpack_require__.add = function(modules) {
|
|
29
|
+
Object.assign(__webpack_require__.m, modules);
|
|
30
|
+
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
|
|
31
|
+
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
|
|
32
|
+
value: 'Module'
|
|
33
|
+
}), Object.defineProperty(exports, '__esModule', {
|
|
34
|
+
value: !0
|
|
35
|
+
});
|
|
36
|
+
}, __webpack_require__.add({
|
|
37
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
12
38
|
let { nextTick } = __webpack_require__("process"), dirname = (path)=>{
|
|
13
39
|
let idx = path.length - 1;
|
|
14
40
|
for(; idx >= 0;){
|
|
@@ -214,10 +240,10 @@ __webpack_require__.add({
|
|
|
214
240
|
};
|
|
215
241
|
},
|
|
216
242
|
process (module) {
|
|
217
|
-
module.exports =
|
|
243
|
+
module.exports = __rspack_createRequire_require("process");
|
|
218
244
|
}
|
|
219
245
|
});
|
|
220
|
-
var
|
|
246
|
+
var browserslistTargetHandler_namespaceObject = {};
|
|
221
247
|
__webpack_require__.r(browserslistTargetHandler_namespaceObject), __webpack_require__.d(browserslistTargetHandler_namespaceObject, {
|
|
222
248
|
resolve: ()=>browserslistTargetHandler_resolve
|
|
223
249
|
});
|
|
@@ -784,7 +810,7 @@ let cutOffLoaderExecution = (stack)=>((stack, flag)=>{
|
|
|
784
810
|
for(let i = 0; i < stacks.length; i++)stacks[i].includes(flag) && (stacks.length = i);
|
|
785
811
|
return stacks.join('\n');
|
|
786
812
|
})(stack, 'LOADER_EXECUTION');
|
|
787
|
-
class
|
|
813
|
+
class WebpackError_WebpackError extends Error {
|
|
788
814
|
loc;
|
|
789
815
|
file;
|
|
790
816
|
chunk;
|
|
@@ -792,14 +818,14 @@ class WebpackError extends Error {
|
|
|
792
818
|
details;
|
|
793
819
|
hideStack;
|
|
794
820
|
}
|
|
795
|
-
Object.defineProperty(
|
|
821
|
+
Object.defineProperty(WebpackError_WebpackError.prototype, inspect.custom, {
|
|
796
822
|
value: function() {
|
|
797
823
|
return this.stack + (this.details ? `\n${this.details}` : '');
|
|
798
824
|
},
|
|
799
825
|
enumerable: !1,
|
|
800
826
|
configurable: !0
|
|
801
827
|
});
|
|
802
|
-
let lib_WebpackError =
|
|
828
|
+
let lib_WebpackError = WebpackError_WebpackError, LogType = Object.freeze({
|
|
803
829
|
error: 'error',
|
|
804
830
|
warn: 'warn',
|
|
805
831
|
info: 'info',
|
|
@@ -1591,7 +1617,7 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
|
1591
1617
|
}
|
|
1592
1618
|
};
|
|
1593
1619
|
}
|
|
1594
|
-
|
|
1620
|
+
const index_js_namespaceObject = __rspack_createRequire_require("../compiled/webpack-sources/index.js");
|
|
1595
1621
|
class SourceAdapter {
|
|
1596
1622
|
static fromBinding(source) {
|
|
1597
1623
|
return source.map ? new index_js_namespaceObject.SourceMapSource(source.source, 'inmemory://from rust', source.map) : new index_js_namespaceObject.RawSource(source.source);
|
|
@@ -2362,6 +2388,12 @@ class Entries {
|
|
|
2362
2388
|
delete(key) {
|
|
2363
2389
|
return this.#data.delete(key);
|
|
2364
2390
|
}
|
|
2391
|
+
getOrInsert(key, defaultValue) {
|
|
2392
|
+
return this.has(key) || this.set(key, defaultValue), this.get(key);
|
|
2393
|
+
}
|
|
2394
|
+
getOrInsertComputed(key, callback) {
|
|
2395
|
+
return this.has(key) || this.set(key, callback(key)), this.get(key);
|
|
2396
|
+
}
|
|
2365
2397
|
get(key) {
|
|
2366
2398
|
let binding = this.#data.get(key);
|
|
2367
2399
|
return binding ? EntryData.__from_binding(binding) : void 0;
|
|
@@ -2655,28 +2687,6 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2655
2687
|
}
|
|
2656
2688
|
}
|
|
2657
2689
|
}
|
|
2658
|
-
let EnableLibraryPlugin_enabledTypes = new WeakMap(), EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
2659
|
-
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
2660
|
-
return void 0 === set && (set = new Set(), EnableLibraryPlugin_enabledTypes.set(compiler, set)), set;
|
|
2661
|
-
};
|
|
2662
|
-
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
2663
|
-
type;
|
|
2664
|
-
name = binding_namespaceObject.BuiltinPluginName.EnableLibraryPlugin;
|
|
2665
|
-
constructor(type){
|
|
2666
|
-
super(), this.type = type;
|
|
2667
|
-
}
|
|
2668
|
-
static setEnabled(compiler, type) {
|
|
2669
|
-
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
2670
|
-
}
|
|
2671
|
-
static checkEnabled(compiler, type) {
|
|
2672
|
-
if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
|
|
2673
|
-
}
|
|
2674
|
-
raw(compiler) {
|
|
2675
|
-
let type = this.type, enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
2676
|
-
if (!enabled.has(type)) return enabled.add(type), createBuiltinPlugin(this.name, type);
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
let EnableWasmLoadingPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), RemoveDuplicateModulesPlugin = base_create(binding_namespaceObject.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
2680
2690
|
class JsSplitChunkSizes {
|
|
2681
2691
|
static __to_binding(sizes) {
|
|
2682
2692
|
return 'number' == typeof sizes ? sizes : sizes && 'object' == typeof sizes ? {
|
|
@@ -2692,12 +2702,12 @@ class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
|
2692
2702
|
super(), this.options = options;
|
|
2693
2703
|
}
|
|
2694
2704
|
raw(compiler) {
|
|
2695
|
-
let rawOptions =
|
|
2705
|
+
let rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
|
|
2696
2706
|
if (void 0 === rawOptions) throw Error('rawOptions should not be undefined');
|
|
2697
2707
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
2698
2708
|
}
|
|
2699
2709
|
}
|
|
2700
|
-
function
|
|
2710
|
+
function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
|
|
2701
2711
|
if (!sc) return;
|
|
2702
2712
|
function getName(name) {
|
|
2703
2713
|
return 'function' == typeof name ? (ctx)=>void 0 === ctx.module ? name(void 0) : name(ctx.module, getChunks(ctx.chunks), ctx.cacheGroupKey) : name;
|
|
@@ -2746,30 +2756,33 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
2746
2756
|
...passThrough
|
|
2747
2757
|
};
|
|
2748
2758
|
}
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
this.options = options ?? {};
|
|
2759
|
+
let EnableLibraryPlugin_enabledTypes = new WeakMap(), EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
2760
|
+
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
2761
|
+
return void 0 === set && (set = new Set(), EnableLibraryPlugin_enabledTypes.set(compiler, set)), set;
|
|
2762
|
+
};
|
|
2763
|
+
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
2764
|
+
type;
|
|
2765
|
+
name = binding_namespaceObject.BuiltinPluginName.EnableLibraryPlugin;
|
|
2766
|
+
constructor(type){
|
|
2767
|
+
super(), this.type = type;
|
|
2759
2768
|
}
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
compiler.
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2769
|
+
static setEnabled(compiler, type) {
|
|
2770
|
+
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
2771
|
+
}
|
|
2772
|
+
static checkEnabled(compiler, type) {
|
|
2773
|
+
if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
|
|
2774
|
+
}
|
|
2775
|
+
raw(compiler) {
|
|
2776
|
+
let type = this.type, enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
2777
|
+
if (!enabled.has(type)) return enabled.add(type), createBuiltinPlugin(this.name, {
|
|
2778
|
+
libraryType: type,
|
|
2779
|
+
preserveModules: compiler.options.output.library?.preserveModules,
|
|
2780
|
+
splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? !1, compiler)
|
|
2770
2781
|
});
|
|
2771
2782
|
}
|
|
2772
2783
|
}
|
|
2784
|
+
let EnableWasmLoadingPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin = base_create(binding_namespaceObject.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
2785
|
+
base_create(binding_namespaceObject.BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
|
|
2773
2786
|
let EvalDevToolModulePlugin = base_create(binding_namespaceObject.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation'), EvalSourceMapDevToolPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
2774
2787
|
function isNil(value) {
|
|
2775
2788
|
return null == value;
|
|
@@ -4453,7 +4466,8 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
4453
4466
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
4454
4467
|
typeReexportsPresence: parser.typeReexportsPresence,
|
|
4455
4468
|
jsx: parser.jsx,
|
|
4456
|
-
deferImport: parser.deferImport
|
|
4469
|
+
deferImport: parser.deferImport,
|
|
4470
|
+
importMetaResolve: parser.importMetaResolve
|
|
4457
4471
|
};
|
|
4458
4472
|
}
|
|
4459
4473
|
function getRawCssParserOptions(parser) {
|
|
@@ -6545,7 +6559,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6545
6559
|
assertNotNill(module.parser), assertNotNill(module.generator), F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), F(module.parser.asset, 'dataUrlCondition', ()=>({})), 'object' == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, 'maxSize', 8096), F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), ((parserOptions, { deferImport, outputModule })=>{
|
|
6546
6560
|
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, 'strictThisContextOnImports', !1), D(parserOptions, 'wrappedContextRegExp', /.*/), D(parserOptions, 'exportsPresence', 'error'), D(parserOptions, 'requireAsExpression', !0), D(parserOptions, 'requireAlias', !1), D(parserOptions, 'requireDynamic', !0), D(parserOptions, 'requireResolve', !0), D(parserOptions, 'commonjs', !0), D(parserOptions, 'importDynamic', !0), D(parserOptions, 'worker', [
|
|
6547
6561
|
'...'
|
|
6548
|
-
]), D(parserOptions, 'importMeta', !outputModule || 'preserve-unknown'), D(parserOptions, 'typeReexportsPresence', 'no-tolerant'), D(parserOptions, 'jsx', !1), D(parserOptions, 'deferImport', deferImport);
|
|
6562
|
+
]), D(parserOptions, 'importMeta', !outputModule || 'preserve-unknown'), D(parserOptions, 'typeReexportsPresence', 'no-tolerant'), D(parserOptions, 'jsx', !1), D(parserOptions, 'deferImport', deferImport), D(parserOptions, 'importMetaResolve', !1);
|
|
6549
6563
|
})(module.parser.javascript, {
|
|
6550
6564
|
deferImport,
|
|
6551
6565
|
outputModule
|
|
@@ -6690,7 +6704,11 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6690
6704
|
let enabledLibraryTypes = [];
|
|
6691
6705
|
return output.library && enabledLibraryTypes.push(output.library.type), forEachEntry((desc)=>{
|
|
6692
6706
|
desc.library && enabledLibraryTypes.push(desc.library.type);
|
|
6693
|
-
}), enabledLibraryTypes.includes('modern-module') &&
|
|
6707
|
+
}), enabledLibraryTypes.includes('modern-module') && function(options) {
|
|
6708
|
+
options.optimization.concatenateModules = !1, options.optimization.removeEmptyChunks = !1, options.output.chunkFormat = !1, options.output.module = !0, options.output.chunkLoading && 'import' !== options.output.chunkLoading && (options.output.chunkLoading = 'import'), void 0 === options.output.chunkLoading && (options.output.chunkLoading = 'import');
|
|
6709
|
+
let { splitChunks } = options.optimization;
|
|
6710
|
+
void 0 === splitChunks && (splitChunks = options.optimization.splitChunks = {}), !1 !== splitChunks && (splitChunks.chunks = 'all', splitChunks.minSize = 0, splitChunks.maxAsyncRequests = 1 / 0, splitChunks.maxInitialRequests = 1 / 0, splitChunks.cacheGroups ??= {}, splitChunks.cacheGroups.default = !1, splitChunks.cacheGroups.defaultVendors = !1);
|
|
6711
|
+
}(options), enabledLibraryTypes;
|
|
6694
6712
|
}), D(output, 'module', [
|
|
6695
6713
|
'modern-module',
|
|
6696
6714
|
'module'
|
|
@@ -6816,7 +6834,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6816
6834
|
return output.wasmLoading && enabledWasmLoadingTypes.add(output.wasmLoading), output.workerWasmLoading && enabledWasmLoadingTypes.add(output.workerWasmLoading), forEachEntry((desc)=>{
|
|
6817
6835
|
desc.wasmLoading && enabledWasmLoadingTypes.add(desc.wasmLoading);
|
|
6818
6836
|
}), Array.from(enabledWasmLoadingTypes);
|
|
6819
|
-
}), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
6837
|
+
}), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-beta.9"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !output.library));
|
|
6820
6838
|
}, applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp, outputModule })=>{
|
|
6821
6839
|
let isUniversal = (key)=>!!(outputModule && targetProperties && null === targetProperties[key]);
|
|
6822
6840
|
D(externalsPresets, 'web', !buildHttp && targetProperties && (targetProperties.web || isUniversal('node'))), D(externalsPresets, 'node', targetProperties && (targetProperties.node || isUniversal('node'))), D(externalsPresets, 'electron', targetProperties && targetProperties.electron || isUniversal('electron')), D(externalsPresets, 'electronMain', targetProperties && !!targetProperties.electron && (targetProperties.electronMain || isUniversal('electronMain'))), D(externalsPresets, 'electronPreload', targetProperties && !!targetProperties.electron && (targetProperties.electronPreload || isUniversal('electronPreload'))), D(externalsPresets, 'electronRenderer', targetProperties && !!targetProperties.electron && (targetProperties.electronRenderer || isUniversal('electronRenderer'))), D(externalsPresets, 'nwjs', targetProperties && (targetProperties.nwjs || isUniversal('nwjs')));
|
|
@@ -8070,7 +8088,7 @@ class MultiStats {
|
|
|
8070
8088
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8071
8089
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8072
8090
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8073
|
-
}), childOptions.version && (obj.rspackVersion = "2.0.0-beta.
|
|
8091
|
+
}), childOptions.version && (obj.rspackVersion = "2.0.0-beta.9", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
|
|
8074
8092
|
let mapError = (j, obj)=>({
|
|
8075
8093
|
...obj,
|
|
8076
8094
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8567,7 +8585,7 @@ let arraySum = (array)=>{
|
|
|
8567
8585
|
let str = `${a}`, length = lengths[i];
|
|
8568
8586
|
return str.length === length ? str : length > 5 ? `...${str.slice(-length + 3)}` : length > 0 ? str.slice(-length) : '';
|
|
8569
8587
|
});
|
|
8570
|
-
}, CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
8588
|
+
}, CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
8571
8589
|
var CachedInputFileSystem_default = __webpack_require__.n(CachedInputFileSystem);
|
|
8572
8590
|
class NodeEnvironmentPlugin {
|
|
8573
8591
|
options;
|
|
@@ -8669,7 +8687,7 @@ class NodeEnvironmentPlugin {
|
|
|
8669
8687
|
if ('' === str) return str;
|
|
8670
8688
|
let prefixWithIndent = currentIndent + prefix;
|
|
8671
8689
|
return colors ? prefixWithIndent + colorPrefix + str.replace(/\n/g, `${colorSuffix}\n${prefix}${colorPrefix}`) + colorSuffix : prefixWithIndent + str.replace(/\n/g, `\n${prefix}`);
|
|
8672
|
-
})(
|
|
8690
|
+
})(__rspack_external_node_util_1b29d436.format(...args), prefix, colorPrefix, colorSuffix);
|
|
8673
8691
|
stream.write(`${str}\n`), writeStatusMessage();
|
|
8674
8692
|
}, writeGroupMessage = writeColored('<-> ', '\u001b[1m\u001b[36m', '\u001b[39m\u001b[22m'), writeGroupCollapsedMessage = writeColored('<+> ', '\u001b[1m\u001b[36m', '\u001b[39m\u001b[22m');
|
|
8675
8693
|
return {
|
|
@@ -9308,7 +9326,7 @@ let iterateConfig = (config, options, fn)=>{
|
|
|
9308
9326
|
let [label, first, second] = entry.args;
|
|
9309
9327
|
'number' == typeof first && 'number' == typeof second && (message = `${label}: ${1000 * first + second / 1000000} ms`);
|
|
9310
9328
|
}
|
|
9311
|
-
message || (message = entry.args?.length ?
|
|
9329
|
+
message || (message = entry.args?.length ? __rspack_external_node_util_1b29d436.format(entry.args[0], ...entry.args.slice(1)) : '');
|
|
9312
9330
|
let newEntry = {
|
|
9313
9331
|
type,
|
|
9314
9332
|
message: message || '',
|
|
@@ -9329,7 +9347,7 @@ let iterateConfig = (config, options, fn)=>{
|
|
|
9329
9347
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9330
9348
|
},
|
|
9331
9349
|
version: (object)=>{
|
|
9332
|
-
object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.
|
|
9350
|
+
object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.9";
|
|
9333
9351
|
},
|
|
9334
9352
|
env: (object, _compilation, _context, { _env })=>{
|
|
9335
9353
|
object.env = _env;
|
|
@@ -10594,16 +10612,8 @@ class RspackOptionsApply {
|
|
|
10594
10612
|
new JavascriptModulesPlugin().apply(compiler), new URLPlugin().apply(compiler), new JsonModulesPlugin().apply(compiler), new AssetModulesPlugin().apply(compiler), options.experiments.asyncWebAssembly && new AsyncWebAssemblyModulesPlugin().apply(compiler), new CssModulesPlugin().apply(compiler), new lib_EntryOptionPlugin().apply(compiler), assertNotNill(options.context), compiler.hooks.entryOption.call(options.context, options.entry), new RuntimePlugin().apply(compiler), options.output.bundlerInfo && new BundlerInfoRspackPlugin(options.output.bundlerInfo).apply(compiler), new InferAsyncModulesPlugin().apply(compiler), new APIPlugin().apply(compiler), new DataUriPlugin().apply(compiler), new FileUriPlugin().apply(compiler), options.experiments.buildHttp && new HttpUriPlugin(options.experiments.buildHttp).apply(compiler), new EnsureChunkConditionsPlugin().apply(compiler), options.optimization.mergeDuplicateChunks && new MergeDuplicateChunksPlugin().apply(compiler), options.optimization.sideEffects && new SideEffectsFlagPlugin().apply(compiler), options.optimization.providedExports && new FlagDependencyExportsPlugin().apply(compiler), options.optimization.usedExports && new FlagDependencyUsagePlugin('global' === options.optimization.usedExports).apply(compiler), options.optimization.concatenateModules && new ModuleConcatenationPlugin().apply(compiler), options.optimization.inlineExports && new InlineExportsPlugin().apply(compiler), options.optimization.mangleExports && new MangleExportsPlugin('size' !== options.optimization.mangleExports).apply(compiler);
|
|
10595
10613
|
let enableLibSplitChunks = !1;
|
|
10596
10614
|
if (options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) {
|
|
10597
|
-
let
|
|
10598
|
-
for (let type of options.output.enabledLibraryTypes)'modern-module' === type &&
|
|
10599
|
-
if (options.output.library?.preserveModules && 0 === modernModuleCount) throw Error('preserveModules only works for `modern-module` library type');
|
|
10600
|
-
if (modernModuleCount > 0) {
|
|
10601
|
-
if (modernModuleCount !== options.output.enabledLibraryTypes.length) throw Error('`modern-module` cannot used together with other library types');
|
|
10602
|
-
enableLibSplitChunks = !0, new EsmLibraryPlugin({
|
|
10603
|
-
preserveModules: options.output.library?.preserveModules,
|
|
10604
|
-
splitChunks: options.optimization.splitChunks
|
|
10605
|
-
}).apply(compiler);
|
|
10606
|
-
} else for (let type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
|
|
10615
|
+
let hasModernModule = options.output.enabledLibraryTypes.includes('modern-module'), hasNonModernModule = options.output.enabledLibraryTypes.some((t)=>'modern-module' !== t);
|
|
10616
|
+
for (let type of (options.output.library?.preserveModules && !hasModernModule && compiler.getInfrastructureLogger('rspack.RspackOptionsApply').warn('`preserveModules` only works for `modern-module` library type and will be ignored for other library types.'), hasModernModule && hasNonModernModule && compiler.getInfrastructureLogger('rspack.RspackOptionsApply').warn('`modern-module` is used together with other library types. ESM format has impact on chunkLoading and chunkFormat, which may not be compatible with other library types.'), options.output.enabledLibraryTypes))'modern-module' === type && (enableLibSplitChunks = !0), new EnableLibraryPlugin(type).apply(compiler);
|
|
10607
10617
|
}
|
|
10608
10618
|
!enableLibSplitChunks && options.optimization.splitChunks && new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler), options.optimization.removeEmptyChunks && new RemoveEmptyChunksPlugin().apply(compiler), options.optimization.realContentHash && new RealContentHashPlugin().apply(compiler);
|
|
10609
10619
|
let moduleIds = options.optimization.moduleIds;
|
|
@@ -10994,7 +11004,7 @@ class TraceHookPlugin {
|
|
|
10994
11004
|
});
|
|
10995
11005
|
}
|
|
10996
11006
|
}
|
|
10997
|
-
let CORE_VERSION = "2.0.0-beta.
|
|
11007
|
+
let CORE_VERSION = "2.0.0-beta.9", VFILES_BY_COMPILER = new WeakMap();
|
|
10998
11008
|
class VirtualModulesPlugin {
|
|
10999
11009
|
#staticModules;
|
|
11000
11010
|
#compiler;
|
|
@@ -11495,7 +11505,8 @@ class Compiler {
|
|
|
11495
11505
|
}) : this.hooks.shutdown.callAsync((err)=>{
|
|
11496
11506
|
if (err) return callback(err);
|
|
11497
11507
|
this.cache.shutdown(()=>{
|
|
11498
|
-
this.#instance?.close()
|
|
11508
|
+
let closePromise = this.#instance?.close();
|
|
11509
|
+
closePromise ? closePromise.then(()=>callback(), callback) : callback();
|
|
11499
11510
|
});
|
|
11500
11511
|
});
|
|
11501
11512
|
}
|
|
@@ -13288,7 +13299,7 @@ async function transform(source, options) {
|
|
|
13288
13299
|
let _options = JSON.stringify(options || {});
|
|
13289
13300
|
return binding_default().transform(source, _options);
|
|
13290
13301
|
}
|
|
13291
|
-
let exports_rspackVersion = "2.0.0-beta.
|
|
13302
|
+
let exports_rspackVersion = "2.0.0-beta.9", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
|
|
13292
13303
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
13293
13304
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
13294
13305
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -13462,7 +13473,7 @@ let exports_rspackVersion = "2.0.0-beta.7", exports_version = "5.75.0", exports_
|
|
|
13462
13473
|
await JavaScriptTracer.cleanupJavaScriptTrace(), (0, binding_namespaceObject.syncTraceEvent)(JavaScriptTracer.events), (0, binding_namespaceObject.cleanupGlobalTrace)();
|
|
13463
13474
|
}
|
|
13464
13475
|
},
|
|
13465
|
-
RemoveDuplicateModulesPlugin:
|
|
13476
|
+
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin,
|
|
13466
13477
|
RsdoctorPlugin: RsdoctorPluginImpl,
|
|
13467
13478
|
RstestPlugin: RstestPlugin,
|
|
13468
13479
|
RslibPlugin: RslibPlugin,
|
package/dist/lib/Cache.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } from '../../compiled/@rspack/lite-tapable/dist';
|
|
10
|
+
import { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
11
11
|
import type { WebpackError } from './WebpackError.js';
|
|
12
12
|
export interface Etag {
|
|
13
13
|
toString(): string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Callback } from '../../compiled/@rspack/lite-tapable/dist';
|
|
10
|
+
import type { Callback } from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
11
11
|
import WebpackError from './WebpackError.js';
|
|
12
12
|
export declare class HookWebpackError extends WebpackError {
|
|
13
13
|
hook: string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type Watchpack from '../../compiled/watchpack';
|
|
10
|
+
import type Watchpack from '../../compiled/watchpack/index.js';
|
|
11
11
|
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from '../util/fs.js';
|
|
12
12
|
export default class NodeWatchFileSystem implements WatchFileSystem {
|
|
13
13
|
inputFileSystem: InputFileSystem;
|
package/dist/rspack.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Callback } from '../compiled/@rspack/lite-tapable/dist';
|
|
10
|
+
import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.js';
|
|
11
11
|
import { Compiler } from './Compiler.js';
|
|
12
12
|
import { type RspackOptions } from './config/index.js';
|
|
13
13
|
import { MultiCompiler, type MultiRspackOptions } from './MultiCompiler.js';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { JsStats, JsStatsCompilation, JsStatsError } from '@rspack/binding';
|
|
11
|
-
import { HookMap, SyncBailHook, SyncWaterfallHook } from '../../compiled/@rspack/lite-tapable/dist';
|
|
11
|
+
import { HookMap, SyncBailHook, SyncWaterfallHook } from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
12
12
|
import type { Compilation } from '../Compilation.js';
|
|
13
13
|
import { type GroupConfig } from '../util/smartGrouping.js';
|
|
14
14
|
export type KnownStatsFactoryContext = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HookMap, SyncBailHook, SyncWaterfallHook } from '../../compiled/@rspack/lite-tapable/dist';
|
|
1
|
+
import { HookMap, SyncBailHook, SyncWaterfallHook } from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
2
2
|
import type { StatsAsset, StatsChunk, StatsChunkGroup, StatsCompilation, StatsModule, StatsModuleReason } from './statsFactoryUtils.js';
|
|
3
3
|
type PrintedElement = {
|
|
4
4
|
element: string;
|
package/dist/swc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TransformOutput } from '@rspack/binding';
|
|
2
|
-
import type { JsMinifyOptions, Options as TransformOptions } from '../compiled/@swc/types';
|
|
3
|
-
export type {
|
|
2
|
+
import type { JsMinifyOptions, Options as TransformOptions } from '../compiled/@swc/types/index.js';
|
|
3
|
+
export type { JsMinifyOptions, TransformOptions, TransformOutput };
|
|
4
4
|
export declare function minify(source: string, options?: JsMinifyOptions): Promise<TransformOutput>;
|
|
5
5
|
export declare function minifySync(source: string, options?: JsMinifyOptions): TransformOutput;
|
|
6
6
|
export declare function transform(source: string, options?: TransformOptions): Promise<TransformOutput>;
|
package/dist/taps/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
|
-
import type * as liteTapable from '../../compiled/@rspack/lite-tapable/dist';
|
|
2
|
+
import type * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import type { Compiler } from '../Compiler.js';
|
|
4
4
|
type CreateHookMapRegisterTaps = <H extends liteTapable.Hook<any, any, any>>(registerKind: binding.RegisterJsTapKind, getHookMap: () => liteTapable.HookMap<H>, createTap: (queried: liteTapable.QueriedHookMap<H>) => any) => (stages: number[]) => binding.JsTap[];
|
|
5
5
|
type CreateHookRegisterTaps = <T, R, A>(registerKind: binding.RegisterJsTapKind, getHook: () => liteTapable.Hook<T, R, A>, createTap: (queried: liteTapable.QueriedHook<T, R, A>) => any) => (stages: number[]) => binding.JsTap[];
|
package/dist/util/source.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsSource } from '@rspack/binding';
|
|
2
|
-
import { type Source } from '../../compiled/webpack-sources';
|
|
2
|
+
import { type Source } from '../../compiled/webpack-sources/index.js';
|
|
3
3
|
export declare class SourceAdapter {
|
|
4
4
|
static fromBinding(source: JsSource): Source;
|
|
5
5
|
static toBinding(source: Source): JsSource;
|
package/dist/worker.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
let createMd4, createXxhash64, url;
|
|
2
|
-
import { createRequire as __rspack_createRequire, createRequire } from "node:module";
|
|
3
|
-
let __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
4
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
5
2
|
import node_fs from "node:fs";
|
|
6
3
|
import node_querystring from "node:querystring";
|
|
7
4
|
import { inspect, promisify } from "node:util";
|
|
8
5
|
import { receiveMessageOnPort } from "node:worker_threads";
|
|
6
|
+
import { createRequire, createRequire as __rspack_createRequire } from "node:module";
|
|
9
7
|
import node_path from "node:path";
|
|
8
|
+
let __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
9
|
+
var __webpack_require__ = {};
|
|
10
|
+
__webpack_require__.n = (module)=>{
|
|
11
|
+
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
12
|
+
return __webpack_require__.d(getter, {
|
|
13
|
+
a: getter
|
|
14
|
+
}), getter;
|
|
15
|
+
}, __webpack_require__.d = (exports, definition)=>{
|
|
16
|
+
for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key) && Object.defineProperty(exports, key, {
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
get: definition[key]
|
|
19
|
+
});
|
|
20
|
+
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
|
|
21
|
+
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
|
|
22
|
+
value: 'Module'
|
|
23
|
+
}), Object.defineProperty(exports, '__esModule', {
|
|
24
|
+
value: !0
|
|
25
|
+
});
|
|
26
|
+
};
|
|
10
27
|
var swc_namespaceObject = {};
|
|
11
28
|
__webpack_require__.r(swc_namespaceObject), __webpack_require__.d(swc_namespaceObject, {
|
|
12
29
|
minify: ()=>minify,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.9",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Fast Rust-based bundler for the web with a modernized webpack API",
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
"directory": "packages/rspack"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ast-grep/napi": "^0.
|
|
41
|
-
"@napi-rs/wasm-runtime": "1.
|
|
40
|
+
"@ast-grep/napi": "^0.42.0",
|
|
41
|
+
"@napi-rs/wasm-runtime": "1.1.1",
|
|
42
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.4",
|
|
43
|
-
"@rslib/core": "0.20.
|
|
43
|
+
"@rslib/core": "0.20.1",
|
|
44
44
|
"@rspack/lite-tapable": "1.1.0",
|
|
45
|
-
"@swc/types": "0.1.
|
|
45
|
+
"@swc/types": "0.1.26",
|
|
46
46
|
"@types/node": "^20.19.37",
|
|
47
47
|
"@types/watchpack": "^2.4.5",
|
|
48
48
|
"browserslist-load-config": "^1.0.1",
|
|
49
49
|
"browserslist-to-es-version": "^1.4.1",
|
|
50
50
|
"connect-next": "^4.0.0",
|
|
51
|
-
"enhanced-resolve": "5.20.
|
|
51
|
+
"enhanced-resolve": "5.20.1",
|
|
52
52
|
"http-proxy-middleware": "^3.0.5",
|
|
53
53
|
"memfs": "4.53.0",
|
|
54
54
|
"open": "^11.0.0",
|
|
55
55
|
"prebundle": "^1.6.4",
|
|
56
56
|
"tinypool": "^1.1.1",
|
|
57
|
-
"typescript": "^
|
|
57
|
+
"typescript": "^6.0.2",
|
|
58
58
|
"watchpack": "2.4.4",
|
|
59
59
|
"webpack-sources": "3.3.4"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@rspack/binding": "2.0.0-beta.
|
|
62
|
+
"@rspack/binding": "2.0.0-beta.9"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
|
package/dist/rslib-runtime.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __webpack_modules__ = {}, __webpack_module_cache__ = {};
|
|
2
|
-
function __webpack_require__(moduleId) {
|
|
3
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
4
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
5
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
6
|
-
exports: {}
|
|
7
|
-
};
|
|
8
|
-
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
9
|
-
}
|
|
10
|
-
__webpack_require__.m = __webpack_modules__, __webpack_require__.n = (module)=>{
|
|
11
|
-
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
12
|
-
return __webpack_require__.d(getter, {
|
|
13
|
-
a: getter
|
|
14
|
-
}), getter;
|
|
15
|
-
}, __webpack_require__.d = (exports, definition)=>{
|
|
16
|
-
for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key) && Object.defineProperty(exports, key, {
|
|
17
|
-
enumerable: !0,
|
|
18
|
-
get: definition[key]
|
|
19
|
-
});
|
|
20
|
-
}, __webpack_require__.add = function(modules) {
|
|
21
|
-
Object.assign(__webpack_require__.m, modules);
|
|
22
|
-
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
|
|
23
|
-
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
|
|
24
|
-
value: 'Module'
|
|
25
|
-
}), Object.defineProperty(exports, '__esModule', {
|
|
26
|
-
value: !0
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
export { __webpack_require__ };
|
|
File without changes
|