@rsdoctor/webpack-plugin 1.5.9 → 1.5.10
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/constants.d.cts +59 -0
- package/dist/constants.d.ts +8 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.js +1 -1
- package/dist/multiple.d.cts +9 -0
- package/dist/plugin.d.cts +28 -0
- package/package.json +14 -9
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Tap } from 'tapable';
|
|
2
|
+
export declare const pluginTapName = "RsdoctorWebpackPlugin";
|
|
3
|
+
export declare const pluginTapPostOptions: Tap;
|
|
4
|
+
export declare const pluginTapPreOptions: Tap;
|
|
5
|
+
export declare const internalPluginTapPreOptions: (namespace: string) => Tap;
|
|
6
|
+
export declare const internalPluginTapPostOptions: (namespace: string) => Tap;
|
|
7
|
+
export declare const pkg: {
|
|
8
|
+
name: string;
|
|
9
|
+
version: string;
|
|
10
|
+
repository: {
|
|
11
|
+
type: string;
|
|
12
|
+
url: string;
|
|
13
|
+
directory: string;
|
|
14
|
+
};
|
|
15
|
+
license: string;
|
|
16
|
+
main: string;
|
|
17
|
+
types: string;
|
|
18
|
+
files: string[];
|
|
19
|
+
type: string;
|
|
20
|
+
exports: {
|
|
21
|
+
".": {
|
|
22
|
+
import: {
|
|
23
|
+
types: string;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
require: {
|
|
27
|
+
types: string;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
scripts: {
|
|
33
|
+
dev: string;
|
|
34
|
+
build: string;
|
|
35
|
+
start: string;
|
|
36
|
+
test: string;
|
|
37
|
+
};
|
|
38
|
+
dependencies: {
|
|
39
|
+
"@rsdoctor/core": string;
|
|
40
|
+
"@rsdoctor/graph": string;
|
|
41
|
+
"@rsdoctor/sdk": string;
|
|
42
|
+
"@rsdoctor/types": string;
|
|
43
|
+
"@rsdoctor/utils": string;
|
|
44
|
+
};
|
|
45
|
+
devDependencies: {
|
|
46
|
+
"@types/node": string;
|
|
47
|
+
"@types/tapable": string;
|
|
48
|
+
tslib: string;
|
|
49
|
+
typescript: string;
|
|
50
|
+
webpack: string;
|
|
51
|
+
};
|
|
52
|
+
peerDependencies: {
|
|
53
|
+
webpack: string;
|
|
54
|
+
};
|
|
55
|
+
publishConfig: {
|
|
56
|
+
access: string;
|
|
57
|
+
registry: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -19,9 +19,14 @@ export declare const pkg: {
|
|
|
19
19
|
type: string;
|
|
20
20
|
exports: {
|
|
21
21
|
".": {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
import: {
|
|
23
|
+
types: string;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
require: {
|
|
27
|
+
types: string;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
25
30
|
};
|
|
26
31
|
};
|
|
27
32
|
scripts: {
|
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_expo
|
|
|
27
27
|
LinterType: ()=>rules_namespaceObject.LinterType
|
|
28
28
|
});
|
|
29
29
|
const build_utils_namespaceObject = require("@rsdoctor/core/build-utils"), plugins_namespaceObject = require("@rsdoctor/core/plugins"), graph_namespaceObject = require("@rsdoctor/graph"), sdk_namespaceObject = require("@rsdoctor/sdk"), types_namespaceObject = require("@rsdoctor/types"), build_namespaceObject = require("@rsdoctor/utils/build"), common_namespaceObject = require("@rsdoctor/utils/common"), logger_namespaceObject = require("@rsdoctor/utils/logger");
|
|
30
|
-
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.
|
|
30
|
+
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.10","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/webpack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"type":"module","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"npm run start","build":"rslib build","start":"rslib build -w","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@types/node":"catalog:","@types/tapable":"catalog:","tslib":"catalog:","typescript":"catalog:","webpack":"^5.105.4"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
31
31
|
const pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
32
32
|
name: pluginTapName,
|
|
33
33
|
stage: 999
|
package/dist/index.d.cts
ADDED
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Process } from "@rsdoctor/utils/build";
|
|
|
8
8
|
import { Loader as common_Loader } from "@rsdoctor/utils/common";
|
|
9
9
|
import { logger } from "@rsdoctor/utils/logger";
|
|
10
10
|
import path from "path";
|
|
11
|
-
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.
|
|
11
|
+
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.10","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/webpack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"type":"module","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"npm run start","build":"rslib build","start":"rslib build -w","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@types/node":"catalog:","@types/tapable":"catalog:","tslib":"catalog:","typescript":"catalog:","webpack":"^5.105.4"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
12
12
|
let pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
13
13
|
name: pluginTapName,
|
|
14
14
|
stage: 999
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Linter } from '@rsdoctor/types';
|
|
2
|
+
import type { RsdoctorMultiplePluginOptions } from '@rsdoctor/core/types';
|
|
3
|
+
import { RsdoctorWebpackPlugin } from './plugin';
|
|
4
|
+
import type { Compiler } from 'webpack';
|
|
5
|
+
export declare class RsdoctorWebpackMultiplePlugin<Rules extends Linter.ExtendRuleData[]> extends RsdoctorWebpackPlugin<Rules> {
|
|
6
|
+
private controller;
|
|
7
|
+
constructor(options?: RsdoctorMultiplePluginOptions<Rules>);
|
|
8
|
+
apply(compiler: Compiler): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RsdoctorPluginInstance } from '@rsdoctor/core/types';
|
|
2
|
+
import { ChunkGraph, ModuleGraph } from '@rsdoctor/graph';
|
|
3
|
+
import { RsdoctorPrimarySDK } from '@rsdoctor/sdk';
|
|
4
|
+
import { Linter, SDK, Plugin } from '@rsdoctor/types';
|
|
5
|
+
import type { Compiler } from 'webpack';
|
|
6
|
+
export declare class RsdoctorWebpackPlugin<Rules extends Linter.ExtendRuleData[]> implements RsdoctorPluginInstance<Compiler, Rules> {
|
|
7
|
+
readonly name = "RsdoctorWebpackPlugin";
|
|
8
|
+
readonly options: Plugin.RsdoctorPluginOptionsNormalized<Rules>;
|
|
9
|
+
readonly sdk: SDK.RsdoctorBuilderSDKInstance | RsdoctorPrimarySDK;
|
|
10
|
+
readonly isRsdoctorPlugin: boolean;
|
|
11
|
+
modulesGraph: ModuleGraph;
|
|
12
|
+
_bootstrapTask: Promise<unknown>;
|
|
13
|
+
protected browserIsOpened: boolean;
|
|
14
|
+
chunkGraph: ChunkGraph;
|
|
15
|
+
outsideInstance: boolean | undefined;
|
|
16
|
+
constructor(options?: Plugin.RsdoctorWebpackPluginOptions<Rules>);
|
|
17
|
+
apply(compiler: unknown): unknown;
|
|
18
|
+
afterPlugins: (compiler: Compiler) => void;
|
|
19
|
+
beforeRun: (compiler: Compiler) => Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* @description Generate ModuleGraph and ChunkGraph from stats and webpack module apis;
|
|
22
|
+
* @param {Compiler} compiler
|
|
23
|
+
* @return {*}
|
|
24
|
+
* @memberof RsdoctorWebpackPlugin
|
|
25
|
+
*/
|
|
26
|
+
ensureModulesChunksGraphApplied(compiler: Compiler): void;
|
|
27
|
+
done: (compiler: Plugin.BaseCompilerType<"webpack">) => Promise<void>;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -15,17 +15,22 @@
|
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./dist/index.d.cts",
|
|
24
|
+
"default": "./dist/index.cjs"
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
"dependencies": {
|
|
24
|
-
"@rsdoctor/core": "1.5.
|
|
25
|
-
"@rsdoctor/graph": "1.5.
|
|
26
|
-
"@rsdoctor/sdk": "1.5.
|
|
27
|
-
"@rsdoctor/types": "1.5.
|
|
28
|
-
"@rsdoctor/utils": "1.5.
|
|
29
|
+
"@rsdoctor/core": "1.5.10",
|
|
30
|
+
"@rsdoctor/graph": "1.5.10",
|
|
31
|
+
"@rsdoctor/sdk": "1.5.10",
|
|
32
|
+
"@rsdoctor/types": "1.5.10",
|
|
33
|
+
"@rsdoctor/utils": "1.5.10"
|
|
29
34
|
},
|
|
30
35
|
"devDependencies": {
|
|
31
36
|
"@types/node": "^22.8.1",
|