@rsdoctor/core 0.2.3 → 0.2.5-beta.0

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 (146) hide show
  1. package/dist/build-utils/build/chunks/assetsModules.d.ts +1 -0
  2. package/dist/build-utils/build/chunks/assetsModules.d.ts.map +1 -0
  3. package/dist/build-utils/build/chunks/chunkTransform.d.ts +1 -0
  4. package/dist/build-utils/build/chunks/chunkTransform.d.ts.map +1 -0
  5. package/dist/build-utils/build/chunks/generateTileGraph.d.ts +1 -0
  6. package/dist/build-utils/build/chunks/generateTileGraph.d.ts.map +1 -0
  7. package/dist/build-utils/build/chunks/index.d.ts +1 -0
  8. package/dist/build-utils/build/chunks/index.d.ts.map +1 -0
  9. package/dist/build-utils/build/index.d.ts +1 -0
  10. package/dist/build-utils/build/index.d.ts.map +1 -0
  11. package/dist/build-utils/build/module-graph/index.d.ts +1 -0
  12. package/dist/build-utils/build/module-graph/index.d.ts.map +1 -0
  13. package/dist/build-utils/build/module-graph/parser.d.ts +1 -0
  14. package/dist/build-utils/build/module-graph/parser.d.ts.map +1 -0
  15. package/dist/build-utils/build/module-graph/transform.d.ts +1 -0
  16. package/dist/build-utils/build/module-graph/transform.d.ts.map +1 -0
  17. package/dist/build-utils/build/module-graph/treeShaking.d.ts +1 -0
  18. package/dist/build-utils/build/module-graph/treeShaking.d.ts.map +1 -0
  19. package/dist/build-utils/build/module-graph/utils.d.ts +1 -0
  20. package/dist/build-utils/build/module-graph/utils.d.ts.map +1 -0
  21. package/dist/build-utils/build/module-graph/webpack/transform.d.ts +1 -0
  22. package/dist/build-utils/build/module-graph/webpack/transform.d.ts.map +1 -0
  23. package/dist/build-utils/build/utils/index.d.ts +1 -0
  24. package/dist/build-utils/build/utils/index.d.ts.map +1 -0
  25. package/dist/build-utils/build/utils/loader.d.ts +1 -0
  26. package/dist/build-utils/build/utils/loader.d.ts.map +1 -0
  27. package/dist/build-utils/build/utils/parseBundle.d.ts +1 -0
  28. package/dist/build-utils/build/utils/parseBundle.d.ts.map +1 -0
  29. package/dist/build-utils/build/utils/parseBundle.js +105 -15
  30. package/dist/build-utils/build/utils/plugin.d.ts +5 -4
  31. package/dist/build-utils/build/utils/plugin.d.ts.map +1 -0
  32. package/dist/build-utils/common/chunks/assetsContent.d.ts +1 -0
  33. package/dist/build-utils/common/chunks/assetsContent.d.ts.map +1 -0
  34. package/dist/build-utils/common/chunks/assetsModules.d.ts +1 -0
  35. package/dist/build-utils/common/chunks/assetsModules.d.ts.map +1 -0
  36. package/dist/build-utils/common/chunks/assetsModules.js +2 -0
  37. package/dist/build-utils/common/chunks/chunkTransform.d.ts +1 -0
  38. package/dist/build-utils/common/chunks/chunkTransform.d.ts.map +1 -0
  39. package/dist/build-utils/common/chunks/index.d.ts +1 -0
  40. package/dist/build-utils/common/chunks/index.d.ts.map +1 -0
  41. package/dist/build-utils/common/index.d.ts +1 -0
  42. package/dist/build-utils/common/index.d.ts.map +1 -0
  43. package/dist/build-utils/common/module-graph/compatible.d.ts +1 -0
  44. package/dist/build-utils/common/module-graph/compatible.d.ts.map +1 -0
  45. package/dist/build-utils/common/module-graph/index.d.ts +1 -0
  46. package/dist/build-utils/common/module-graph/index.d.ts.map +1 -0
  47. package/dist/build-utils/common/module-graph/transform.d.ts +1 -0
  48. package/dist/build-utils/common/module-graph/transform.d.ts.map +1 -0
  49. package/dist/build-utils/common/module-graph/utils.d.ts +1 -0
  50. package/dist/build-utils/common/module-graph/utils.d.ts.map +1 -0
  51. package/dist/build-utils/common/trans-utils/index.d.ts +1 -0
  52. package/dist/build-utils/common/trans-utils/index.d.ts.map +1 -0
  53. package/dist/build-utils/common/trans-utils/transStats.d.ts +1 -0
  54. package/dist/build-utils/common/trans-utils/transStats.d.ts.map +1 -0
  55. package/dist/build-utils/common/webpack/compatible.d.ts +1 -0
  56. package/dist/build-utils/common/webpack/compatible.d.ts.map +1 -0
  57. package/dist/build-utils/index.d.ts +1 -0
  58. package/dist/build-utils/index.d.ts.map +1 -0
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.d.ts.map +1 -0
  61. package/dist/inner-plugins/constants.d.ts +1 -0
  62. package/dist/inner-plugins/constants.d.ts.map +1 -0
  63. package/dist/inner-plugins/index.d.ts +1 -0
  64. package/dist/inner-plugins/index.d.ts.map +1 -0
  65. package/dist/inner-plugins/loaders/proxy.d.ts +1 -0
  66. package/dist/inner-plugins/loaders/proxy.d.ts.map +1 -0
  67. package/dist/inner-plugins/plugins/base.d.ts +1 -0
  68. package/dist/inner-plugins/plugins/base.d.ts.map +1 -0
  69. package/dist/inner-plugins/plugins/bundle.d.ts +1 -0
  70. package/dist/inner-plugins/plugins/bundle.d.ts.map +1 -0
  71. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts +1 -0
  72. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts.map +1 -0
  73. package/dist/inner-plugins/plugins/errors.d.ts +1 -0
  74. package/dist/inner-plugins/plugins/errors.d.ts.map +1 -0
  75. package/dist/inner-plugins/plugins/index.d.ts +1 -0
  76. package/dist/inner-plugins/plugins/index.d.ts.map +1 -0
  77. package/dist/inner-plugins/plugins/loader.d.ts +1 -0
  78. package/dist/inner-plugins/plugins/loader.d.ts.map +1 -0
  79. package/dist/inner-plugins/plugins/plugins.d.ts +1 -0
  80. package/dist/inner-plugins/plugins/plugins.d.ts.map +1 -0
  81. package/dist/inner-plugins/plugins/progress.d.ts +1 -0
  82. package/dist/inner-plugins/plugins/progress.d.ts.map +1 -0
  83. package/dist/inner-plugins/plugins/rules.d.ts +1 -0
  84. package/dist/inner-plugins/plugins/rules.d.ts.map +1 -0
  85. package/dist/inner-plugins/plugins/summary.d.ts +1 -0
  86. package/dist/inner-plugins/plugins/summary.d.ts.map +1 -0
  87. package/dist/inner-plugins/utils/circleDetect.d.ts +1 -0
  88. package/dist/inner-plugins/utils/circleDetect.d.ts.map +1 -0
  89. package/dist/inner-plugins/utils/config.d.ts +1 -0
  90. package/dist/inner-plugins/utils/config.d.ts.map +1 -0
  91. package/dist/inner-plugins/utils/index.d.ts +1 -0
  92. package/dist/inner-plugins/utils/index.d.ts.map +1 -0
  93. package/dist/inner-plugins/utils/loader.d.ts +1 -0
  94. package/dist/inner-plugins/utils/loader.d.ts.map +1 -0
  95. package/dist/inner-plugins/utils/plugin.d.ts +3 -2
  96. package/dist/inner-plugins/utils/plugin.d.ts.map +1 -0
  97. package/dist/inner-plugins/utils/sdk.d.ts +1 -0
  98. package/dist/inner-plugins/utils/sdk.d.ts.map +1 -0
  99. package/dist/rules/index.d.ts +1 -0
  100. package/dist/rules/index.d.ts.map +1 -0
  101. package/dist/rules/linter.d.ts +1 -0
  102. package/dist/rules/linter.d.ts.map +1 -0
  103. package/dist/rules/rule.d.ts +1 -0
  104. package/dist/rules/rule.d.ts.map +1 -0
  105. package/dist/rules/rule.js +5 -2
  106. package/dist/rules/rules/default-import-check/index.d.ts +1 -0
  107. package/dist/rules/rules/default-import-check/index.d.ts.map +1 -0
  108. package/dist/rules/rules/default-import-check/types.d.ts +1 -0
  109. package/dist/rules/rules/default-import-check/types.d.ts.map +1 -0
  110. package/dist/rules/rules/default-import-check/utils.d.ts +1 -0
  111. package/dist/rules/rules/default-import-check/utils.d.ts.map +1 -0
  112. package/dist/rules/rules/duplicate-package/index.d.ts +1 -0
  113. package/dist/rules/rules/duplicate-package/index.d.ts.map +1 -0
  114. package/dist/rules/rules/duplicate-package/types.d.ts +1 -0
  115. package/dist/rules/rules/duplicate-package/types.d.ts.map +1 -0
  116. package/dist/rules/rules/duplicate-package/utils.d.ts +1 -0
  117. package/dist/rules/rules/duplicate-package/utils.d.ts.map +1 -0
  118. package/dist/rules/rules/ecma-version-check/index.d.ts +1 -0
  119. package/dist/rules/rules/ecma-version-check/index.d.ts.map +1 -0
  120. package/dist/rules/rules/ecma-version-check/types.d.ts +1 -0
  121. package/dist/rules/rules/ecma-version-check/types.d.ts.map +1 -0
  122. package/dist/rules/rules/ecma-version-check/utils.d.ts +1 -0
  123. package/dist/rules/rules/ecma-version-check/utils.d.ts.map +1 -0
  124. package/dist/rules/rules/index.d.ts +1 -0
  125. package/dist/rules/rules/index.d.ts.map +1 -0
  126. package/dist/rules/rules/loader-performance-optimization/index.d.ts +1 -0
  127. package/dist/rules/rules/loader-performance-optimization/index.d.ts.map +1 -0
  128. package/dist/rules/rules/loader-performance-optimization/types.d.ts +1 -0
  129. package/dist/rules/rules/loader-performance-optimization/types.d.ts.map +1 -0
  130. package/dist/rules/rules/loader-performance-optimization/utils.d.ts +1 -0
  131. package/dist/rules/rules/loader-performance-optimization/utils.d.ts.map +1 -0
  132. package/dist/rules/utils.d.ts +1 -0
  133. package/dist/rules/utils.d.ts.map +1 -0
  134. package/dist/types/chunks.d.ts +1 -0
  135. package/dist/types/chunks.d.ts.map +1 -0
  136. package/dist/types/index.d.ts +1 -0
  137. package/dist/types/index.d.ts.map +1 -0
  138. package/dist/types/loader.d.ts +1 -0
  139. package/dist/types/loader.d.ts.map +1 -0
  140. package/dist/types/plugin.d.ts +1 -0
  141. package/dist/types/plugin.d.ts.map +1 -0
  142. package/dist/types/rules.d.ts +1 -0
  143. package/dist/types/rules.d.ts.map +1 -0
  144. package/dist/types/webpack.d.ts +1 -0
  145. package/dist/types/webpack.d.ts.map +1 -0
  146. package/package.json +6 -6
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@rsdoctor/types';
2
2
  import { ParsedModuleSizeData } from '../../common/chunks';
