@rsdoctor/webpack-plugin 1.5.14 → 1.5.16
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/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_expo
|
|
|
27
27
|
defineRule: ()=>rules_namespaceObject.defineRule
|
|
28
28
|
});
|
|
29
29
|
const build_utils_namespaceObject = require("@rsdoctor/core/build-utils"), plugins_namespaceObject = require("@rsdoctor/core/plugins"), graph_namespaceObject = require("@rsdoctor/graph"), sdk_namespaceObject = require("@rsdoctor/sdk"), types_namespaceObject = require("@rsdoctor/types"), build_namespaceObject = require("@rsdoctor/utils/build"), common_namespaceObject = require("@rsdoctor/utils/common"), logger_namespaceObject = require("@rsdoctor/utils/logger");
|
|
30
|
-
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.
|
|
30
|
+
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.16","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/webpack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"type":"module","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"npm run start","build":"rslib build","start":"rslib build -w","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@types/node":"catalog:","@types/tapable":"catalog:","tslib":"catalog:","typescript":"catalog:","webpack":"^5.105.4"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
31
31
|
const pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
32
32
|
name: pluginTapName,
|
|
33
33
|
stage: 999
|
|
@@ -52,7 +52,7 @@ class RsdoctorWebpackPlugin {
|
|
|
52
52
|
outsideInstance;
|
|
53
53
|
constructor(options){
|
|
54
54
|
this.options = (0, plugins_namespaceObject.normalizeUserConfig)(options);
|
|
55
|
-
const { port, output, innerClientPath, printLog, sdkInstance } = this.options;
|
|
55
|
+
const { port, server, output, innerClientPath, printLog, sdkInstance } = this.options;
|
|
56
56
|
this.sdk = sdkInstance ?? new sdk_namespaceObject.RsdoctorSDK({
|
|
57
57
|
port: port,
|
|
58
58
|
name: pluginTapName,
|
|
@@ -61,6 +61,7 @@ class RsdoctorWebpackPlugin {
|
|
|
61
61
|
config: {
|
|
62
62
|
innerClientPath: innerClientPath,
|
|
63
63
|
printLog: printLog,
|
|
64
|
+
server,
|
|
64
65
|
mode: output.mode,
|
|
65
66
|
brief: output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] && output.options || void 0,
|
|
66
67
|
features: {
|
|
@@ -117,6 +118,7 @@ class RsdoctorWebpackMultiplePlugin extends RsdoctorWebpackPlugin {
|
|
|
117
118
|
extraConfig: {
|
|
118
119
|
innerClientPath: normallizedOptions.innerClientPath,
|
|
119
120
|
printLog: normallizedOptions.printLog,
|
|
121
|
+
server: normallizedOptions.server,
|
|
120
122
|
mode: normallizedOptions.output.mode ? normallizedOptions.output.mode : void 0,
|
|
121
123
|
brief: normallizedOptions.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] && normallizedOptions.output.options || void 0
|
|
122
124
|
},
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Process } from "@rsdoctor/utils/build";
|
|
|
8
8
|
import { Loader as common_Loader } from "@rsdoctor/utils/common";
|
|
9
9
|
import { logger } from "@rsdoctor/utils/logger";
|
|
10
10
|
import path from "path";
|
|
11
|
-
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.
|
|
11
|
+
var package_namespaceObject = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.5.16","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/webpack-plugin"},"license":"MIT","main":"dist/index.cjs","types":"dist/index.d.ts","files":["dist"],"type":"module","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"npm run start","build":"rslib build","start":"rslib build -w","test":"rstest run"},"dependencies":{"@rsdoctor/core":"workspace:*","@rsdoctor/graph":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*"},"devDependencies":{"@types/node":"catalog:","@types/tapable":"catalog:","tslib":"catalog:","typescript":"catalog:","webpack":"^5.105.4"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
12
12
|
let pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
13
13
|
name: pluginTapName,
|
|
14
14
|
stage: 999
|
|
@@ -25,7 +25,7 @@ class RsdoctorWebpackPlugin {
|
|
|
25
25
|
outsideInstance;
|
|
26
26
|
constructor(options){
|
|
27
27
|
this.options = normalizeUserConfig(options);
|
|
28
|
-
let { port, output, innerClientPath, printLog, sdkInstance } = this.options;
|
|
28
|
+
let { port, server, output, innerClientPath, printLog, sdkInstance } = this.options;
|
|
29
29
|
this.sdk = sdkInstance ?? new RsdoctorSDK({
|
|
30
30
|
port: port,
|
|
31
31
|
name: pluginTapName,
|
|
@@ -34,6 +34,7 @@ class RsdoctorWebpackPlugin {
|
|
|
34
34
|
config: {
|
|
35
35
|
innerClientPath: innerClientPath,
|
|
36
36
|
printLog: printLog,
|
|
37
|
+
server,
|
|
37
38
|
mode: output.mode,
|
|
38
39
|
brief: output.mode === SDK.IMode[SDK.IMode.brief] && output.options || void 0,
|
|
39
40
|
features: {
|
|
@@ -90,6 +91,7 @@ class RsdoctorWebpackMultiplePlugin extends RsdoctorWebpackPlugin {
|
|
|
90
91
|
extraConfig: {
|
|
91
92
|
innerClientPath: normallizedOptions.innerClientPath,
|
|
92
93
|
printLog: normallizedOptions.printLog,
|
|
94
|
+
server: normallizedOptions.server,
|
|
93
95
|
mode: normallizedOptions.output.mode ? normallizedOptions.output.mode : void 0,
|
|
94
96
|
brief: normallizedOptions.output.mode === SDK.IMode[SDK.IMode.brief] && normallizedOptions.output.options || void 0
|
|
95
97
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@rsdoctor/core": "1.5.
|
|
30
|
-
"@rsdoctor/graph": "1.5.
|
|
31
|
-
"@rsdoctor/
|
|
32
|
-
"@rsdoctor/
|
|
33
|
-
"@rsdoctor/
|
|
29
|
+
"@rsdoctor/core": "1.5.16",
|
|
30
|
+
"@rsdoctor/graph": "1.5.16",
|
|
31
|
+
"@rsdoctor/types": "1.5.16",
|
|
32
|
+
"@rsdoctor/sdk": "1.5.16",
|
|
33
|
+
"@rsdoctor/utils": "1.5.16"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^24.12.3",
|