@rsdoctor/webpack-plugin 0.4.10 → 0.4.12
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.
- package/dist/multiple.d.ts +2 -0
- package/dist/multiple.d.ts.map +1 -1
- package/dist/multiple.js +16 -1
- package/package.json +7 -7
package/dist/multiple.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Linter } from '@rsdoctor/types';
|
|
2
2
|
import type { RsdoctorMultiplePluginOptions } from '@rsdoctor/core';
|
|
3
3
|
import { RsdoctorWebpackPlugin } from './plugin';
|
|
4
|
+
import type { Compiler } from 'webpack';
|
|
4
5
|
export declare class RsdoctorWebpackMultiplePlugin<Rules extends Linter.ExtendRuleData[]> extends RsdoctorWebpackPlugin<Rules> {
|
|
5
6
|
private controller;
|
|
6
7
|
constructor(options?: RsdoctorMultiplePluginOptions<Rules>);
|
|
8
|
+
apply(compiler: Compiler): void;
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=multiple.d.ts.map
|
package/dist/multiple.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiple.d.ts","sourceRoot":"","sources":["../src/multiple.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"multiple.d.ts","sourceRoot":"","sources":["../src/multiple.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,qBAAa,6BAA6B,CACxC,KAAK,SAAS,MAAM,CAAC,cAAc,EAAE,CACrC,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IAEpC,OAAO,CAAC,UAAU,CAAwB;gBAE9B,OAAO,GAAE,6BAA6B,CAAC,KAAK,CAAM;IAiC9D,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAQzB"}
|
package/dist/multiple.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(multiple_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(multiple_exports);
|
|
24
24
|
var import_sdk = require("@rsdoctor/sdk");
|
|
25
25
|
var import_plugin = require("./plugin");
|
|
26
|
+
var import_plugins = require("@rsdoctor/core/plugins");
|
|
26
27
|
let globalController;
|
|
27
28
|
class RsdoctorWebpackMultiplePlugin extends import_plugin.RsdoctorWebpackPlugin {
|
|
28
29
|
constructor(options = {}) {
|
|
@@ -34,10 +35,18 @@ class RsdoctorWebpackMultiplePlugin extends import_plugin.RsdoctorWebpackPlugin
|
|
|
34
35
|
globalController = controller2;
|
|
35
36
|
return controller2;
|
|
36
37
|
})();
|
|
38
|
+
const normallizedOptions = (0, import_plugins.normalizeUserConfig)(options);
|
|
37
39
|
const instance = controller.createSlave({
|
|
38
40
|
name: options.name || "Builder",
|
|
39
41
|
stage: options.stage,
|
|
40
|
-
extraConfig: {
|
|
42
|
+
extraConfig: {
|
|
43
|
+
disableTOSUpload: normallizedOptions.disableTOSUpload || false,
|
|
44
|
+
innerClientPath: normallizedOptions.innerClientPath,
|
|
45
|
+
printLog: normallizedOptions.printLog,
|
|
46
|
+
mode: normallizedOptions.mode ? normallizedOptions.mode : void 0,
|
|
47
|
+
brief: normallizedOptions.brief
|
|
48
|
+
},
|
|
49
|
+
type: normallizedOptions.reportCodeType
|
|
41
50
|
});
|
|
42
51
|
super({
|
|
43
52
|
...options,
|
|
@@ -45,6 +54,12 @@ class RsdoctorWebpackMultiplePlugin extends import_plugin.RsdoctorWebpackPlugin
|
|
|
45
54
|
});
|
|
46
55
|
this.controller = controller;
|
|
47
56
|
}
|
|
57
|
+
apply(compiler) {
|
|
58
|
+
if ("dependencies" in compiler.options) {
|
|
59
|
+
this.sdk.dependencies = compiler.options.dependencies;
|
|
60
|
+
}
|
|
61
|
+
super.apply(compiler);
|
|
62
|
+
}
|
|
48
63
|
}
|
|
49
64
|
// Annotate the CommonJS export names for ESM import in node:
|
|
50
65
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"fs-extra": "^11.1.1",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@rsdoctor/
|
|
19
|
-
"@rsdoctor/
|
|
20
|
-
"@rsdoctor/
|
|
21
|
-
"@rsdoctor/
|
|
22
|
-
"@rsdoctor/
|
|
18
|
+
"@rsdoctor/core": "0.4.12",
|
|
19
|
+
"@rsdoctor/sdk": "0.4.12",
|
|
20
|
+
"@rsdoctor/types": "0.4.12",
|
|
21
|
+
"@rsdoctor/graph": "0.4.12",
|
|
22
|
+
"@rsdoctor/utils": "0.4.12"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/fs-extra": "^11.0.4",
|
|
26
26
|
"@types/lodash": "^4.17.13",
|
|
27
27
|
"@types/node": "^16",
|
|
28
28
|
"@types/tapable": "2.2.7",
|
|
29
|
-
"tslib": "2.
|
|
29
|
+
"tslib": "2.8.1",
|
|
30
30
|
"typescript": "^5.2.2",
|
|
31
31
|
"webpack": "^5.95.0"
|
|
32
32
|
},
|