@rsdoctor/core 1.3.9 → 1.3.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.
Files changed (37) hide show
  1. package/dist/build-utils/build/chunks/index.d.ts +3 -3
  2. package/dist/build-utils/build/index.d.ts +5 -5
  3. package/dist/build-utils/build/loader/index.d.ts +2 -2
  4. package/dist/build-utils/build/module-graph/index.d.ts +4 -4
  5. package/dist/build-utils/build/module-graph/transform.d.ts +1 -1
  6. package/dist/build-utils/build/utils/index.d.ts +3 -3
  7. package/dist/build-utils/index.d.ts +1 -1
  8. package/dist/index.d.ts +3 -3
  9. package/dist/inner-plugins/index.d.ts +2 -2
  10. package/dist/inner-plugins/loaders/proxy.d.ts +1 -1
  11. package/dist/inner-plugins/plugins/base.d.ts +1 -1
  12. package/dist/inner-plugins/plugins/bundle.d.ts +1 -1
  13. package/dist/inner-plugins/plugins/bundleTagPlugin.d.ts +1 -1
  14. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts +1 -1
  15. package/dist/inner-plugins/plugins/errors.d.ts +1 -1
  16. package/dist/inner-plugins/plugins/index.d.ts +10 -10
  17. package/dist/inner-plugins/plugins/loader.d.ts +1 -1
  18. package/dist/inner-plugins/plugins/plugins.d.ts +1 -1
  19. package/dist/inner-plugins/plugins/progress.d.ts +1 -1
  20. package/dist/inner-plugins/plugins/rspack.d.ts +1 -1
  21. package/dist/inner-plugins/plugins/rules.d.ts +1 -1
  22. package/dist/inner-plugins/plugins/sourcemapTool.d.ts +1 -1
  23. package/dist/inner-plugins/plugins/summary.d.ts +1 -1
  24. package/dist/inner-plugins/utils/config.d.ts +1 -1
  25. package/dist/inner-plugins/utils/index.d.ts +9 -9
  26. package/dist/inner-plugins/utils/loader.d.ts +2 -2
  27. package/dist/inner-plugins/utils/plugin.d.ts +1 -1
  28. package/dist/rules/index.d.ts +3 -3
  29. package/dist/rules/rule.d.ts +1 -1
  30. package/dist/rules/rules/cross-chunks-package/index.d.ts +2 -2
  31. package/dist/rules/rules/default-import-check/index.d.ts +2 -2
  32. package/dist/rules/rules/duplicate-package/index.d.ts +2 -2
  33. package/dist/rules/rules/ecma-version-check/index.d.ts +2 -2
  34. package/dist/rules/rules/index.d.ts +1 -1
  35. package/dist/rules/rules/loader-performance-optimization/index.d.ts +2 -2
  36. package/dist/types/index.d.ts +4 -4
  37. package/package.json +6 -6
@@ -1,3 +1,3 @@
1
- export * from './assetsModules.js';
2
- export * from './chunkTransform.js';
3
- export * from './rspack/transform.js';
1
+ export * from './assetsModules';
2
+ export * from './chunkTransform';
3
+ export * from './rspack/transform';
@@ -1,5 +1,5 @@
1
- export * as Chunks from './chunks/index.js';
2
- export * as Utils from './utils/index.js';
3
- export * as Loader from './loader/index.js';
4
- export * as Types from '../../types/index.js';
5
- export * as ModuleGraph from './module-graph/index.js';
1
+ export * as Chunks from './chunks';
2
+ export * as Utils from './utils';
3
+ export * as Loader from './loader';
4
+ export * as Types from '../../types';
5
+ export * as ModuleGraph from './module-graph';
@@ -1,2 +1,2 @@
1
- export * from './probeLoaderPlugin.js';
2
- export * from './probeLoader.js';
1
+ export * from './probeLoaderPlugin';
2
+ export * from './probeLoader';
@@ -1,4 +1,4 @@
1
- export * from './webpack/transform.js';
2
- export * from './transform.js';
3
- export * from './treeShaking.js';
4
- export * from './rspack/transform.js';
1
+ export * from './webpack/transform';
2
+ export * from './transform';
3
+ export * from './treeShaking';
4
+ export * from './rspack/transform';
@@ -1,4 +1,4 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
- import { TransformContext } from './index.js';
2
+ import { TransformContext } from '.';
3
3
  import { SDK } from '@rsdoctor/types';