3
3
  export declare function getAssetsModulesData(bundleStats: Plugin.StatsCompilation, bundleDir: string): Promise<ParsedModuleSizeData | null>;
4
+ //# sourceMappingURL=assetsModules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetsModules.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/assetsModules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAEL,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAGrC,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,CAAC,gBAAgB,EACpC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAEtC"}
@@ -2,3 +2,4 @@ import { Plugin } from '@rsdoctor/types';
2
2
  export declare function chunkTransform(assetMap: Map<string, {
3
3
  content: string;
4
4
  }>, bundleStats: Plugin.StatsCompilation): import("@rsdoctor/graph").ChunkGraph;
5
+ //# sourceMappingURL=chunkTransform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunkTransform.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/chunkTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1C,WAAW,EAAE,MAAM,CAAC,gBAAgB,wCAGrC"}
@@ -8,3 +8,4 @@ type IGenerateReportOpts = {
8
8
  };
9
9
  export declare function generateTileGraph(bundleStats: Plugin.BaseStats, opts: IGenerateReportOpts, buildOutputPath: string): Promise<string | null>;
10
10
  export {};
11
+ //# sourceMappingURL=generateTileGraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateTileGraph.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/generateTileGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,KAAK,mBAAmB,GAAG;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAiBF,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,CAAC,SAAS,EAC7B,IAAI,EAAE,mBAAmB,EACzB,eAAe,EAAE,MAAM,0BAexB"}
@@ -1,3 +1,4 @@
1
1
  export * from './assetsModules';
