@rspack/core 0.6.5-canary-dc02c55-20240516004313 → 0.6.5-canary-b7b5c75-20240821125908
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chunk.d.ts +1 -1
- package/dist/Chunk.js +1 -1
- package/dist/ChunkGroup.d.ts +1 -1
- package/dist/ChunkGroup.js +3 -3
- package/dist/Compilation.d.ts +65 -46
- package/dist/Compilation.js +222 -128
- package/dist/Compiler.d.ts +44 -75
- package/dist/Compiler.js +260 -301
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/Entrypoint.js +1 -1
- package/dist/ExecuteModulePlugin.js +1 -1
- package/dist/Module.js +2 -2
- package/dist/MultiCompiler.d.ts +25 -10
- package/dist/MultiCompiler.js +3 -3
- package/dist/MultiStats.d.ts +1 -1
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/Stats.d.ts +2 -2
- package/dist/Watching.d.ts +9 -0
- package/dist/Watching.js +2 -12
- package/dist/builtin-loader/swc/index.d.ts +6 -6
- package/dist/builtin-loader/swc/index.js +3 -3
- package/dist/builtin-loader/swc/types.d.ts +2 -2
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BannerPlugin.js +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.js +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.js +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HtmlRspackPlugin.js +2 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.js +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.js +4 -4
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/index.d.ts +4 -5
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/loader.js +2 -2
- package/dist/builtin-plugin/index.d.ts +43 -43
- package/dist/builtin-plugin/index.js +43 -43
- package/dist/config/adapter.d.ts +2 -2
- package/dist/config/adapter.js +5 -6
- package/dist/config/adapterRuleUse.d.ts +1 -2
- package/dist/config/adapterRuleUse.js +2 -2
- package/dist/config/defaults.js +4 -6
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +2 -2
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/zod.d.ts +184 -258
- package/dist/config/zod.js +28 -8
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.js +1 -1
- package/dist/container/ModuleFederationPlugin.js +1 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +1 -1
- package/dist/container/ModuleFederationPluginV1.js +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +30 -32
- package/dist/exports.js +17 -15
- package/dist/fileSystem.d.ts +8 -12
- package/dist/fileSystem.js +48 -25
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/loader-runner/index.js +13 -13
- package/dist/logging/Logger.d.ts +1 -1
- package/dist/logging/createConsoleLogger.js +14 -0
- package/dist/node/NodeEnvironmentPlugin.d.ts +1 -1
- package/dist/node/NodeEnvironmentPlugin.js +1 -1
- package/dist/node/nodeConsole.js +4 -0
- package/dist/rspack.d.ts +13 -4
- package/dist/rspack.js +8 -8
- package/dist/rspackOptionsApply.d.ts +10 -1
- package/dist/rspackOptionsApply.js +5 -14
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.js +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js +2 -2
- package/dist/stats/StatsFactory.d.ts +2 -2
- package/dist/stats/StatsFactory.js +9 -0
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -1
- package/dist/util/comparators.d.ts +1 -1
- package/dist/util/createSource.d.ts +5 -0
- package/dist/util/createSource.js +65 -0
- package/dist/util/fs.d.ts +0 -64
- package/dist/util/fs.js +0 -122
- package/dist/util/index.d.ts +1 -2
- package/dist/util/index.js +11 -16
- package/package.json +5 -5
- package/dist/util/source.d.ts +0 -18
- package/dist/util/source.js +0 -66
package/dist/Entrypoint.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type JsChunkGroup, type JsCompilation } from "@rspack/binding";
|
|
2
|
-
import { Chunk } from "./Chunk";
|
|
3
2
|
import { ChunkGroup } from "./ChunkGroup";
|
|
3
|
+
import { Chunk } from "./Chunk";
|
|
4
4
|
export declare class Entrypoint extends ChunkGroup {
|
|
5
5
|
static __from_binding(chunk: JsChunkGroup, compilation: JsCompilation): Entrypoint;
|
|
6
6
|
protected constructor(inner: JsChunkGroup, compilation: JsCompilation);
|
package/dist/Entrypoint.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Entrypoint = void 0;
|
|
4
4
|
const binding_1 = require("@rspack/binding");
|
|
5
|
-
const Chunk_1 = require("./Chunk");
|
|
6
5
|
const ChunkGroup_1 = require("./ChunkGroup");
|
|
6
|
+
const Chunk_1 = require("./Chunk");
|
|
7
7
|
class Entrypoint extends ChunkGroup_1.ChunkGroup {
|
|
8
8
|
static __from_binding(chunk, compilation) {
|
|
9
9
|
return new Entrypoint(chunk, compilation);
|
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const node_vm_1 = __importDefault(require("node:vm"));
|
|
7
6
|
const _1 = require(".");
|
|
7
|
+
const node_vm_1 = __importDefault(require("node:vm"));
|
|
8
8
|
class ExecuteModulePlugin {
|
|
9
9
|
constructor() { }
|
|
10
10
|
apply(compiler) {
|
package/dist/Module.js
CHANGED
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _Module_inner, _CodeGenerationResult_inner, _CodeGenerationResults_inner;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.CodeGenerationResults = exports.CodeGenerationResult = exports.Module = void 0;
|
|
16
|
-
const
|
|
16
|
+
const createSource_1 = require("./util/createSource");
|
|
17
17
|
class Module {
|
|
18
18
|
static __from_binding(module) {
|
|
19
19
|
return new Module(module);
|
|
@@ -33,7 +33,7 @@ class Module {
|
|
|
33
33
|
if (this._originalSource)
|
|
34
34
|
return this._originalSource;
|
|
35
35
|
if (__classPrivateFieldGet(this, _Module_inner, "f").originalSource) {
|
|
36
|
-
this._originalSource =
|
|
36
|
+
this._originalSource = (0, createSource_1.createSourceFromRaw)(__classPrivateFieldGet(this, _Module_inner, "f").originalSource);
|
|
37
37
|
return this._originalSource;
|
|
38
38
|
}
|
|
39
39
|
else {
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import { AsyncSeriesHook, Callback, MultiHook, SyncBailHook, SyncHook } from "tapable";
|
|
11
10
|
import { Compiler, RspackOptions } from ".";
|
|
12
|
-
import
|
|
11
|
+
import ResolverFactory = require("./ResolverFactory");
|
|
12
|
+
import { WatchFileSystem } from "./util/fs";
|
|
13
|
+
import { Watching } from "./Watching";
|
|
14
|
+
import { AsyncSeriesHook, Callback, MultiHook, SyncHook } from "tapable";
|
|
13
15
|
import MultiStats from "./MultiStats";
|
|
14
16
|
import MultiWatching from "./MultiWatching";
|
|
15
|
-
import {
|
|
17
|
+
import { WatchOptions } from "./config";
|
|
18
|
+
type Any = any;
|
|
16
19
|
export interface MultiCompilerOptions {
|
|
17
20
|
/**
|
|
18
21
|
* how many Compilers are allows to run at the same time in parallel
|
|
@@ -22,29 +25,40 @@ export interface MultiCompilerOptions {
|
|
|
22
25
|
export type MultiRspackOptions = ReadonlyArray<RspackOptions> & MultiCompilerOptions;
|
|
23
26
|
export declare class MultiCompiler {
|
|
24
27
|
#private;
|
|
28
|
+
context: string;
|
|
25
29
|
compilers: Compiler[];
|
|
26
30
|
dependencies: WeakMap<Compiler, string[]>;
|
|
27
31
|
hooks: {
|
|
28
32
|
done: SyncHook<MultiStats>;
|
|
29
33
|
invalid: MultiHook<SyncHook<[string | null, number]>>;
|
|
30
34
|
run: MultiHook<AsyncSeriesHook<[Compiler]>>;
|
|
31
|
-
watchClose: SyncHook<
|
|
32
|
-
watchRun: MultiHook<
|
|
33
|
-
infrastructureLog: MultiHook<
|
|
35
|
+
watchClose: SyncHook<Any>;
|
|
36
|
+
watchRun: MultiHook<Any>;
|
|
37
|
+
infrastructureLog: MultiHook<Any>;
|
|
38
|
+
};
|
|
39
|
+
name: string;
|
|
40
|
+
infrastructureLogger: Any;
|
|
41
|
+
_options: {
|
|
42
|
+
parallelism?: number;
|
|
34
43
|
};
|
|
35
|
-
|
|
44
|
+
root: Compiler;
|
|
45
|
+
resolverFactory: ResolverFactory;
|
|
36
46
|
running: boolean;
|
|
47
|
+
watching: Watching;
|
|
48
|
+
watchMode: boolean;
|
|
37
49
|
constructor(compilers: Compiler[] | Record<string, Compiler>, options?: MultiCompilerOptions);
|
|
38
|
-
get options(): import(".").RspackOptionsNormalized[] &
|
|
50
|
+
get options(): import(".").RspackOptionsNormalized[] & {
|
|
51
|
+
parallelism?: number | undefined;
|
|
52
|
+
};
|
|
39
53
|
get outputPath(): string;
|
|
40
54
|
get inputFileSystem(): void;
|
|
41
55
|
get outputFileSystem(): typeof import("fs");
|
|
42
56
|
get watchFileSystem(): WatchFileSystem;
|
|
43
|
-
get intermediateFileSystem():
|
|
57
|
+
get intermediateFileSystem(): any;
|
|
44
58
|
set inputFileSystem(value: void);
|
|
45
59
|
set outputFileSystem(value: typeof import("fs"));
|
|
46
60
|
set watchFileSystem(value: WatchFileSystem);
|
|
47
|
-
set intermediateFileSystem(value:
|
|
61
|
+
set intermediateFileSystem(value: any);
|
|
48
62
|
getInfrastructureLogger(name: string): import("./logging/Logger").Logger;
|
|
49
63
|
/**
|
|
50
64
|
* @param compiler - the child compiler
|
|
@@ -66,3 +80,4 @@ export declare class MultiCompiler {
|
|
|
66
80
|
purgeInputFileSystem(): void;
|
|
67
81
|
close(callback: Callback<Error, void>): void;
|
|
68
82
|
}
|
|
83
|
+
export {};
|
package/dist/MultiCompiler.js
CHANGED
|
@@ -19,12 +19,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
var _MultiCompiler_instances, _MultiCompiler_runGraph;
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.MultiCompiler = void 0;
|
|
22
|
-
const neo_async_1 = __importDefault(require("../compiled/neo-async"));
|
|
23
22
|
const tapable_1 = require("tapable");
|
|
24
|
-
const ConcurrentCompilationError_1 = __importDefault(require("./error/ConcurrentCompilationError"));
|
|
25
23
|
const MultiStats_1 = __importDefault(require("./MultiStats"));
|
|
26
|
-
const
|
|
24
|
+
const neo_async_1 = __importDefault(require("../compiled/neo-async"));
|
|
27
25
|
const ArrayQueue_1 = __importDefault(require("./util/ArrayQueue"));
|
|
26
|
+
const ConcurrentCompilationError_1 = __importDefault(require("./error/ConcurrentCompilationError"));
|
|
27
|
+
const MultiWatching_1 = __importDefault(require("./MultiWatching"));
|
|
28
28
|
class MultiCompiler {
|
|
29
29
|
constructor(compilers, options) {
|
|
30
30
|
_MultiCompiler_instances.add(this);
|
package/dist/MultiStats.d.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import { Stats } from "./Stats";
|
|
11
10
|
import { StatsCompilation } from "./stats/statsFactoryUtils";
|
|
11
|
+
import { Stats } from "./Stats";
|
|
12
12
|
export default class MultiStats {
|
|
13
13
|
#private;
|
|
14
14
|
stats: Stats[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as binding from "@rspack/binding";
|
|
2
1
|
import * as liteTapable from "./lite-tapable";
|
|
2
|
+
import type * as binding from "@rspack/binding";
|
|
3
3
|
import { ResolveData, ResourceDataWithData } from "./Module";
|
|
4
4
|
export type NormalModuleCreateData = binding.JsNormalModuleFactoryCreateModuleArgs & {
|
|
5
5
|
settings: {};
|
package/dist/Stats.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Compilation, FilterItemTypes } from ".";
|
|
2
|
-
import {
|
|
2
|
+
import { StatsValue, StatsOptions } from "./config";
|
|
3
3
|
import type { StatsCompilation } from "./stats/statsFactoryUtils";
|
|
4
|
-
export type { StatsAsset, StatsChunk,
|
|
4
|
+
export type { StatsCompilation, StatsAsset, StatsChunk, StatsModule, StatsError, StatsWarnings } from "./stats/statsFactoryUtils";
|
|
5
5
|
export declare class Stats {
|
|
6
6
|
#private;
|
|
7
7
|
compilation: Compilation;
|
package/dist/Watching.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The following code is modified based on
|
|
3
|
+
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/Watching.js
|
|
4
|
+
*
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
* Author Tobias Koppers @sokra
|
|
7
|
+
* Copyright (c) JS Foundation and other contributors
|
|
8
|
+
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
|
+
*/
|
|
1
10
|
import { Callback } from "tapable";
|
|
2
11
|
import type { Compiler } from ".";
|
|
3
12
|
import { Stats } from ".";
|
package/dist/Watching.js
CHANGED
|
@@ -16,17 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
var _Watching_instances, _Watching_invalidReported, _Watching_closeCallbacks, _Watching_initial, _Watching_closed, _Watching_collectedChangedFiles, _Watching_collectedRemovedFiles, _Watching_invalidate, _Watching_go, _Watching_mergeWithCollected;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.Watching = void 0;
|
|
19
|
-
/**
|
|
20
|
-
* The following code is modified based on
|
|
21
|
-
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/Watching.js
|
|
22
|
-
*
|
|
23
|
-
* MIT Licensed
|
|
24
|
-
* Author Tobias Koppers @sokra
|
|
25
|
-
* Copyright (c) JS Foundation and other contributors
|
|
26
|
-
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
27
|
-
*/
|
|
28
|
-
const assert_1 = __importDefault(require("assert"));
|
|
29
19
|
const _1 = require(".");
|
|
20
|
+
const assert_1 = __importDefault(require("assert"));
|
|
30
21
|
class Watching {
|
|
31
22
|
constructor(compiler, watchOptions, handler) {
|
|
32
23
|
_Watching_instances.add(this);
|
|
@@ -62,7 +53,6 @@ class Watching {
|
|
|
62
53
|
}
|
|
63
54
|
watch(files, dirs, missing) {
|
|
64
55
|
this.pausedWatcher = undefined;
|
|
65
|
-
// SAFETY: `watchFileSystem` is expected to be initialized.
|
|
66
56
|
this.watcher = this.compiler.watchFileSystem.watch(files, dirs, missing, this.lastWatcherStartTime, this.watchOptions, (err, fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles) => {
|
|
67
57
|
if (err) {
|
|
68
58
|
this.compiler.fileTimestamps = undefined;
|
|
@@ -268,7 +258,7 @@ _Watching_invalidReported = new WeakMap(), _Watching_closeCallbacks = new WeakMa
|
|
|
268
258
|
if (err)
|
|
269
259
|
return this._done(err, null);
|
|
270
260
|
// if (this.invalid) return this._done(null);
|
|
271
|
-
this._done(null, this.compiler.
|
|
261
|
+
this._done(null, this.compiler.compilation);
|
|
272
262
|
};
|
|
273
263
|
this.compiler.compile(onCompile);
|
|
274
264
|
if (!canRebuild) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type { EmotionOptions } from "./emotion";
|
|
2
1
|
export { resolveEmotion } from "./emotion";
|
|
3
|
-
export type {
|
|
4
|
-
export { resolvePluginImport } from "./pluginImport";
|
|
5
|
-
export type { ReactOptions } from "./react";
|
|
2
|
+
export type { EmotionOptions } from "./emotion";
|
|
6
3
|
export { resolveReact } from "./react";
|
|
7
|
-
export type {
|
|
4
|
+
export type { ReactOptions } from "./react";
|
|
8
5
|
export { resolveRelay } from "./relay";
|
|
9
|
-
export type {
|
|
6
|
+
export type { RelayOptions } from "./relay";
|
|
7
|
+
export { resolvePluginImport } from "./pluginImport";
|
|
8
|
+
export type { PluginImportOptions } from "./pluginImport";
|
|
9
|
+
export type { SwcLoaderOptions, SwcLoaderEnvConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderParserConfig, SwcLoaderEsParserConfig, SwcLoaderTsParserConfig, SwcLoaderTransformConfig } from "./types";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolvePluginImport = exports.resolveRelay = exports.resolveReact = exports.resolveEmotion = void 0;
|
|
4
4
|
var emotion_1 = require("./emotion");
|
|
5
5
|
Object.defineProperty(exports, "resolveEmotion", { enumerable: true, get: function () { return emotion_1.resolveEmotion; } });
|
|
6
|
-
var pluginImport_1 = require("./pluginImport");
|
|
7
|
-
Object.defineProperty(exports, "resolvePluginImport", { enumerable: true, get: function () { return pluginImport_1.resolvePluginImport; } });
|
|
8
6
|
var react_1 = require("./react");
|
|
9
7
|
Object.defineProperty(exports, "resolveReact", { enumerable: true, get: function () { return react_1.resolveReact; } });
|
|
10
8
|
var relay_1 = require("./relay");
|
|
11
9
|
Object.defineProperty(exports, "resolveRelay", { enumerable: true, get: function () { return relay_1.resolveRelay; } });
|
|
10
|
+
var pluginImport_1 = require("./pluginImport");
|
|
11
|
+
Object.defineProperty(exports, "resolvePluginImport", { enumerable: true, get: function () { return pluginImport_1.resolvePluginImport; } });
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Some types are modified from https://github.com/swc-project/swc/blob/16a38851/packages/types/index.ts#L647
|
|
3
3
|
* license at https://github.com/swc-project/swc/blob/main/LICENSE
|
|
4
4
|
*/
|
|
5
|
-
import type { EmotionOptions } from "./emotion";
|
|
6
|
-
import type { PluginImportOptions } from "./pluginImport";
|
|
7
5
|
import type { ReactOptions } from "./react";
|
|
8
6
|
import type { RelayOptions } from "./relay";
|
|
7
|
+
import type { EmotionOptions } from "./emotion";
|
|
8
|
+
import type { PluginImportOptions } from "./pluginImport";
|
|
9
9
|
export type StyledComponentsOptions = {
|
|
10
10
|
displayName?: boolean;
|
|
11
11
|
ssr?: boolean;
|
|
@@ -3,7 +3,7 @@ export declare const APIPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const AssetModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuiltinPluginName, JsChunk, RawBannerPluginOptions } from "@rspack/binding";
|
|
2
1
|
import { z } from "../../compiled/zod";
|
|
2
|
+
import { BuiltinPluginName, JsChunk, RawBannerPluginOptions } from "@rspack/binding";
|
|
3
3
|
declare const rule: z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>;
|
|
4
4
|
export type Rule = z.infer<typeof rule>;
|
|
5
5
|
declare const rules: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>;
|
|
@@ -176,7 +176,7 @@ export declare const BannerPlugin: {
|
|
|
176
176
|
}): {
|
|
177
177
|
name: BuiltinPluginName;
|
|
178
178
|
_options: RawBannerPluginOptions;
|
|
179
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
179
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
180
180
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
181
181
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
182
182
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BannerPlugin = void 0;
|
|
4
|
-
const binding_1 = require("@rspack/binding");
|
|
5
4
|
const zod_1 = require("../../compiled/zod");
|
|
5
|
+
const binding_1 = require("@rspack/binding");
|
|
6
6
|
const base_1 = require("./base");
|
|
7
7
|
const rule = zod_1.z.string().or(zod_1.z.instanceof(RegExp));
|
|
8
8
|
const rules = rule.or(rule.array());
|
|
@@ -7,7 +7,7 @@ export declare const BundlerInfoRspackPlugin: {
|
|
|
7
7
|
new (options: BundleInfoOptions): {
|
|
8
8
|
name: BuiltinPluginName;
|
|
9
9
|
_options: RawBundlerInfoPluginOptions;
|
|
10
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
10
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
11
11
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -8,7 +8,7 @@ export declare const CopyRspackPlugin: {
|
|
|
8
8
|
new (copy: CopyRspackPluginOptions): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_options: RawCopyRspackPluginOptions;
|
|
11
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
11
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
12
12
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
13
13
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@ export declare const CssModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DataUriPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DefinePlugin: {
|
|
|
4
4
|
new (define: DefinePluginOptions): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_options: Record<string, string>;
|
|
7
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
7
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
8
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DeterministicChunkIdsPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DeterministicModuleIdsPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DynamicEntryPlugin: {
|
|
|
4
4
|
new (context: string, entry: EntryDynamicNormalized): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_options: RawDynamicEntryPluginOptions;
|
|
7
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
7
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
8
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
10
|
};
|
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DynamicEntryPlugin = void 0;
|
|
7
7
|
const binding_1 = require("@rspack/binding");
|
|
8
|
-
const EntryOptionPlugin_1 = __importDefault(require("../lib/EntryOptionPlugin"));
|
|
9
8
|
const base_1 = require("./base");
|
|
9
|
+
const EntryOptionPlugin_1 = __importDefault(require("../lib/EntryOptionPlugin"));
|
|
10
10
|
const EntryPlugin_1 = require("./EntryPlugin");
|
|
11
11
|
exports.DynamicEntryPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.DynamicEntryPlugin, (context, entry) => {
|
|
12
12
|
return {
|
|
@@ -3,7 +3,7 @@ export declare const ElectronTargetPlugin: {
|
|
|
3
3
|
new (context?: string | undefined): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: string;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EnableChunkLoadingPlugin: {
|
|
|
3
3
|
new (type: any): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: any;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import { Compiler, LibraryType } from "..";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
3
|
+
import { Compiler, LibraryType } from "..";
|
|
4
4
|
export declare class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
5
5
|
private type;
|
|
6
6
|
name: BuiltinPluginName;
|
|
@@ -3,7 +3,7 @@ export declare const EnableWasmLoadingPlugin: {
|
|
|
3
3
|
new (type: any): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: any;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EnsureChunkConditionsPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_options: void;
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
6
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
7
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
9
9
|
};
|
|
@@ -15,7 +15,7 @@ export declare const EntryPlugin: {
|
|
|
15
15
|
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
|
|
16
16
|
name: BuiltinPluginName;
|
|
17
17
|
_options: RawEntryPluginOptions;
|
|
18
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
18
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
19
19
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
20
20
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
21
21
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRawEntryOptions = exports.EntryPlugin = void 0;
|
|
4
4
|
const binding_1 = require("@rspack/binding");
|
|
5
|
+
const base_1 = require("./base");
|
|
5
6
|
const config_1 = require("../config");
|
|
6
7
|
const util_1 = require("../util");
|
|
7
|
-
const base_1 = require("./base");
|
|
8
8
|
exports.EntryPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.EntryPlugin, (context, entry, options = "") => {
|
|
9
9
|
let entryOptions = typeof options === "string" ? { name: options } : options;
|
|
10
10
|
return {
|
|
@@ -4,7 +4,7 @@ export declare const EvalDevToolModulePlugin: {
|
|
|
4
4
|
new (options: RawEvalDevToolModulePluginOptions): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_options: RawEvalDevToolModulePluginOptions;
|
|
7
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
7
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
8
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const EvalSourceMapDevToolPlugin: {
|
|
|
4
4
|
new (options: SourceMapDevToolPluginOptions): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_options: RawSourceMapDevToolPluginOptions;
|
|
7
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "
|
|
7
|
+
affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
8
|
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
10
|
};
|