@rsdoctor/webpack-plugin 1.3.1-beta.0 → 1.3.2
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 +6 -5
- package/dist/index.d.ts +2 -2
- package/dist/multiple.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let globalController
|
|
2
|
+
let globalController;
|
|
3
|
+
const __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
3
4
|
var __webpack_require__ = {};
|
|
4
5
|
__webpack_require__.n = (module)=>{
|
|
5
6
|
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
@@ -25,7 +26,7 @@ __webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_expo
|
|
|
25
26
|
RsdoctorWebpackPlugin: ()=>RsdoctorWebpackPlugin,
|
|
26
27
|
defineRule: ()=>rules_namespaceObject.defineRule
|
|
27
28
|
});
|
|
28
|
-
|
|
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"), pluginTapName = 'RsdoctorWebpackPlugin', pluginTapPostOptions = {
|
|
29
30
|
name: pluginTapName,
|
|
30
31
|
stage: 999
|
|
31
32
|
}, pluginTapPreOptions = null, internalPluginTapPreOptions = (namespace)=>({
|
|
@@ -149,7 +150,7 @@ class RsdoctorWebpackPlugin {
|
|
|
149
150
|
chunkGraph;
|
|
150
151
|
constructor(options){
|
|
151
152
|
this.options = (0, plugins_namespaceObject.normalizeUserConfig)(options);
|
|
152
|
-
|
|
153
|
+
const { port, output, innerClientPath, printLog, sdkInstance } = this.options;
|
|
153
154
|
this.sdk = sdkInstance ?? new sdk_namespaceObject.RsdoctorSDK({
|
|
154
155
|
port: port,
|
|
155
156
|
name: pluginTapName,
|
|
@@ -200,7 +201,7 @@ class RsdoctorWebpackPlugin {
|
|
|
200
201
|
class RsdoctorWebpackMultiplePlugin extends RsdoctorWebpackPlugin {
|
|
201
202
|
controller;
|
|
202
203
|
constructor(options = {}){
|
|
203
|
-
|
|
204
|
+
const controller = (()=>{
|
|
204
205
|
if (globalController) return globalController;
|
|
205
206
|
let controller = new sdk_namespaceObject.RsdoctorSDKController();
|
|
206
207
|
return globalController = controller, controller;
|
|
@@ -224,7 +225,7 @@ class RsdoctorWebpackMultiplePlugin extends RsdoctorWebpackPlugin {
|
|
|
224
225
|
'dependencies' in compiler.options && (this.sdk.dependencies = compiler.options.dependencies), super.apply(compiler);
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
|
-
|
|
228
|
+
const rules_namespaceObject = require("@rsdoctor/core/rules");
|
|
228
229
|
for(var __webpack_i__ in exports.LinterType = __webpack_exports__.LinterType, exports.RsdoctorWebpackMultiplePlugin = __webpack_exports__.RsdoctorWebpackMultiplePlugin, exports.RsdoctorWebpackPlugin = __webpack_exports__.RsdoctorWebpackPlugin, exports.defineRule = __webpack_exports__.defineRule, __webpack_exports__)-1 === [
|
|
229
230
|
"LinterType",
|
|
230
231
|
"RsdoctorWebpackMultiplePlugin",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './plugin';
|
|
2
|
-
export * from './multiple';
|
|
1
|
+
export * from './plugin.js';
|
|
2
|
+
export * from './multiple.js';
|
|
3
3
|
export { defineRule, LinterType } from '@rsdoctor/core/rules';
|
package/dist/multiple.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Linter } from '@rsdoctor/types';
|
|
2
2
|
import type { RsdoctorMultiplePluginOptions } from '@rsdoctor/core/types';
|
|
3
|
-
import { RsdoctorWebpackPlugin } from './plugin';
|
|
3
|
+
import { RsdoctorWebpackPlugin } from './plugin.js';
|
|
4
4
|
import type { Compiler } from 'webpack';
|
|
5
5
|
export declare class RsdoctorWebpackMultiplePlugin<Rules extends Linter.ExtendRuleData[]> extends RsdoctorWebpackPlugin<Rules> {
|
|
6
6
|
private controller;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"lodash": "^4.17.21",
|
|
25
|
-
"@rsdoctor/
|
|
26
|
-
"@rsdoctor/
|
|
27
|
-
"@rsdoctor/
|
|
28
|
-
"@rsdoctor/
|
|
29
|
-
"@rsdoctor/utils": "1.3.
|
|
25
|
+
"@rsdoctor/core": "1.3.2",
|
|
26
|
+
"@rsdoctor/sdk": "1.3.2",
|
|
27
|
+
"@rsdoctor/types": "1.3.2",
|
|
28
|
+
"@rsdoctor/graph": "1.3.2",
|
|
29
|
+
"@rsdoctor/utils": "1.3.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/lodash": "^4.17.20",
|