2
2
  export * from './chunkTransform';
3
3
  export * from './generateTileGraph';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -2,3 +2,4 @@ export * as Chunks from './chunks';
2
2
  export * as Utils from './utils';
3
3
  export * as Types from '../../types';
4
4
  export * as ModuleGraph from './module-graph';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build-utils/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './webpack/transform';
2
2
  export * from './transform';
3
3
  export * from './treeShaking';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { Node } from '@rsdoctor/utils/ruleUtils';
2
2
  export declare function hasSetEsModuleStatement(program: Node.Program): boolean;
3
+ //# sourceMappingURL=parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAazD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,WAS5D"}
@@ -2,3 +2,4 @@ import { Plugin } from '@rsdoctor/types';
2
2
  import { TransformContext } from '.';
3
3
  import { ChunkGraph } from '@rsdoctor/graph';
4
4
  export declare function getModuleGraphByStats(compilation: Plugin.BaseCompilation, stats: Plugin.StatsCompilation, root: string, chunkGraph: ChunkGraph, features?: Plugin.RsdoctorWebpackPluginFeatures, context?: TransformContext): Promise<import("@rsdoctor/graph").ModuleGraph>;
5
+ //# sourceMappingURL=transform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAkC,MAAM,GAAG,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,KAAK,EAAE,MAAM,CAAC,gBAAgB,EAC9B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,UAAU,EACtB,QAAQ,CAAC,EAAE,MAAM,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,gBAAgB,kDAQ3B"}
@@ -1,3 +1,4 @@
1
1
  import { ModuleGraph } from '@rsdoctor/graph';
2
2
  import type { Plugin } from '@rsdoctor/types';
3
3
  export declare function appendTreeShaking(moduleGraph: ModuleGraph, compilation: Plugin.BaseCompilation): ModuleGraph | undefined;
4
+ //# sourceMappingURL=treeShaking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treeShaking.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/treeShaking.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAMZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAsJnD,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,CAAC,eAAe,2BAsBpC"}
@@ -1,3 +1,4 @@
1
1
  import * as SDK from '@rsdoctor/graph';
