@rsdoctor/core 0.2.5 → 0.3.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.
@@ -0,0 +1,7 @@
1
+ import { Plugin } from '@rsdoctor/types';
2
+ import { InternalBasePlugin } from './base';
3
+ export declare class InternalBundleTagPlugin<T extends Plugin.BaseCompiler> extends InternalBasePlugin<T> {
4
+ readonly name = "bundleTag";
5
+ apply(compiler: Plugin.BaseCompiler): void;
6
+ }
7
+ //# sourceMappingURL=bundleTagPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleTagPlugin.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/plugins/bundleTagPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAG5C,qBAAa,uBAAuB,CAClC,CAAC,SAAS,MAAM,CAAC,YAAY,CAC7B,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC7B,SAAgB,IAAI,eAAe;IAE5B,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY;CAmD3C"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var bundleTagPlugin_exports = {};
20
+ __export(bundleTagPlugin_exports, {
21
+ InternalBundleTagPlugin: () => InternalBundleTagPlugin
22
+ });
23
+ module.exports = __toCommonJS(bundleTagPlugin_exports);
24
+ var import_path = require("path");
25
+ var import_webpack_sources = require("webpack-sources");
26
+ var import_base = require("./base");
27
+ var import_logger = require("@rsdoctor/utils/logger");
28
+ class InternalBundleTagPlugin extends import_base.InternalBasePlugin {
29
+ constructor() {
30
+ super(...arguments);
31
+ this.name = "bundleTag";
32
+ }
33
+ apply(compiler) {
34
+ const supportBannerPlugin = !!this.options.supports?.banner;
35
+ compiler.hooks.compilation.tap("RsdoctorTagBannerPlugin", (compilation) => {
36
+ compilation.hooks.processAssets.tapPromise(
37
+ {
38
+ name: "RsdoctorTagBannerPlugin",
39
+ stage: -2e3
40
+ },
41
+ async () => {
42
+ if (!compilation.options.plugins.map((p) => p && p.constructor.name).includes("BannerPlugin") && !supportBannerPlugin) {
43
+ return;
44
+ }
45
+ import_logger.logger.info(
46
+ import_logger.chalk.bgMagenta(
47
+ "Rsdoctor BannerTagPlugin has open. Do not use Rsdoctor on production version."
48
+ )
49
+ );
50
+ const chunks = compilation.chunks;
51
+ for (let chunk of chunks) {
52
+ for (const file of chunk.files) {
53
+ if (!file || (0, import_path.extname)(file) !== ".js") {
54
+ continue;
55
+ }
56
+ compilation.updateAsset(
57
+ file,
58
+ // @ts-ignore
59
+ (old) => {
60
+ const concatSource = new import_webpack_sources.ConcatSource();
61
+ let header = "\n console.log('RSDOCTOR_START::');\n";
62
+ let footer = "\n console.log('RSDOCTOR_END::');\n";
63
+ concatSource.add(header);
64
+ concatSource.add(old);
65
+ concatSource.add(footer);
66
+ return concatSource;
67
+ },
68
+ () => {
69
+ }
70
+ );
71
+ }
72
+ }
73
+ }
74
+ );
75
+ });
76
+ }
77
+ }
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ InternalBundleTagPlugin
81
+ });
@@ -7,4 +7,5 @@ export * from './base';
7
7
  export * from './bundle';
8
8
  export * from './ensureModulesChunkGraph';
9
9
  export * from './rules';
10
+ export * from './bundleTagPlugin';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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;AACxB,cAAc,mBAAmB,CAAC"}
@@ -24,6 +24,7 @@ __reExport(plugins_exports, require("./base"), module.exports);
24
24
  __reExport(plugins_exports, require("./bundle"), module.exports);
25
25
  __reExport(plugins_exports, require("./ensureModulesChunkGraph"), module.exports);
26
26
  __reExport(plugins_exports, require("./rules"), module.exports);
27
+ __reExport(plugins_exports, require("./bundleTagPlugin"), module.exports);
27
28
  // Annotate the CommonJS export names for ESM import in node:
28
29
  0 && (module.exports = {
29
30
  ...require("./loader"),
@@ -34,5 +35,6 @@ __reExport(plugins_exports, require("./rules"), module.exports);
34
35
  ...require("./base"),
35
36
  ...require("./bundle"),
36
37
  ...require("./ensureModulesChunkGraph"),
37
- ...require("./rules")
38
+ ...require("./rules"),
39
+ ...require("./bundleTagPlugin")
38
40
  });
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,EAAO,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAMjB,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,MAAM,CAAC,cAAc,EAAE,EACvE,MAAM,GAAE,4BAA4B,CAAC,KAAK,CAAM,GAC/C,+BAA+B,CAAC,KAAK,CAAC,CA6ExC;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EACA,wBAAwB,GACxB,gBAAgB,GAChB,sBAAsB,GACtB,IAAI,QAcT;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,QA+BnD"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/inner-plugins/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,EAAO,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAMjB,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,MAAM,CAAC,cAAc,EAAE,EACvE,MAAM,GAAE,4BAA4B,CAAC,KAAK,CAAM,GAC/C,+BAA+B,CAAC,KAAK,CAAC,CA+ExC;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EACA,wBAAwB,GACxB,gBAAgB,GAChB,sBAAsB,GACtB,IAAI,QAcT;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,QA+BnD"}
@@ -47,7 +47,8 @@ function normalizeUserConfig(config = {}) {
47
47
  sdkInstance,
48
48
  reportCodeType = { noModuleSource: false, noAssetsAndModuleSource: false },
49
49
  disableTOSUpload = false,
50
- innerClientPath = ""
50
+ innerClientPath = "",
51
+ supports = { banner: false }
51
52
  } = config;
