@rspack-debug/core 2.0.0-beta.8 → 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 +2 -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/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/config/devServer.d.ts +3 -3
- package/dist/config/types.d.ts +5 -0
- package/dist/exports.d.ts +4 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.js +45 -18
- 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 +5 -5
- 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';
|
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,
|
|
@@ -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 = {
|
|
@@ -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
|
@@ -893,6 +893,11 @@ export type JavascriptParserOptions = {
|
|
|
893
893
|
* @default false
|
|
894
894
|
*/
|
|
895
895
|
deferImport?: boolean;
|
|
896
|
+
/**
|
|
897
|
+
* Whether to enable import.meta.resolve().
|
|
898
|
+
* @default false
|
|
899
|
+
*/
|
|
900
|
+
importMetaResolve?: boolean;
|
|
896
901
|
};
|
|
897
902
|
export type JsonParserOptions = {
|
|
898
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,13 +1,39 @@
|
|
|
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
|
-
|
|
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({
|
|
11
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;
|
|
@@ -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
|
});
|
|
@@ -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);
|
|
@@ -4440,7 +4466,8 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
4440
4466
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
4441
4467
|
typeReexportsPresence: parser.typeReexportsPresence,
|
|
4442
4468
|
jsx: parser.jsx,
|
|
4443
|
-
deferImport: parser.deferImport
|
|
4469
|
+
deferImport: parser.deferImport,
|
|
4470
|
+
importMetaResolve: parser.importMetaResolve
|
|
4444
4471
|
};
|
|
4445
4472
|
}
|
|
4446
4473
|
function getRawCssParserOptions(parser) {
|
|
@@ -6532,7 +6559,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6532
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 })=>{
|
|
6533
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', [
|
|
6534
6561
|
'...'
|
|
6535
|
-
]), 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);
|
|
6536
6563
|
})(module.parser.javascript, {
|
|
6537
6564
|
deferImport,
|
|
6538
6565
|
outputModule
|
|
@@ -6807,7 +6834,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6807
6834
|
return output.wasmLoading && enabledWasmLoadingTypes.add(output.wasmLoading), output.workerWasmLoading && enabledWasmLoadingTypes.add(output.workerWasmLoading), forEachEntry((desc)=>{
|
|
6808
6835
|
desc.wasmLoading && enabledWasmLoadingTypes.add(desc.wasmLoading);
|
|
6809
6836
|
}), Array.from(enabledWasmLoadingTypes);
|
|
6810
|
-
}), 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));
|
|
6811
6838
|
}, applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp, outputModule })=>{
|
|
6812
6839
|
let isUniversal = (key)=>!!(outputModule && targetProperties && null === targetProperties[key]);
|
|
6813
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')));
|
|
@@ -8061,7 +8088,7 @@ class MultiStats {
|
|
|
8061
8088
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8062
8089
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8063
8090
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8064
|
-
}), 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(''));
|
|
8065
8092
|
let mapError = (j, obj)=>({
|
|
8066
8093
|
...obj,
|
|
8067
8094
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8660,7 +8687,7 @@ class NodeEnvironmentPlugin {
|
|
|
8660
8687
|
if ('' === str) return str;
|
|
8661
8688
|
let prefixWithIndent = currentIndent + prefix;
|
|
8662
8689
|
return colors ? prefixWithIndent + colorPrefix + str.replace(/\n/g, `${colorSuffix}\n${prefix}${colorPrefix}`) + colorSuffix : prefixWithIndent + str.replace(/\n/g, `\n${prefix}`);
|
|
8663
|
-
})(
|
|
8690
|
+
})(__rspack_external_node_util_1b29d436.format(...args), prefix, colorPrefix, colorSuffix);
|
|
8664
8691
|
stream.write(`${str}\n`), writeStatusMessage();
|
|
8665
8692
|
}, writeGroupMessage = writeColored('<-> ', '\u001b[1m\u001b[36m', '\u001b[39m\u001b[22m'), writeGroupCollapsedMessage = writeColored('<+> ', '\u001b[1m\u001b[36m', '\u001b[39m\u001b[22m');
|
|
8666
8693
|
return {
|
|
@@ -9299,7 +9326,7 @@ let iterateConfig = (config, options, fn)=>{
|
|
|
9299
9326
|
let [label, first, second] = entry.args;
|
|
9300
9327
|
'number' == typeof first && 'number' == typeof second && (message = `${label}: ${1000 * first + second / 1000000} ms`);
|
|
9301
9328
|
}
|
|
9302
|
-
message || (message = entry.args?.length ?
|
|
9329
|
+
message || (message = entry.args?.length ? __rspack_external_node_util_1b29d436.format(entry.args[0], ...entry.args.slice(1)) : '');
|
|
9303
9330
|
let newEntry = {
|
|
9304
9331
|
type,
|
|
9305
9332
|
message: message || '',
|
|
@@ -9320,7 +9347,7 @@ let iterateConfig = (config, options, fn)=>{
|
|
|
9320
9347
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9321
9348
|
},
|
|
9322
9349
|
version: (object)=>{
|
|
9323
|
-
object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.
|
|
9350
|
+
object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.9";
|
|
9324
9351
|
},
|
|
9325
9352
|
env: (object, _compilation, _context, { _env })=>{
|
|
9326
9353
|
object.env = _env;
|
|
@@ -10977,7 +11004,7 @@ class TraceHookPlugin {
|
|
|
10977
11004
|
});
|
|
10978
11005
|
}
|
|
10979
11006
|
}
|
|
10980
|
-
let CORE_VERSION = "2.0.0-beta.
|
|
11007
|
+
let CORE_VERSION = "2.0.0-beta.9", VFILES_BY_COMPILER = new WeakMap();
|
|
10981
11008
|
class VirtualModulesPlugin {
|
|
10982
11009
|
#staticModules;
|
|
10983
11010
|
#compiler;
|
|
@@ -13272,7 +13299,7 @@ async function transform(source, options) {
|
|
|
13272
13299
|
let _options = JSON.stringify(options || {});
|
|
13273
13300
|
return binding_default().transform(source, _options);
|
|
13274
13301
|
}
|
|
13275
|
-
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 = {
|
|
13276
13303
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
13277
13304
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
13278
13305
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
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-debug/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",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@ast-grep/napi": "^0.42.0",
|
|
41
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",
|
|
@@ -54,12 +54,12 @@
|
|
|
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": "npm:@rspack-debug/binding@2.0.0-beta.
|
|
62
|
+
"@rspack/binding": "npm:@rspack-debug/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
|