2
2
  export declare function getExportIdentifierStatement(name: string, module: SDK.Module): SDK.Statement | undefined;
3
3
  export declare function getDeclarationIdentifier(name: string, module: SDK.Module): SDK.Statement | undefined;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAC;AA0DvC,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,6BAuB5E;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,6BAiCxE"}
@@ -9,3 +9,4 @@ export interface TransformContext {
9
9
  getSourceMap?(module: string): Promise<SourceMapConsumer | undefined>;
10
10
  }
11
11
  export declare function appendModuleGraphByCompilation(compilation: Plugin.BaseCompilation, graph: ModuleGraph, features?: Plugin.RsdoctorWebpackPluginFeatures, context?: TransformContext): Promise<ModuleGraph>;
12
+ //# sourceMappingURL=transform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/build-utils/build/module-graph/webpack/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAU,WAAW,EAAe,MAAM,iBAAiB,CAAC;AAmBnE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;CACvE;AAoND,wBAAsB,8BAA8B,CAClD,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,KAAK,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,gBAAgB,wBA2B3B"}
@@ -1,3 +1,4 @@
1
1
  export * from './loader';
2
2
  export * from './plugin';
3
3
  export * from './parseBundle';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -16,3 +16,4 @@ export declare function extractLoaderName(loaderPath: string, cwd?: string): str
16
16
  export declare function mapEachRules<T extends Plugin.BuildRuleSetRule>(rules: T[], callback: (rule: T) => T): T[];
17
17
  export declare function addProbeLoader2Rules<T extends Plugin.BuildRuleSetRule>(rules: T[], loaderName: string, appendRules: (rule: T, index: number) => T, strict?: boolean): T[];
18
18
  export declare function createLoaderContextTrap(this: Plugin.LoaderContext<Common.PlainObject>, final: (err: Error | null | undefined, res: string | Buffer | null, sourceMap?: WebpackSourceMapInput) => void): Plugin.LoaderContext<Common.PlainObject<any>>;
19
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/loader.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAQ,cAAc,IAAI,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAO/E,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAOA;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,GAAG,SAAgB,GAClB;IACD,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAC5C,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;CACrB,CAiBA;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,KAQzE;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAqBtE;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EAC5D,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,EAAE,CAgFL;AAyBD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EACpE,KAAK,EAAE,CAAC,EAAE,EACV,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAC1C,MAAM,CAAC,EAAE,OAAO,GACf,CAAC,EAAE,CAgEL;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,EAC9C,KAAK,EAAE,CACL,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,SAAS,CAAC,EAAE,qBAAqB,KAC9B,IAAI,iDAsFV"}
@@ -10,3 +10,4 @@ import { ParseBundle } from '../../../types';
10
10
  * https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/44bd8d0f9aa3b098e271af220096ea70cc44bc9e/LICENSE
11
11
  */
12
12
  export declare const parseBundle: ParseBundle;
13
+ //# sourceMappingURL=parseBundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseBundle.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/parseBundle.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC;;;;;;;;;GASG;AAEH,eAAO,MAAM,WAAW,EAAE,WA4PzB,CAAC"}
@@ -36,6 +36,7 @@ var import_lodash = require("lodash");
36
36
  var import_bytes = __toESM(require("bytes"));
37
37
  var import_ruleUtils = require("@rsdoctor/utils/ruleUtils");
38
38
  var import_path = require("path");