52
53
  (0, import_assert.default)(linter && typeof linter === "object");
53
54
  (0, import_assert.default)(features && typeof features === "object");
@@ -95,7 +96,8 @@ function normalizeUserConfig(config = {}) {
95
96
  * */
96
97
  reportCodeType: reportCodeType ? reportCodeType.noModuleSource ? import_types.SDK.ToDataType.Lite : reportCodeType.noAssetsAndModuleSource ? import_types.SDK.ToDataType.LiteAndNoAsset : import_types.SDK.ToDataType.Normal : _features.lite ? import_types.SDK.ToDataType.Lite : import_types.SDK.ToDataType.Normal,
97
98
  disableTOSUpload,
98
- innerClientPath
99
+ innerClientPath,
100
+ supports
99
101
  };
100
102
  return res;
101
103
  }
@@ -36,6 +36,10 @@ export interface RsdoctorWebpackPluginOptions<Rules extends LinterType.ExtendRul
36
36
  noModuleSource?: boolean;
37
37
  noAssetsAndModuleSource?: boolean;
38
38
  } | undefined;
39
+ /**
40
+ * Whether to turn on some characteristic analysis capabilities, such as: the support for the BannerPlugin.
41
+ */
42
+ supports?: ISupport | undefined;
39
43
  /**
40
44
  * control the Rsdoctor upload data to TOS, used by inner-rsdoctor.
41
45
  * @default false
@@ -53,6 +57,9 @@ export interface RsdoctorMultiplePluginOptions<Rules extends LinterType.ExtendRu
53
57
  */
54
58
  name?: string;
55
59
  }
60
+ type ISupport = {
61
+ banner: boolean;
62
+ };
56
63
  export interface RsdoctorPluginOptionsNormalized<Rules extends LinterType.ExtendRuleData[] = []> extends Common.DeepRequired<Omit<RsdoctorWebpackPluginOptions<Rules>, 'sdkInstance' | 'linter' | 'reportCodeType'>> {
57
64
  features: Common.DeepRequired<Plugin.RsdoctorWebpackPluginFeatures>;
58
65
  linter: Required<LinterType.Options<Rules, InternalRules>>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/types/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,IAAI,UAAU,EACpB,MAAM,EACN,MAAM,EACN,GAAG,EACJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,KAAK,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEjE,MAAM,WAAW,4BAA4B,CAC3C,KAAK,SAAS,UAAU,CAAC,cAAc,EAAE;IAEzC,4BAA4B;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,EACL,MAAM,CAAC,6BAA6B,GACpC,KAAK,CAAC,MAAM,MAAM,CAAC,6BAA6B,CAAC,CAAC;IACtD;;;OAGG;IACH,wBAAwB,CAAC,EAAE;QACzB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;IACF;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;OAEG;IACH,cAAc,CAAC,EACX;QAA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BAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,EAAE,WAAW,CAAC;IAC1B,+BAA+B,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC;CACpD;AAED,MAAM,WAAW,2BAA2B,CAC1C,KAAK,SAAS,UAAU,CAAC,cAAc,EAAE,CACzC,SAAQ,4BAA4B,CAAC,KAAK,CAAC;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -71,11 +71,12 @@
71
71
  "path-browserify": "1.0.1",
72
72
  "semver": "^7.5.4",
73
73
  "source-map": "^0.7.4",
74
+ "webpack-sources": "^3.2.3",
74
75
  "webpack-bundle-analyzer": "^4.9.1",
75
- "@rsdoctor/graph": "0.2.5",
76
- "@rsdoctor/sdk": "0.2.5",
77
- "@rsdoctor/types": "0.2.5",
78
- "@rsdoctor/utils": "0.2.5"
76
+ "@rsdoctor/graph": "0.3.0",
77
+ "@rsdoctor/sdk": "0.3.0",
78
+ "@rsdoctor/types": "0.3.0",
79
+ "@rsdoctor/utils": "0.3.0"
79
80
  },
80
81
  "devDependencies": {
81
82
  "@rspack/core": "0.6.5",
@@ -89,6 +90,7 @@
89
90
  "@types/semver": "^7.5.4",
90
91
  "@types/tapable": "2.2.2",
91
92
  "@types/webpack": "5.28.0",
93
+ "@types/webpack-sources": "^3.2.3",
92
94
  "babel-loader": "9.1.3",
93
95
  "string-loader": "0.0.1",
94
96
  "ts-loader": "^9.5.1",