4
4
  export declare function getModuleGraphByStats(compilation: Plugin.BaseCompilation, stats: Plugin.StatsCompilation, root: string, chunkGraph: SDK.ChunkGraphInstance, features?: Plugin.RsdoctorWebpackPluginFeatures, context?: TransformContext): Promise<SDK.ModuleGraphInstance>;
@@ -1,3 +1,3 @@
1
- export * from './loader.js';
2
- export * from './plugin.js';
3
- export * from './parseBundle.js';
1
+ export * from './loader';
2
+ export * from './plugin';
3
+ export * from './parseBundle';
@@ -1 +1 @@
1
- export * as Build from './build/index.js';
1
+ export * as Build from './build';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './build-utils/index.js';
2
- export * as InnerPlugins from './inner-plugins/index.js';
3
- export * from './types/index.js';
1
+ export * from './build-utils';
2
+ export * as InnerPlugins from './inner-plugins';
3
+ export * from './types';
@@ -1,2 +1,2 @@
1
- export * from './plugins/index.js';
2
- export * from './utils/index.js';
1
+ export * from './plugins';
2
+ export * from './utils';
@@ -1,6 +1,6 @@
1
1
  import type { Plugin as PluginType } from '@rsdoctor/types';
2
2
  import { Plugin } from '@rsdoctor/types';
3
- import type { ProxyLoaderOptions } from '../../types/index.js';
3
+ import type { ProxyLoaderOptions } from '../../types';
4
4
  declare const loaderModule: Plugin.LoaderDefinition<ProxyLoaderOptions, {}>;
5
5
  export declare const pitch: (this: PluginType.LoaderContext<ProxyLoaderOptions>) => string | void | Buffer<ArrayBufferLike> | Promise<string | Buffer<ArrayBufferLike>>;
6
6
  export declare const raw = true;
@@ -1,5 +1,5 @@
1
1
  import type { Linter, Plugin, SDK } from '@rsdoctor/types';
