@rsdoctor/rspack-plugin 0.1.1 → 0.1.2

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.
@@ -1,4 +1,4 @@
1
1
  import { Compiler } from '@rspack/core';
2
2
  export declare class BuiltinLoaderPlugin {
3
- apply(compiler: Compiler): void;
4
- }
3
+ apply(compiler: Compiler): void;
4
+ }
@@ -4,4 +4,4 @@ export declare const pluginTapPostOptions: Tap;
4
4
  export declare const pluginTapPreOptions: Tap;
5
5
  export declare const internalPluginTapPreOptions: (namespace: string) => Tap;
6
6
  export declare const internalPluginTapPostOptions: (namespace: string) => Tap;
7
- export declare const pkg: any;
7
+ export declare const pkg: any;
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './plugin';
1
+ export * from './plugin';
package/dist/plugin.d.ts CHANGED
@@ -4,21 +4,21 @@ import { RsdoctorWebpackSDK } from '@rsdoctor/sdk';
4
4
  import type { RsdoctorPluginInstance, RsdoctorPluginOptionsNormalized, RsdoctorRspackPluginOptions } from '@rsdoctor/core';
5
5
  import { Linter } from '@rsdoctor/types';
6
6
  export declare class RsdoctorRspackPlugin<Rules extends Linter.ExtendRuleData[]> implements RsdoctorPluginInstance<Compiler, Rules> {
7
- readonly name = "RsdoctorRspackPlugin";
8
- readonly sdk: RsdoctorWebpackSDK;
9
- _bootstrapTask: Promise<unknown>;
10
- protected browserIsOpened: boolean;
11
- modulesGraph: ModuleGraph;
12
- options: RsdoctorPluginOptionsNormalized<Rules>;
13
- constructor(options?: RsdoctorRspackPluginOptions<Rules>);
14
- apply(compiler: unknown): unknown;
15
- /**
16
- * @description Generate ModuleGraph and ChunkGraph from stats and webpack module apis;
17
- * @param {Compiler} compiler
18
- * @return {*}
19
- * @memberof RsdoctorWebpackPlugin
20
- */
21
- ensureModulesChunksGraphApplied(compiler: Compiler): void;
22
- done: (compiler: Compiler) => Promise<void>;
23
- getRspackConfig(compiler: Compiler, version: string): void;
24
- }
7
+ readonly name = "RsdoctorRspackPlugin";
8
+ readonly sdk: RsdoctorWebpackSDK;
9
+ _bootstrapTask: Promise<unknown>;
10
+ protected browserIsOpened: boolean;
11
+ modulesGraph: ModuleGraph;
12
+ options: RsdoctorPluginOptionsNormalized<Rules>;
13
+ constructor(options?: RsdoctorRspackPluginOptions<Rules>);
14
+ apply(compiler: unknown): unknown;
15
+ /**
16
+ * @description Generate ModuleGraph and ChunkGraph from stats and webpack module apis;
17
+ * @param {Compiler} compiler
18
+ * @return {*}
19
+ * @memberof RsdoctorWebpackPlugin
20
+ */
21
+ ensureModulesChunksGraphApplied(compiler: Compiler): void;
22
+ done: (compiler: Compiler) => Promise<void>;
23
+ getRspackConfig(compiler: Compiler, version: string): void;
24
+ }
@@ -1,4 +1,4 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
2
  import { LoaderDefinitionFunction } from "@rspack/core";
3
3
  declare const loaderModule: Plugin.LoaderDefinition<Parameters<LoaderDefinitionFunction>, {}>;
4
- export default loaderModule;
4
+ export default loaderModule;
@@ -1,21 +1,22 @@
1
1
  import type { RspackPluginInstance } from '@rspack/core';
2
2
  import type { RsdoctorWebpackPluginOptions } from '@rsdoctor/core/types';
3
3
  export interface RsdoctorRspackPluginOptions {
4
- /**
5
- * turn on it if you don't need to see profile in browser.
6
- * @default false
7
- */
8
- disableClientServer?: boolean;
9
- /**
10
- * the switch for the Rsdoctor features.
11
- */
12
- features?: RsdoctorWebpackPluginOptions<[]>['features'];
13
- /**
14
- * configuration of the interceptor for webpack loaders.
15
- * @description worked when the `features.loader === true`.
16
- */
17
- loaderInterceptorOptions?: RsdoctorWebpackPluginOptions<[]>['loaderInterceptorOptions'];
4
+ /**
5
+ * turn on it if you don't need to see profile in browser.
6
+ * @default false
7
+ */
8
+ disableClientServer?: boolean;
9
+ /**
10
+ * the switch for the Rsdoctor features.
11
+ */
12
+ features?: RsdoctorWebpackPluginOptions<[]>['features'];
13
+ /**
14
+ * configuration of the interceptor for webpack loaders.
15
+ * @description worked when the `features.loader === true`.
16
+ */
17
+ loaderInterceptorOptions?: RsdoctorWebpackPluginOptions<[
18
+ ]>['loaderInterceptorOptions'];
18
19
  }
19
20
  export interface RsdoctorRspackPluginInstance extends RspackPluginInstance {
20
- readonly name: string;
21
- }
21
+ readonly name: string;
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/rspack-plugin",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -16,9 +16,9 @@
16
16
  "@rspack/core": "0.5.1",
17
17
  "loader-utils": "^2.0.4",
18
18
  "lodash": "^4.17.21",
19
- "@rsdoctor/core": "0.1.1",
20
- "@rsdoctor/graph": "0.1.1",
21
- "@rsdoctor/sdk": "0.1.1"
19
+ "@rsdoctor/core": "0.1.2",
20
+ "@rsdoctor/graph": "0.1.2",
21
+ "@rsdoctor/sdk": "0.1.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/loader-utils": "^2.0.5",
@@ -27,7 +27,7 @@
27
27
  "@types/tapable": "2.2.2",
28
28
  "tslib": "2.4.1",
29
29
  "typescript": "^5.2.2",
30
- "@rsdoctor/types": "0.1.1"
30
+ "@rsdoctor/types": "0.1.2"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public",