39
+ var import_logger = require("@rsdoctor/utils/logger");
39
40
  const parseBundle = (bundlePath, modulesData) => {
40
41
  if (bundlePath.indexOf(".worker.") > 0) {
41
42
  return {};
@@ -43,7 +44,24 @@ const parseBundle = (bundlePath, modulesData) => {
43
44
  if ((0, import_path.extname)(bundlePath) !== ".js") {
44
45
  return {};
45
46
  }
46
- const content = import_fs.default.readFileSync(bundlePath, "utf8");
47
+ let content = import_fs.default.readFileSync(bundlePath, "utf8");
48
+ const tagCache = /* @__PURE__ */ new Map();
49
+ let hasBannerPlugin = content.indexOf("RSDOCTOR_START::") > 0;
50
+ if (hasBannerPlugin && !tagCache.get(bundlePath)) {
51
+ const tagMatchResult = getStringBetween(
52
+ content,
53
+ 0,
54
+ /([a-z|A-Z]+\.[a-z]+)\(\SRSDOCTOR_START::(.*?);/,
55
+ /([a-z|A-Z]+\.[a-z]+)\(\SRSDOCTOR_END::(.*?)\)/
56
+ );
57
+ content = tagMatchResult.result?.trim() || content;
58
+ tagCache.set(bundlePath, tagMatchResult.loc);
59
+ hasBannerPlugin = true;
60
+ } else if (hasBannerPlugin && !tagCache.get(bundlePath)) {
61
+ const loc = tagCache.get(bundlePath);
62
+ content = content.slice(loc.start, loc.end);
63
+ hasBannerPlugin = true;
64
+ }
47
65
  const ast = import_ruleUtils.parser.internal.parse(content, {
48
66
  sourceType: "script",
49
67
  ecmaVersion: "latest"
@@ -57,19 +75,50 @@ const parseBundle = (bundlePath, modulesData) => {
57
75
  if (state.locations)
58
76
  return;
59
77
  state.expressionStatementDepth++;
60
- if (
61
- // Webpack 5 stores modules in the the top-level IIFE
62
- state.expressionStatementDepth === 1 && // ast?.range?.includes(node) &&
63
- isIIFE(node)
64
- ) {
65
- const fn = getIIFECallExpression(node);
78
+ try {
66
79
  if (
67
- // It should not contain neither arguments
68
- fn.arguments.length === 0 && // ...nor parameters
69
- fn.callee.params.length === 0
80
+ // Webpack 5 stores modules in the the top-level IIFE
81
+ state.expressionStatementDepth === 1 && // ast?.range?.includes(node) &&
82
+ isIIFE(node)
70
83
  ) {
71
- const firstVariableDeclaration = fn.callee.body.body.find(
72
- (node2) => node2.type === "VariableDeclaration"
84
+ const fn = getIIFECallExpression(node);
85
+ if (
86
+ // It should not contain neither arguments
87
+ fn.arguments.length === 0 && // ...nor parameters
88
+ fn.callee.params.length === 0
89
+ ) {
90
+ const firstVariableDeclaration = fn.callee.body.body.find(
91
+ (node2) => node2.type === "VariableDeclaration"
92
+ );
93
+ if (firstVariableDeclaration) {
94
+ for (const declaration of firstVariableDeclaration.declarations) {
95
+ if (declaration.init) {
96
+ state.locations = getModulesLocations(declaration.init);
97
+ if (state.locations) {
98
+ break;
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ if (!state.locations) {
106
+ c(node.expression, state);
107
+ }
108
+ } catch (e) {
109
+ (0, import_logger.debug)(() => e);
110
+ }
111
+ state.expressionStatementDepth--;
112
+ },
113
+ Program(node, state, _c) {
114
+ if (state.locations)
115
+ return;
116
+ try {
117
+ if (hasBannerPlugin) {
118
+ const firstVariableDeclaration = node.body.find(
119
+ (node2) => {
120
+ return node2.type === "VariableDeclaration" && node2.declarations?.[0]?.init?.type === "ObjectExpression" && node2.declarations?.[0]?.init?.properties?.length;
121
+ }
73
122
  );
74
123
  if (firstVariableDeclaration) {
75
124
  for (const declaration of firstVariableDeclaration.declarations) {
@@ -82,9 +131,11 @@ const parseBundle = (bundlePath, modulesData) => {
82
131
  }
83
132
  }
84
133
  }
85
- }
86
- if (!state.locations) {
87
- c(node.expression, state);
134
+ if (!state.locations) {
135
+ node.body.forEach((n) => _c(n, state));
136
+ }
137
+ } catch (e) {
138
+ (0, import_logger.debug)(() => e);
88
139
  }
89
140
  state.expressionStatementDepth--;
90
141
  },
@@ -271,6 +322,45 @@ function getModuleLocation(node) {
271
322
  end: node.end
272
323
  };
273
324
  }
325
+ function getStringBetween(raw, position, start, end) {
326
+ try {
327
+ const matchStart = raw.match(start);
328
+ const startFlagIndex = matchStart?.length ? raw.indexOf(matchStart[0], position) : -1;
329
+ if (startFlagIndex === -1 || !matchStart?.length) {
330
+ return {
331
+ result: null,
332
+ remain: position
333
+ };
334
+ }
335
+ const startTagLength = matchStart[0].length;
336
+ const matchEnd = raw.match(end);
337
+ const endFlagIndex = matchEnd?.length ? raw.indexOf(matchEnd[0], startFlagIndex + startTagLength) : -1;
338
+ if (endFlagIndex === -1 || !matchEnd?.length) {
339
+ return {
340
+ result: null,
341
+ remain: position
342
+ };
343
+ }
344
+ let innerContent = raw.slice(startFlagIndex + startTagLength, endFlagIndex).trim();
345
+ if (innerContent.endsWith(",")) {
346
+ innerContent = innerContent.slice(0, -1);
347
+ }
348
+ return {
349
+ result: innerContent,
350
+ remain: matchEnd?.length ? endFlagIndex + matchEnd[0].length : endFlagIndex,
351
+ loc: {
352
+ start: startFlagIndex + startTagLength,
353
+ end: endFlagIndex
354
+ }
355
+ };
356
+ } catch (e) {
357
+ (0, import_logger.debug)(() => e);
358
+ return {
359
+ result: null,
360
+ remain: position
361
+ };
362
+ }
363
+ }
274
364
  // Annotate the CommonJS export names for ESM import in node:
275
365
  0 && (module.exports = {
276
366
  parseBundle
@@ -1,5 +1,6 @@
1
- import type { Hook } from 'tapable';
2
1
  import { Plugin } from '@rsdoctor/types';
3
- export declare function shouldInterceptPluginHook<T extends Hook<any, any>>(hook: T): boolean;
4
- export declare function interceptCompilerHooks(compiler: Plugin.BaseCompiler, interceptor: (name: string, hook: Hook<any, any>, scope: 'compiler') => void): void;
5
- export declare function interceptCompilationHooks(compilation: Plugin.BaseCompilation, interceptor: (name: string, hook: Hook<any, any>, scope: 'compilation') => void): void;
2
+ export type IHook = Plugin.BaseCompiler['hooks'][keyof Plugin.BaseCompiler['hooks']];
3
+ export declare function shouldInterceptPluginHook<T extends IHook>(hook: T): boolean;
4
+ export declare function interceptCompilerHooks(compiler: Plugin.BaseCompiler, interceptor: (name: string, hook: IHook, scope: 'compiler') => void): void;
5
+ export declare function interceptCompilationHooks(compilation: Plugin.BaseCompilation, interceptor: (name: string, hook: IHook, scope: 'compilation') => void): void;
6
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,MAAM,KAAK,GACf,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAEnE,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,KAAK,EAAE,IAAI,EAAE,CAAC,WAoBjE;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,CAAC,YAAY,EAC7B,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,QAQpE;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,KAAK,IAAI,QAiBvE"}
@@ -2,3 +2,4 @@ import { ChunkGraph } from '@rsdoctor/graph';
2
2
  export declare function assetsContents(assetMap: Map<string, {
3
3
  content: string;
4
4
  }>, chunkGraph: ChunkGraph): void;
5
+ //# sourceMappingURL=assetsContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetsContent.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/chunks/assetsContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1C,UAAU,EAAE,UAAU,QAOvB"}
@@ -21,3 +21,4 @@ export declare function getAssetsModulesData(bundleStats: Plugin.StatsCompilatio
21
21
  parseBundle?: ParseBundle;
22
22
  }): Promise<ParsedModuleSizeData | null>;
23
23
  export declare function transformAssetsModulesData(parsedModulesData: ParsedModuleSizeData, moduleGraph: ModuleGraph): void;
24
+ //# sourceMappingURL=assetsModules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetsModules.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/chunks/assetsModules.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACrE,CAAC;AACF;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,CAAC,gBAAgB,EACpC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE;IACJ,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GACA,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAsEtC;AAED,wBAAgB,0BAA0B,CACxC,iBAAiB,EAAE,oBAAoB,EACvC,WAAW,EAAE,WAAW,QAUzB"}
@@ -66,6 +66,8 @@ async function getAssetsModulesData(bundleStats, bundleDir, opts) {
66
66
  let bundleInfo;
67
67
  const collectedModules = [];
68
68
  (0, import_module_graph.getModulesFromArray)(bundleStats.modules ?? [], collectedModules);
69
+ const childrenModules = bundleStats.children?.flatMap((c) => c.modules || []) || [];
70
+ collectedModules.push(...childrenModules);
69
71
  try {
70
72
  bundleInfo = await parseBundle(assetFile, collectedModules);
71
73
  } catch (err) {
@@ -3,3 +3,4 @@ import { Plugin } from '@rsdoctor/types';
3
3
  export declare function chunkTransform(assetMap: Map<string, {
4
4
  content: string;
5
5
  }>, bundleStats: Plugin.StatsCompilation): ChunkGraph;
6
+ //# sourceMappingURL=chunkTransform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunkTransform.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/chunks/chunkTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAIzC,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1C,WAAW,EAAE,MAAM,CAAC,gBAAgB,cA0DrC"}
@@ -1,3 +1,4 @@
1
1
  export * from './assetsModules';
2
2
  export * from './chunkTransform';
3
3
  export * from './assetsContent';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/chunks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
@@ -3,3 +3,4 @@ export * as Types from '../../types';
3
3
  export * as ModuleGraph from './module-graph';
4
4
  export * as TransUtils from './trans-utils';
5
5
  export * as Webpack from './webpack/compatible';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build-utils/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC"}
@@ -7,3 +7,4 @@ import { Plugin, SDK } from '@rsdoctor/types';
7
7
  */
8
8
  export declare function getPositionByStatsLocation(loc: string): SDK.SourceRange | undefined;
9
9
  export declare function isWebpack5orRspack(compilation: Plugin.BaseCompilation): Boolean;
10
+ //# sourceMappingURL=compatible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatible.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/module-graph/compatible.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,GACV,GAAG,CAAC,WAAW,GAAG,SAAS,CAqC7B;AAED,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,CAAC,eAAe,GAClC,OAAO,CAET"}
@@ -1,3 +1,4 @@
1
1
  export * from './transform';
2
2
  export * from './compatible';
3
3
  export * from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/module-graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -5,3 +5,4 @@ export declare function getModulesFromArray(modules: Plugin.StatsModule[], colle
5
5
  * this function can run in browser & node.
6
6
  */
7
7
  export declare function getModuleGraphByStats({ modules, chunks }: Plugin.StatsCompilation, root: string, chunkGraph: ChunkGraph): ModuleGraph;
8
+ //# sourceMappingURL=transform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/module-graph/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAqB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAqC7E,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,CAAC,WAAW,EAAE,EAC7B,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,QAKvC;AAaD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,gBAAgB,EAC5C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,UAAU,eAqKvB"}
@@ -13,3 +13,4 @@ export declare function getImportKind(dep: DependencyData): SDK.DependencyKind;
13
13
  export declare function removeNoImportStyle(graph: ModuleGraph): void;
14
14
  export declare function isStyleExt(path: string): boolean;
15
15
  export {};
16
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/module-graph/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,0DAA0D;AAC1D,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,WAS1D;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,GAAG,CAAC,cAAc,CAwBrE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,QAMrD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,WAEtC"}
@@ -1 +1,2 @@
1
1
  export * from './transStats';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/trans-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -4,3 +4,4 @@ export declare function transStats(json: Plugin.StatsCompilation): Promise<{
4
4
  chunkGraph: ChunkGraph;
5
5
  moduleGraph: import("@rsdoctor/graph").ModuleGraph;
6
6
  }>;
7
+ //# sourceMappingURL=transStats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transStats.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/trans-utils/transStats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB;;;GAO7D"}
@@ -24,3 +24,4 @@ export declare function getSdkDependencyByWebpackDependency(dep: Dependency, mod
24
24
  export declare function getExportStatement(info: ExportInfo, normalModule: NormalModule, graph: SdkModuleGraph): Statement | undefined;
25
25
  export declare function getLastExportInfo(info: ExportInfo, webpackGraph: ModuleGraph): ExportInfo | undefined;
26
26
  export declare function getAllModules(compilation: Compilation): NormalModule[];
27
+ //# sourceMappingURL=compatible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatible.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/webpack/compatible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,WAAW,IAAI,cAAc,EAC7B,MAAM,IAAI,SAAS,EACnB,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,WAAW,EACX,UAAU,EACV,cAAc,EACd,MAAM,EACN,WAAW,EACX,YAAY,EACb,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE5D,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,YAAY,CAE/D;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAE9D;AAED,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,UAAU,EACf,MAAM,CAAC,EAAE,YAAY,GACpB,MAAM,CAER;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,UAEpE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,cAAc,CAEnE;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAIzD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,WAAW,iBAQpE;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,YAAY,EAAE,CAMhB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,UAAQ,GACb,GAAG,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAqBxC;AAED,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,SAAS,EACjB,SAAS,UAAO,GACf,SAAS,GAAG,SAAS,CAyBvB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,0BAgBzE;AAED,wBAAgB,mCAAmC,CACjD,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,cAAc,oDAStB;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,UAAU,EAChB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,cAAc,yBA4BtB;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,UAAU,EAChB,YAAY,EAAE,WAAW,GACxB,UAAU,GAAG,SAAS,CAWxB;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,kBAcrD"}
@@ -1,2 +1,3 @@
1
1
  export * as Build from './build';
2
2
  export * as Common from './common';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/build-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './build-utils';
2
2
  export * as InnerPlugins from './inner-plugins';
3
3
  export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC"}
@@ -4,3 +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
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/inner-plugins/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAEnC,eAAO,MAAM,aAAa,0BAA0B,CAAC;AAErD,eAAO,MAAM,oBAAoB,EAAE,GAGlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,GAGjC,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAAe,MAAM,KAAG,GAG9D,CAAC;AAEH,eAAO,MAAM,4BAA4B,cAAe,MAAM,KAAG,GAG/D,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './plugins';
2
2
  export * from './utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/inner-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -2,3 +2,4 @@ import { Plugin } from '@rsdoctor/types';
2
2
  import type { ProxyLoaderOptions } from '../../types';
3
3
  declare const loaderModule: Plugin.LoaderDefinition<ProxyLoaderOptions, {}>;
4
4
  export = loaderModule;
5
+ //# sourceMappingURL=proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/loaders/proxy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOlD,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,EAAE,CA4EjE,CAAC;AAkEF,SAAS,YAAY,CAAC"}
@@ -11,3 +11,4 @@ export declare abstract class InternalBasePlugin<T extends Plugin.BaseCompiler>
11
11
  get tapPostOptions(): import("tapable").Tap;
12
12
  get tapPreOptions(): import("tapable").Tap;
13
13
  }
14
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKtD,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtE,8BAAsB,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,YAAY,CACpE,YAAW,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;aAKnC,SAAS,EAAE,sBAAsB,CAC/C,CAAC,EACD,MAAM,CAAC,cAAc,EAAE,CACxB;IANH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAGJ,SAAS,EAAE,sBAAsB,CAC/C,CAAC,EACD,MAAM,CAAC,cAAc,EAAE,CACxB;IAGH,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI;IAEjC,IAAI,OAAO,4FAEV;IAED,IAAI,GAAG,IAAI,kBAAkB,CAE5B;IAED,IAAI,cAAc,0BAEjB;IAED,IAAI,aAAa,0BAEhB;CACF"}
@@ -12,3 +12,4 @@ export declare class InternalBundlePlugin<T extends Plugin.BaseCompiler> extends
12
12
  thisCompilation: (compilation: Plugin.BaseCompilation) => void;
13
13
  done: () => Promise<void>;
14
14
  }
15
+ //# sourceMappingURL=bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/bundle.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAI5C,qBAAa,oBAAoB,CAC/B,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,YAAY;IAEzB,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAa;IAElD,KAAK,CAAC,QAAQ,EAAE,CAAC;IAOjB,kBAAkB,CAAC,IAAI,EAAE,MAAM;;;IAQ/B,eAAe,gBAAiB,OAAO,eAAe,UA0C3D;IAEK,IAAI,QAAa,QAAQ,IAAI,CAAC,CASnC;CACH"}
@@ -7,3 +7,4 @@ import { Linter, Plugin } from '@rsdoctor/types';
7
7
  * @memberof RsdoctorWebpackPlugin
8
8
  */
9
9
  export declare const ensureModulesChunksGraphFn: (compiler: Plugin.BaseCompiler, _this: RsdoctorPluginInstance<Plugin.BaseCompiler, Linter.ExtendRuleData[]>) => void;
10
+ //# sourceMappingURL=ensureModulesChunkGraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureModulesChunkGraph.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/ensureModulesChunkGraph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAuB,MAAM,iBAAiB,CAAC;AAWtE;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,aAC3B,OAAO,YAAY,SACtB,uBAAuB,OAAO,YAAY,EAAE,OAAO,cAAc,EAAE,CAAC,SAgF5E,CAAC"}
@@ -9,3 +9,4 @@ export declare class InternalErrorReporterPlugin<T extends Plugin.BaseCompiler>
9
9
  reportWarnings(warnings: Plugin.BuildError[]): Promise<void>;
10
10
  reportErrors(errors: Plugin.BuildWarning[]): Promise<void>;
11
11
  }
12
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBAAa,2BAA2B,CACtC,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,oBAAoB;IAEjC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAIjB,IAAI,UAAiB,OAAO,SAAS,KAAG,QAAQ,IAAI,CAAC,CAiB1D;IAEK,kBAAkB,CACvB,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAClC,KAAK,EAAE,MAAM,OAAO,GAAG,CAAC,UAAU;IAavB,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE;IAW5C,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE;CAUxD"}
@@ -7,3 +7,4 @@ export * from './base';
7
7
  export * from './bundle';
8
8
  export * from './ensureModulesChunkGraph';
9
9
  export * from './rules';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
@@ -9,3 +9,4 @@ export declare class InternalLoaderPlugin<T extends Plugin.BaseCompiler> extends
9
9
  compilation(compiler: Plugin.BaseCompiler, compilation: Plugin.BaseCompilation): void;
10
10
  getInterceptRules(compiler: Plugin.BaseCompiler, rules: RuleSetRule[]): RuleSetRule[];
11
11
  }
12
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAInD,OAAO,EAA+B,WAAW,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAG5C,qBAAa,oBAAoB,CAC/B,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,YAAY;IAEhC,SAAgB,kBAAkB,SAAuC;IAElE,KAAK,CAAC,QAAQ,EAAE,CAAC;IAUjB,YAAY,aAAc,OAAO,YAAY,UAYlD;IAEK,WAAW,CAChB,QAAQ,EAAE,MAAM,CAAC,YAAY,EAC7B,WAAW,EAAE,MAAM,CAAC,eAAe;IA4G9B,iBAAiB,CACtB,QAAQ,EAAE,MAAM,CAAC,YAAY,EAC7B,KAAK,EAAE,WAAW,EAAE;CAcvB"}
@@ -6,3 +6,4 @@ export declare class InternalPluginsPlugin<T extends Plugin.BaseCompiler> extend
6
6
  afterPlugins: (compiler: Plugin.BaseCompiler) => void;
7
7
  compilation: (compilation: Plugin.BaseCompilation) => void;
8
8
  }
9
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,qBAAa,qBAAqB,CAChC,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,aAAa;IAE1B,KAAK,CAAC,QAAQ,EAAE,CAAC;IAKjB,YAAY,aAAc,OAAO,YAAY,UAYlD;IAEK,WAAW,gBAAiB,OAAO,eAAe,KAAG,IAAI,CAO9D;CACH"}
@@ -6,3 +6,4 @@ export declare class InternalProgressPlugin<T extends Plugin.BaseCompiler> exten
6
6
  protected currentProgress: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.APIExtends.GetCompileProgess>;
7
7
  apply(compiler: T): void;
8
8
  }
9
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,qBAAa,sBAAsB,CACjC,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,cAAc;IAElC,SAAS,CAAC,eAAe,EAAE,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAIlG;IAEG,KAAK,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI;CAqBhC"}
@@ -6,3 +6,4 @@ export declare class InternalRulesPlugin extends InternalBasePlugin<Plugin.BaseC
6
6
  done: (stats: Plugin.BaseStats) => Promise<void>;
7
7
  protected lint(compilation: Plugin.BaseCompilation): Promise<void>;
8
8
  }
9
+ //# sourceMappingURL=rules.d.ts.map