2
- import type { InternalPlugin, RsdoctorPluginInstance } from '../../types/index.js';
2
+ import type { InternalPlugin, RsdoctorPluginInstance } from '../../types';
3
3
  export declare abstract class InternalBasePlugin<T extends Plugin.BaseCompiler> implements InternalPlugin<T, Linter.ExtendRuleData[]> {
4
4
  readonly scheduler: RsdoctorPluginInstance<T, Linter.ExtendRuleData[]>;
5
5
  abstract name: string;
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
- import { InternalBasePlugin } from './base.js';
2
+ import { InternalBasePlugin } from './base';
3
3
  export declare class InternalBundlePlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
4
4
  readonly name = "bundle";
5
5
  map: Map<string, {
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
- import { InternalBasePlugin } from './base.js';
2
+ import { InternalBasePlugin } from './base';
3
3
  export declare class InternalBundleTagPlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
4
4
  readonly name = "bundleTag";
5
5
  apply(compiler: Plugin.BaseCompiler): void;
@@ -1,4 +1,4 @@
1
- import { RsdoctorPluginInstance } from '../../types/index.js';
1
+ import { RsdoctorPluginInstance } from '../../types';
2
2
  import { Linter, Plugin } from '@rsdoctor/types';
3
3
  /**
4
4
  * Represents a mapping item from a source map.
@@ -1,5 +1,5 @@
1
1
  import { Rule, Err, Plugin } from '@rsdoctor/types';
2
- import { InternalBasePlugin } from './base.js';
2
+ import { InternalBasePlugin } from './base';
3
3
  import { DevToolError } from '@rsdoctor/utils/error';
4
4
  export declare class InternalErrorReporterPlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
5
5
  readonly name = "error-reporter";
@@ -1,10 +1,10 @@
1
- export * from './loader.js';
2
- export * from './plugins.js';
3
- export * from './errors.js';
4
- export * from './progress.js';
5
- export * from './summary.js';
6
- export * from './base.js';
7
- export * from './bundle.js';
8
- export * from './ensureModulesChunkGraph.js';
9
- export * from './rules.js';
10
- export * from './bundleTagPlugin.js';
1
+ export * from './loader';
2
+ export * from './plugins';
3
+ export * from './errors';
4
+ export * from './progress';
5
+ export * from './summary';
6
+ export * from './base';
7
+ export * from './bundle';
8
+ export * from './ensureModulesChunkGraph';
9
+ export * from './rules';
10
+ export * from './bundleTagPlugin';
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
- import { InternalBasePlugin } from './base.js';
2
+ import { InternalBasePlugin } from './base';
3
3
  export declare class InternalLoaderPlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
4
4
  readonly name = "loader";
5
5
  readonly internalLoaderPath: string;
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
- import { InternalBasePlugin } from './base.js';
2
+ import { InternalBasePlugin } from './base';
3
3
  export declare class InternalPluginsPlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
4
4
  readonly name = "plugins";
5
5
  apply(compiler: Plugin.BaseCompiler): void;
@@ -1,6 +1,6 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
2
  import type { Plugin } from '@rsdoctor/types';
3
- import { InternalBasePlugin } from './base.js';
3
+ import { InternalBasePlugin } from './base';
4
4
  export declare class InternalProgressPlugin<T extends Plugin.BaseCompilerType<'webpack'>> extends InternalBasePlugin<T> {
5
5
  readonly name = "progress";
6
6
  protected currentProgress: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.APIExtends.GetCompileProgress>;
@@ -1,4 +1,4 @@
1
1
  import { Linter, Plugin } from '@rsdoctor/types';
2
2
  import type { experiments } from '@rspack/core';
3
- import { RsdoctorPluginInstance } from '../../types/index.js';
3
+ import { RsdoctorPluginInstance } from '../../types';
4
4
  export declare function applyRspackNativePlugin(compiler: Plugin.BaseCompiler, plugin: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData[]>, RsdoctorRspackPlugin: typeof experiments.RsdoctorPlugin): void;
@@ -1,4 +1,4 @@
1
- import { InternalBasePlugin } from './base.js';
1
+ import { InternalBasePlugin } from './base';
2
2
  import { Plugin } from '@rsdoctor/types';
3
3
  export declare class InternalRulesPlugin extends InternalBasePlugin<Plugin.BaseCompiler> {
4
4
  readonly name = "rules";
@@ -1,4 +1,4 @@
1
- import { RsdoctorPluginInstance } from '../../types/index.js';
1
+ import { RsdoctorPluginInstance } from '../../types';
2
2
  import { Linter, Plugin } from '@rsdoctor/types';
3
3
  export declare const UNASSIGNED = "[unassigned]";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Plugin } from '@rsdoctor/types';
2
- import { InternalBasePlugin } from './base.js';
2
+ import { InternalBasePlugin } from './base';
3
3
  export declare class InternalSummaryPlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
4
4
  readonly name = "summary";
5
5
  private times;
@@ -1,4 +1,4 @@
1
- import { RsdoctorRspackPluginOptions, RsdoctorRspackPluginOptionsNormalized } from '../../types/index.js';
1
+ import { RsdoctorRspackPluginOptions, RsdoctorRspackPluginOptionsNormalized } from '../../types';
2
2
  import { Linter, Plugin, SDK } from '@rsdoctor/types';
3
3
  export declare function normalizeUserConfig<Rules extends Linter.ExtendRuleData[]>(config?: Plugin.RsdoctorWebpackPluginOptions<Rules>): Plugin.RsdoctorPluginOptionsNormalized<Rules>;
4
4
  export declare const normalizeReportType: (reportCodeType: Plugin.IReportCodeType | Plugin.NewReportCodeType, mode: keyof typeof SDK.IMode) => SDK.ToDataType;
@@ -1,9 +1,9 @@
1
- export * from './loader.js';
2
- export * from './plugin.js';
3
- export * from './sdk.js';
4
- export * from './config.js';
5
- export * from './circleDetect.js';
6
- export * from './plugin-common.js';
7
- export * from './normalize-config.js';
8
- export * from './plugin-common.js';
9
- export * from './normalize-config.js';
1
+ export * from './loader';
2
+ export * from './plugin';
3
+ export * from './sdk';
4
+ export * from './config';
5
+ export * from './circleDetect';
6
+ export * from './plugin-common';
7
+ export * from './normalize-config';
8
+ export * from './plugin-common';
9
+ export * from './normalize-config';
@@ -1,7 +1,7 @@
1
1
  import { Loader } from '@rsdoctor/utils/common';
2
2
  import { SDK, Plugin } from '@rsdoctor/types';
3
- import { ProxyLoaderInternalOptions, ProxyLoaderOptions } from '../../types/index.js';
4
- import { Utils as BuildUtils } from '../../build-utils/build/index.js';
3
+ import { ProxyLoaderInternalOptions, ProxyLoaderOptions } from '../../types';
4
+ import { Utils as BuildUtils } from '../../build-utils/build';
5
5
  export declare function getInternalLoaderOptions(loaderContext: Plugin.LoaderContext<ProxyLoaderOptions>): ProxyLoaderInternalOptions;
6
6
  export declare function getLoaderOptionsWithoutInternalKeys(loaderContext: Plugin.LoaderContext<ProxyLoaderOptions>): Omit<ProxyLoaderOptions, typeof Loader.LoaderInternalPropertyName>;
7
7
  export declare function getOriginLoaderModule(loaderContext: Plugin.LoaderContext<ProxyLoaderOptions>): ReturnType<typeof BuildUtils.loadLoaderModule>;
@@ -1,4 +1,4 @@
1
1
  import type { SDK } from '@rsdoctor/types';
2
- import { IHook } from '../../build-utils/build/utils/index.js';
2
+ import { IHook } from '../../build-utils/build/utils';
3
3
  export declare function reportPluginData(sdk: SDK.RsdoctorBuilderSDKInstance, hook: string, tapName: string, start: number, type: SDK.PluginHookData['type'], _res: unknown, err?: Error): void;
4
4
  export declare function interceptPluginHook(sdk: SDK.RsdoctorBuilderSDKInstance, name: string, hook: IHook): void;
@@ -1,3 +1,3 @@
1
- export * from './linter.js';
2
- export * from './rule.js';
3
- export { rules } from './rules/index.js';
1
+ export * from './linter';
2
+ export * from './rule';
3
+ export { rules } from './rules';
@@ -1,5 +1,5 @@
1
1
  import { Linter, SDK, Rule as RuleTypes } from '@rsdoctor/types';
2
- import { LinterType } from './linter.js';
2
+ import { LinterType } from './linter';
3
3
  type DefaultRuleConfig = Linter.DefaultRuleConfig;
4
4
  export declare class Rule<Config = DefaultRuleConfig> implements Linter.RuleMeta<Config> {
5
5
  static from<C>(data: Linter.ExtendRuleData<C>): Rule<C>;
@@ -1,4 +1,4 @@
1
1
  import { Linter } from '@rsdoctor/types';
2
- import { Config } from './types.js';
3
- export type { Config } from './types.js';
2
+ import { Config } from './types';
3
+ export type { Config } from './types';
4
4
  export declare const rule: Linter.RuleData<Config, "cross-chunks-package">;
@@ -1,4 +1,4 @@
1
1
  import { Linter } from '@rsdoctor/types';
2
- import type { Config } from './types.js';
3
- export type { Config } from './types.js';
2
+ import type { Config } from './types';
3
+ export type { Config } from './types';
4
4
  export declare const rule: Linter.RuleData<Config, "default-import-check">;
@@ -1,4 +1,4 @@
1
1
  import { Linter } from '@rsdoctor/types';
2
- import { Config } from './types.js';
3
- export type { Config, CheckVersion } from './types.js';
2
+ import { Config } from './types';
3
+ export type { Config, CheckVersion } from './types';
4
4
  export declare const rule: Linter.RuleData<Config, "duplicate-package">;
@@ -1,4 +1,4 @@
1
- import { Config } from './types.js';
1
+ import { Config } from './types';
2
2
  import { Linter } from '@rsdoctor/types';
3
- export type { Config } from './types.js';
3
+ export type { Config } from './types';
4
4
  export declare const rule: Linter.RuleData<Config, "ecma-version-check">;
@@ -1 +1 @@
1
- export declare const rules: (import("@rsdoctor/types/dist/linter").RuleData<import("./duplicate-package/index.js").Config, "duplicate-package"> | import("@rsdoctor/types/dist/linter").RuleData<import("./default-import-check/index.js").Config, "default-import-check"> | import("@rsdoctor/types/dist/linter").RuleData<import("./loader-performance-optimization/index.js").Config, "loader-performance-optimization"> | import("@rsdoctor/types/dist/linter").RuleData<import("./ecma-version-check/index.js").Config, "ecma-version-check"> | import("@rsdoctor/types/dist/linter").RuleData<import("./cross-chunks-package/index.js").Config, "cross-chunks-package">)[];
1
+ export declare const rules: (import("@rsdoctor/types/dist/linter").RuleData<import("./duplicate-package").Config, "duplicate-package"> | import("@rsdoctor/types/dist/linter").RuleData<import("./default-import-check").Config, "default-import-check"> | import("@rsdoctor/types/dist/linter").RuleData<import("./loader-performance-optimization").Config, "loader-performance-optimization"> | import("@rsdoctor/types/dist/linter").RuleData<import("./ecma-version-check").Config, "ecma-version-check"> | import("@rsdoctor/types/dist/linter").RuleData<import("./cross-chunks-package").Config, "cross-chunks-package">)[];
@@ -1,4 +1,4 @@
1
1
  import { Linter } from '@rsdoctor/types';
2
- import { Config } from './types.js';
3
- export type { Config } from './types.js';
2
+ import { Config } from './types';
3
+ export type { Config } from './types';
4
4
  export declare const rule: Linter.RuleData<Config, "loader-performance-optimization">;
@@ -1,4 +1,4 @@
1
- export * from './chunks.js';
2
- export * from './rules.js';
3
- export * from './loader.js';
4
- export * from './plugin.js';
1
+ export * from './chunks';
2
+ export * from './rules';
3
+ export * from './loader';
4
+ export * from './plugin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -69,14 +69,14 @@
69
69
  "fs-extra": "^11.1.1",
70
70
  "semver": "^7.7.3",
71
71
  "source-map": "^0.7.6",
72
- "@rsdoctor/graph": "1.3.9",
73
- "@rsdoctor/sdk": "1.3.9",
74
- "@rsdoctor/types": "1.3.9",
75
- "@rsdoctor/utils": "1.3.9"
72
+ "@rsdoctor/graph": "1.3.10",
73
+ "@rsdoctor/sdk": "1.3.10",
74
+ "@rsdoctor/utils": "1.3.10",
75
+ "@rsdoctor/types": "1.3.10"
76
76
  },
77
77
  "devDependencies": {
78
78
  "axios": "^1.12.2",
79
- "@rspack/core": "1.6.1",
79
+ "@rspack/core": "1.6.3",
80
80
  "@types/fs-extra": "^11.0.4",
81
81
  "@types/node": "^22.8.1",
82
82
  "@types/node-fetch": "^2.6.13",