@rsdoctor/webpack-plugin 1.4.0 → 1.4.1-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.
- package/dist/index.cjs +16 -15
- package/dist/index.js +16 -16
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const __rslib_import_meta_url__ = "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"./package.json" (module) {
|
|
5
|
-
module.exports = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.4.0","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":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","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":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2","webpack":"^5.97.1"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
5
|
+
module.exports = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.4.1-beta.0","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":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","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":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2","webpack":"^5.97.1"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
6
6
|
}
|
|
7
7
|
}, __webpack_module_cache__ = {};
|
|
8
8
|
function __webpack_require__(moduleId) {
|
|
@@ -44,6 +44,7 @@ for(var __rspack_i in (()=>{
|
|
|
44
44
|
stage: 999
|
|
45
45
|
}, pkg = __webpack_require__("./package.json"), external_path_namespaceObject = require("path");
|
|
46
46
|
var external_path_default = __webpack_require__.n(external_path_namespaceObject);
|
|
47
|
+
let hasGreeted = !1;
|
|
47
48
|
class RsdoctorWebpackPlugin {
|
|
48
49
|
name = pluginTapName;
|
|
49
50
|
options;
|
|
@@ -71,8 +72,8 @@ for(var __rspack_i in (()=>{
|
|
|
71
72
|
}), this.modulesGraph = new graph_namespaceObject.ModuleGraph(), this.chunkGraph = new graph_namespaceObject.ChunkGraph(), this.isRsdoctorPlugin = !0;
|
|
72
73
|
}
|
|
73
74
|
apply(compiler) {
|
|
74
|
-
logger_namespaceObject.logger.greet(`
|
|
75
|
-
\nRsdoctor v${pkg.version}\n`), this._bootstrapTask || (this._bootstrapTask = this.sdk.bootstrap()), (0, plugins_namespaceObject.setSDK)(this.sdk), new plugins_namespaceObject.InternalSummaryPlugin(this).apply(compiler), this.options.features.loader && (new build_utils_namespaceObject.Loader.ProbeLoaderPlugin().apply(compiler), this.sdk.addClientRoutes([
|
|
75
|
+
hasGreeted || compiler.isChild() || (hasGreeted = !0, logger_namespaceObject.logger.greet(`
|
|
76
|
+
\nRsdoctor v${pkg.version}\n`)), this._bootstrapTask || (this._bootstrapTask = this.sdk.bootstrap()), (0, plugins_namespaceObject.setSDK)(this.sdk), new plugins_namespaceObject.InternalSummaryPlugin(this).apply(compiler), this.options.features.loader && (new build_utils_namespaceObject.Loader.ProbeLoaderPlugin().apply(compiler), this.sdk.addClientRoutes([
|
|
76
77
|
types_namespaceObject.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders
|
|
77
78
|
]), common_namespaceObject.Loader.isVue(compiler) || new plugins_namespaceObject.InternalLoaderPlugin(this).apply(compiler)), this.options.features.resolver && new plugins_namespaceObject.InternalResolverPlugin(this).apply(compiler), this.options.features.plugins && new plugins_namespaceObject.InternalPluginsPlugin(this).apply(compiler), this.options.features.bundle && (new plugins_namespaceObject.InternalBundlePlugin(this).apply(compiler), new plugins_namespaceObject.InternalBundleTagPlugin(this).apply(compiler)), new plugins_namespaceObject.InternalErrorReporterPlugin(this).apply(compiler), new plugins_namespaceObject.InternalRulesPlugin(this).apply(compiler), new plugins_namespaceObject.InternalProgressPlugin(this).apply(compiler), compiler.hooks.afterPlugins.tap(pluginTapPostOptions, this.afterPlugins), compiler.hooks.watchRun.tapPromise(pluginTapPostOptions, this.beforeRun), compiler.hooks.beforeRun.tapPromise(pluginTapPostOptions, this.beforeRun), compiler.hooks.done.tapPromise({
|
|
78
79
|
...pluginTapPostOptions,
|
|
@@ -112,20 +113,20 @@ for(var __rspack_i in (()=>{
|
|
|
112
113
|
if (globalController) return globalController;
|
|
113
114
|
let controller = new sdk_namespaceObject.RsdoctorSDKController();
|
|
114
115
|
return globalController = controller, controller;
|
|
115
|
-
})(), normallizedOptions = (0, plugins_namespaceObject.normalizeUserConfig)(options)
|
|
116
|
+
})(), normallizedOptions = (0, plugins_namespaceObject.normalizeUserConfig)(options), instance = controller.createSlave({
|
|
117
|
+
name: options.name || 'Builder',
|
|
118
|
+
stage: options.stage,
|
|
119
|
+
extraConfig: {
|
|
120
|
+
innerClientPath: normallizedOptions.innerClientPath,
|
|
121
|
+
printLog: normallizedOptions.printLog,
|
|
122
|
+
mode: normallizedOptions.output.mode ? normallizedOptions.output.mode : void 0,
|
|
123
|
+
brief: normallizedOptions.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] && normallizedOptions.output.options || void 0
|
|
124
|
+
},
|
|
125
|
+
type: normallizedOptions.output.reportCodeType
|
|
126
|
+
});
|
|
116
127
|
super({
|
|
117
128
|
...options,
|
|
118
|
-
sdkInstance:
|
|
119
|
-
name: options.name || 'Builder',
|
|
120
|
-
stage: options.stage,
|
|
121
|
-
extraConfig: {
|
|
122
|
-
innerClientPath: normallizedOptions.innerClientPath,
|
|
123
|
-
printLog: normallizedOptions.printLog,
|
|
124
|
-
mode: normallizedOptions.output.mode ? normallizedOptions.output.mode : void 0,
|
|
125
|
-
brief: normallizedOptions.output.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief] && normallizedOptions.output.options || void 0
|
|
126
|
-
},
|
|
127
|
-
type: normallizedOptions.output.reportCodeType
|
|
128
|
-
})
|
|
129
|
+
sdkInstance: instance
|
|
129
130
|
}), this.controller = controller;
|
|
130
131
|
}
|
|
131
132
|
apply(compiler) {
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import path from "path";
|
|
|
11
11
|
import { LinterType, defineRule } from "@rsdoctor/core/rules";
|
|
12
12
|
var __webpack_modules__ = {
|
|
13
13
|
"./package.json" (module) {
|
|
14
|
-
module.exports = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.4.0","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":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","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":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2","webpack":"^5.97.1"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
14
|
+
module.exports = JSON.parse('{"name":"@rsdoctor/webpack-plugin","version":"1.4.1-beta.0","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":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","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":"^22.8.1","@types/tapable":"2.2.7","tslib":"2.8.1","typescript":"^5.9.2","webpack":"^5.97.1"},"peerDependencies":{"webpack":"5.x"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
15
15
|
}
|
|
16
16
|
}, __webpack_module_cache__ = {};
|
|
17
17
|
let pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
@@ -24,7 +24,7 @@ let pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
|
24
24
|
exports: {}
|
|
25
25
|
};
|
|
26
26
|
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
27
|
-
}("./package.json");
|
|
27
|
+
}("./package.json"), hasGreeted = !1;
|
|
28
28
|
class RsdoctorWebpackPlugin {
|
|
29
29
|
name = pluginTapName;
|
|
30
30
|
options;
|
|
@@ -52,8 +52,8 @@ class RsdoctorWebpackPlugin {
|
|
|
52
52
|
}), this.modulesGraph = new ModuleGraph(), this.chunkGraph = new ChunkGraph(), this.isRsdoctorPlugin = !0;
|
|
53
53
|
}
|
|
54
54
|
apply(compiler) {
|
|
55
|
-
logger.greet(`
|
|
56
|
-
\nRsdoctor v${pkg.version}\n`), this._bootstrapTask || (this._bootstrapTask = this.sdk.bootstrap()), setSDK(this.sdk), new InternalSummaryPlugin(this).apply(compiler), this.options.features.loader && (new Loader.ProbeLoaderPlugin().apply(compiler), this.sdk.addClientRoutes([
|
|
55
|
+
hasGreeted || compiler.isChild() || (hasGreeted = !0, logger.greet(`
|
|
56
|
+
\nRsdoctor v${pkg.version}\n`)), this._bootstrapTask || (this._bootstrapTask = this.sdk.bootstrap()), setSDK(this.sdk), new InternalSummaryPlugin(this).apply(compiler), this.options.features.loader && (new Loader.ProbeLoaderPlugin().apply(compiler), this.sdk.addClientRoutes([
|
|
57
57
|
Manifest.RsdoctorManifestClientRoutes.WebpackLoaders
|
|
58
58
|
]), common_Loader.isVue(compiler) || new InternalLoaderPlugin(this).apply(compiler)), this.options.features.resolver && new InternalResolverPlugin(this).apply(compiler), this.options.features.plugins && new InternalPluginsPlugin(this).apply(compiler), this.options.features.bundle && (new InternalBundlePlugin(this).apply(compiler), new InternalBundleTagPlugin(this).apply(compiler)), new InternalErrorReporterPlugin(this).apply(compiler), new InternalRulesPlugin(this).apply(compiler), new InternalProgressPlugin(this).apply(compiler), compiler.hooks.afterPlugins.tap(pluginTapPostOptions, this.afterPlugins), compiler.hooks.watchRun.tapPromise(pluginTapPostOptions, this.beforeRun), compiler.hooks.beforeRun.tapPromise(pluginTapPostOptions, this.beforeRun), compiler.hooks.done.tapPromise({
|
|
59
59
|
...pluginTapPostOptions,
|
|
@@ -93,20 +93,20 @@ class RsdoctorWebpackMultiplePlugin extends RsdoctorWebpackPlugin {
|
|
|
93
93
|
if (globalController) return globalController;
|
|
94
94
|
let controller = new RsdoctorSDKController();
|
|
95
95
|
return globalController = controller, controller;
|
|
96
|
-
})(), normallizedOptions = normalizeUserConfig(options)
|
|
96
|
+
})(), normallizedOptions = normalizeUserConfig(options), instance = controller.createSlave({
|
|
97
|
+
name: options.name || 'Builder',
|
|
98
|
+
stage: options.stage,
|
|
99
|
+
extraConfig: {
|
|
100
|
+
innerClientPath: normallizedOptions.innerClientPath,
|
|
101
|
+
printLog: normallizedOptions.printLog,
|
|
102
|
+
mode: normallizedOptions.output.mode ? normallizedOptions.output.mode : void 0,
|
|
103
|
+
brief: normallizedOptions.output.mode === SDK.IMode[SDK.IMode.brief] && normallizedOptions.output.options || void 0
|
|
104
|
+
},
|
|
105
|
+
type: normallizedOptions.output.reportCodeType
|
|
106
|
+
});
|
|
97
107
|
super({
|
|
98
108
|
...options,
|
|
99
|
-
sdkInstance:
|
|
100
|
-
name: options.name || 'Builder',
|
|
101
|
-
stage: options.stage,
|
|
102
|
-
extraConfig: {
|
|
103
|
-
innerClientPath: normallizedOptions.innerClientPath,
|
|
104
|
-
printLog: normallizedOptions.printLog,
|
|
105
|
-
mode: normallizedOptions.output.mode ? normallizedOptions.output.mode : void 0,
|
|
106
|
-
brief: normallizedOptions.output.mode === SDK.IMode[SDK.IMode.brief] && normallizedOptions.output.options || void 0
|
|
107
|
-
},
|
|
108
|
-
type: normallizedOptions.output.reportCodeType
|
|
109
|
-
})
|
|
109
|
+
sdkInstance: instance
|
|
110
110
|
}), this.controller = controller;
|
|
111
111
|
}
|
|
112
112
|
apply(compiler) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "1.4.0",
|
|
3
|
+
"version": "1.4.1-beta.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@rsdoctor/core": "1.4.0",
|
|
25
|
-
"@rsdoctor/
|
|
26
|
-
"@rsdoctor/
|
|
27
|
-
"@rsdoctor/
|
|
28
|
-
"@rsdoctor/
|
|
24
|
+
"@rsdoctor/core": "1.4.1-beta.0",
|
|
25
|
+
"@rsdoctor/graph": "1.4.1-beta.0",
|
|
26
|
+
"@rsdoctor/sdk": "1.4.1-beta.0",
|
|
27
|
+
"@rsdoctor/types": "1.4.1-beta.0",
|
|
28
|
+
"@rsdoctor/utils": "1.4.1-beta.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.8.1",
|