@rsdoctor/webpack-plugin 1.5.9 → 1.5.11

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.
@@ -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
+ };
@@ -19,9 +19,14 @@ export declare const pkg: {
19
19
  type: string;
20
20
  exports: {
21
21
  ".": {
22
- types: string;
23
- import: string;
24
- default: string;
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
@@ -21,13 +21,13 @@ __webpack_require__.n = (module)=>{
21
21
  };
22
22
  var __webpack_exports__ = {};
23
23
  __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
24
+ LinterType: ()=>rules_namespaceObject.LinterType,
24
25
  RsdoctorWebpackMultiplePlugin: ()=>RsdoctorWebpackMultiplePlugin,
25
26
  RsdoctorWebpackPlugin: ()=>RsdoctorWebpackPlugin,
26
- defineRule: ()=>rules_namespaceObject.defineRule,
27
- LinterType: ()=>rules_namespaceObject.LinterType
27
+ defineRule: ()=>rules_namespaceObject.defineRule
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.9","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":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","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":"^22.8.1","@types/tapable":"2.3.0","tslib":"2.8.1","typescript":"^5.9.2","webpack":"^5.105.4"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
30
+ var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.11","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
@@ -0,0 +1,3 @@
1
+ export * from './plugin';
2
+ export * from './multiple';
3
+ export { defineRule, LinterType } from '@rsdoctor/core/rules';
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.9","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":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","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":"^22.8.1","@types/tapable":"2.3.0","tslib":"2.8.1","typescript":"^5.9.2","webpack":"^5.105.4"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
11
+ var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.11","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.9",
3
+ "version": "1.5.11",
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
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js",
20
- "default": "./dist/index.cjs"
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.9",
25
- "@rsdoctor/graph": "1.5.9",
26
- "@rsdoctor/sdk": "1.5.9",
27
- "@rsdoctor/types": "1.5.9",
28
- "@rsdoctor/utils": "1.5.9"
29
+ "@rsdoctor/core": "1.5.11",
30
+ "@rsdoctor/graph": "1.5.11",
31
+ "@rsdoctor/types": "1.5.11",
32
+ "@rsdoctor/utils": "1.5.11",
33
+ "@rsdoctor/sdk": "1.5.11"
29
34
  },
30
35
  "devDependencies": {
31
36
  "@types/node": "^22.8.1",