@rsdoctor/rspack-plugin 1.1.10 → 1.2.0-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/constants.js +81 -52
- package/dist/index.js +66 -21
- package/dist/multiple.js +74 -60
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +195 -213
- package/dist/types/index.js +17 -15
- package/package.json +12 -11
package/dist/constants.js
CHANGED
|
@@ -1,55 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"../package.json": function(module) {
|
|
4
|
+
module.exports = require("../package.json");
|
|
5
|
+
}
|
|
9
6
|
};
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
7
|
+
var __webpack_module_cache__ = {};
|
|
8
|
+
function __webpack_require__(moduleId) {
|
|
9
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
+
exports: {}
|
|
13
|
+
};
|
|
14
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
15
|
+
return module.exports;
|
|
16
|
+
}
|
|
17
|
+
(()=>{
|
|
18
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
19
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: definition[key]
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
25
|
+
(()=>{
|
|
26
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
+
})();
|
|
28
|
+
(()=>{
|
|
29
|
+
__webpack_require__.r = (exports1)=>{
|
|
30
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
31
|
+
value: 'Module'
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
34
|
+
value: true
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __webpack_exports__ = {};
|
|
39
|
+
(()=>{
|
|
40
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
+
internalPluginTapPostOptions: ()=>internalPluginTapPostOptions,
|
|
43
|
+
internalPluginTapPreOptions: ()=>internalPluginTapPreOptions,
|
|
44
|
+
pkg: ()=>pkg,
|
|
45
|
+
pluginTapName: ()=>pluginTapName,
|
|
46
|
+
pluginTapPostOptions: ()=>pluginTapPostOptions,
|
|
47
|
+
pluginTapPreOptions: ()=>pluginTapPreOptions
|
|
48
|
+
});
|
|
49
|
+
const pluginTapName = 'RsdoctorRspackPlugin';
|
|
50
|
+
const pluginTapPostOptions = {
|
|
51
|
+
name: pluginTapName,
|
|
52
|
+
stage: 999
|
|
53
|
+
};
|
|
54
|
+
const pluginTapPreOptions = {
|
|
55
|
+
name: pluginTapName,
|
|
56
|
+
stage: -999
|
|
57
|
+
};
|
|
58
|
+
const internalPluginTapPreOptions = (namespace)=>({
|
|
59
|
+
name: `${pluginTapName}:${namespace}`,
|
|
60
|
+
stage: -998
|
|
61
|
+
});
|
|
62
|
+
const internalPluginTapPostOptions = (namespace)=>({
|
|
63
|
+
name: `${pluginTapName}:${namespace}`,
|
|
64
|
+
stage: 1000
|
|
65
|
+
});
|
|
66
|
+
const pkg = __webpack_require__("../package.json");
|
|
67
|
+
})();
|
|
68
|
+
exports.internalPluginTapPostOptions = __webpack_exports__.internalPluginTapPostOptions;
|
|
69
|
+
exports.internalPluginTapPreOptions = __webpack_exports__.internalPluginTapPreOptions;
|
|
70
|
+
exports.pkg = __webpack_exports__.pkg;
|
|
71
|
+
exports.pluginTapName = __webpack_exports__.pluginTapName;
|
|
72
|
+
exports.pluginTapPostOptions = __webpack_exports__.pluginTapPostOptions;
|
|
73
|
+
exports.pluginTapPreOptions = __webpack_exports__.pluginTapPreOptions;
|
|
74
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
75
|
+
"internalPluginTapPostOptions",
|
|
76
|
+
"internalPluginTapPreOptions",
|
|
77
|
+
"pkg",
|
|
78
|
+
"pluginTapName",
|
|
79
|
+
"pluginTapPostOptions",
|
|
80
|
+
"pluginTapPreOptions"
|
|
81
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
82
|
+
Object.defineProperty(exports, '__esModule', {
|
|
83
|
+
value: true
|
|
55
84
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"./multiple": function(module) {
|
|
4
|
+
module.exports = require("./multiple.js");
|
|
5
|
+
},
|
|
6
|
+
"./plugin": function(module) {
|
|
7
|
+
module.exports = require("./plugin.js");
|
|
8
|
+
}
|
|
13
9
|
};
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
var __webpack_module_cache__ = {};
|
|
11
|
+
function __webpack_require__(moduleId) {
|
|
12
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
13
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
14
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
15
|
+
exports: {}
|
|
16
|
+
};
|
|
17
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
18
|
+
return module.exports;
|
|
19
|
+
}
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.n = (module)=>{
|
|
22
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
23
|
+
__webpack_require__.d(getter, {
|
|
24
|
+
a: getter
|
|
25
|
+
});
|
|
26
|
+
return getter;
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
(()=>{
|
|
30
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
31
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: definition[key]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
})();
|
|
37
|
+
(()=>{
|
|
38
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
39
|
+
})();
|
|
40
|
+
(()=>{
|
|
41
|
+
__webpack_require__.r = (exports1)=>{
|
|
42
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
43
|
+
value: 'Module'
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
46
|
+
value: true
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
50
|
+
var __webpack_exports__ = {};
|
|
51
|
+
(()=>{
|
|
52
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53
|
+
var _plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./plugin");
|
|
54
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
55
|
+
for(var __WEBPACK_IMPORT_KEY__ in _plugin__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
56
|
+
return _plugin__WEBPACK_IMPORTED_MODULE_0__[key];
|
|
57
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
58
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
59
|
+
var _multiple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./multiple");
|
|
60
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
61
|
+
for(var __WEBPACK_IMPORT_KEY__ in _multiple__WEBPACK_IMPORTED_MODULE_1__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
62
|
+
return _multiple__WEBPACK_IMPORTED_MODULE_1__[key];
|
|
63
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
64
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
65
|
+
})();
|
|
66
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
67
|
+
Object.defineProperty(exports, '__esModule', {
|
|
68
|
+
value: true
|
|
24
69
|
});
|
package/dist/multiple.js
CHANGED
|
@@ -1,66 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
RsdoctorRspackMultiplePlugin: ()=>RsdoctorRspackMultiplePlugin
|
|
22
28
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return globalController;
|
|
33
|
-
}
|
|
34
|
-
const controller2 = new import_sdk.RsdoctorSDKController();
|
|
35
|
-
globalController = controller2;
|
|
36
|
-
return controller2;
|
|
37
|
-
})();
|
|
38
|
-
const normallizedOptions = (0, import_plugins.normalizeUserConfig)(options);
|
|
39
|
-
const instance = controller.createSlave({
|
|
40
|
-
name: options.name || "Builder",
|
|
41
|
-
stage: options.stage,
|
|
42
|
-
extraConfig: {
|
|
43
|
-
innerClientPath: normallizedOptions.innerClientPath,
|
|
44
|
-
printLog: normallizedOptions.printLog,
|
|
45
|
-
mode: normallizedOptions.mode ? normallizedOptions.mode : void 0,
|
|
46
|
-
brief: normallizedOptions.brief
|
|
47
|
-
},
|
|
48
|
-
type: normallizedOptions.output.reportCodeType
|
|
49
|
-
});
|
|
50
|
-
super({
|
|
51
|
-
...options,
|
|
52
|
-
sdkInstance: instance
|
|
29
|
+
const sdk_namespaceObject = require("@rsdoctor/sdk");
|
|
30
|
+
const external_plugin_js_namespaceObject = require("./plugin.js");
|
|
31
|
+
const plugins_namespaceObject = require("@rsdoctor/core/plugins");
|
|
32
|
+
function _define_property(obj, key, value) {
|
|
33
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
34
|
+
value: value,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true
|
|
53
38
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
39
|
+
else obj[key] = value;
|
|
40
|
+
return obj;
|
|
41
|
+
}
|
|
42
|
+
let globalController;
|
|
43
|
+
class RsdoctorRspackMultiplePlugin extends external_plugin_js_namespaceObject.RsdoctorRspackPlugin {
|
|
44
|
+
apply(compiler) {
|
|
45
|
+
if ('dependencies' in compiler.options) this.sdk.dependencies = compiler.options.dependencies;
|
|
46
|
+
super.apply(compiler);
|
|
47
|
+
}
|
|
48
|
+
constructor(options = {}){
|
|
49
|
+
const controller = (()=>{
|
|
50
|
+
if (globalController) return globalController;
|
|
51
|
+
const controller = new sdk_namespaceObject.RsdoctorSDKController();
|
|
52
|
+
globalController = controller;
|
|
53
|
+
return controller;
|
|
54
|
+
})();
|
|
55
|
+
const normallizedOptions = (0, plugins_namespaceObject.normalizeUserConfig)(options);
|
|
56
|
+
const instance = controller.createSlave({
|
|
57
|
+
name: options.name || 'Builder',
|
|
58
|
+
stage: options.stage,
|
|
59
|
+
extraConfig: {
|
|
60
|
+
innerClientPath: normallizedOptions.innerClientPath,
|
|
61
|
+
printLog: normallizedOptions.printLog,
|
|
62
|
+
mode: normallizedOptions.mode ? normallizedOptions.mode : void 0,
|
|
63
|
+
brief: normallizedOptions.brief
|
|
64
|
+
},
|
|
65
|
+
type: normallizedOptions.output.reportCodeType
|
|
66
|
+
});
|
|
67
|
+
super({
|
|
68
|
+
...options,
|
|
69
|
+
sdkInstance: instance
|
|
70
|
+
}), _define_property(this, "controller", void 0);
|
|
71
|
+
this.controller = controller;
|
|
59
72
|
}
|
|
60
|
-
super.apply(compiler);
|
|
61
|
-
}
|
|
62
73
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
exports.RsdoctorRspackMultiplePlugin = __webpack_exports__.RsdoctorRspackMultiplePlugin;
|
|
75
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
76
|
+
"RsdoctorRspackMultiplePlugin"
|
|
77
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
78
|
+
Object.defineProperty(exports, '__esModule', {
|
|
79
|
+
value: true
|
|
66
80
|
});
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EAClB,WAAW,EACZ,MAAM,eAAe,CAAC;AAcvB,OAAO,KAAK,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,qCAAqC,EACtC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAEL,MAAM,EAGN,MAAM,EACN,GAAG,EACJ,MAAM,iBAAiB,CAAC;AASzB,qBAAa,oBAAoB,CAAC,KAAK,SAAS,MAAM,CAAC,cAAc,EAAE,CACrE,YAAW,4BAA4B,CAAC,KAAK,CAAC;IAE9C,SAAgB,IAAI,0BAAiB;IAErC,SAAgB,GAAG,EAAE,WAAW,GAAG,kBAAkB,CAAC;IAEtD,SAAgB,gBAAgB,EAAE,OAAO,CAAC;IAEnC,cAAc,EAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC,SAAS,CAAC,eAAe,UAAS;IAE3B,YAAY,EAAE,GAAG,CAAC,mBAAmB,CAAC;IAEtC,OAAO,EAAE,qCAAqC,CAAC,KAAK,CAAC,CAAC;IAEtD,eAAe,EAAE,OAAO,CAAC;gBAEpB,OAAO,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC;IAiCxD,KAAK,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IAkGjC;;;;;OAKG;IACI,+BAA+B,CACpC,QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC;IAKtC,YAAY,aAAc,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAG,IAAI,CAOvE;IAEK,IAAI,aACC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAC1C,OAAO,CAAC,IAAI,CAAC,CAyDd;IAEK,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC;CAoCnE"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,223 +1,205 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var plugin_exports = {};
|
|
30
|
-
__export(plugin_exports, {
|
|
31
|
-
RsdoctorRspackPlugin: () => RsdoctorRspackPlugin
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(plugin_exports);
|
|
34
|
-
var import_sdk = require("@rsdoctor/sdk");
|
|
35
|
-
var import_plugins = require("@rsdoctor/core/plugins");
|
|
36
|
-
var import_build_utils = require("@rsdoctor/core/build-utils");
|
|
37
|
-
var import_types = require("@rsdoctor/types");
|
|
38
|
-
var import_path = __toESM(require("path"));
|
|
39
|
-
var import_constants = require("./constants");
|
|
40
|
-
var import_lodash = require("lodash");
|
|
41
|
-
var import_common = require("@rsdoctor/utils/common");
|
|
42
|
-
var import_logger = require("@rsdoctor/utils/logger");
|
|
43
|
-
var import_graph = require("@rsdoctor/graph");
|
|
44
|
-
class RsdoctorRspackPlugin {
|
|
45
|
-
constructor(options) {
|
|
46
|
-
this.name = import_constants.pluginTapName;
|
|
47
|
-
this.browserIsOpened = false;
|
|
48
|
-
this.afterPlugins = (compiler) => {
|
|
49
|
-
this.getRspackConfig(compiler);
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
50
10
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.sdk.addClientRoutes([
|
|
59
|
-
import_types.Manifest.RsdoctorManifestClientRoutes.Overall
|
|
60
|
-
]);
|
|
61
|
-
if (this.outsideInstance && "parent" in this.sdk) {
|
|
62
|
-
this.sdk.parent.master.setOutputDir(
|
|
63
|
-
import_path.default.resolve(
|
|
64
|
-
this.options.output.reportDir || compiler.outputPath,
|
|
65
|
-
`./${import_types.Constants.RsdoctorOutputFolder}`
|
|
66
|
-
)
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
this.sdk.setOutputDir(
|
|
70
|
-
import_path.default.resolve(
|
|
71
|
-
this.options.output.reportDir || compiler.outputPath,
|
|
72
|
-
`./${import_types.Constants.RsdoctorOutputFolder}`
|
|
73
|
-
)
|
|
74
|
-
);
|
|
75
|
-
await this.sdk.writeStore();
|
|
76
|
-
if (!this.options.disableClientServer) {
|
|
77
|
-
if (this.options.mode === import_types.SDK.IMode[import_types.SDK.IMode.brief]) {
|
|
78
|
-
const outputFilePath = import_path.default.resolve(
|
|
79
|
-
this.sdk.outputDir,
|
|
80
|
-
this.options.brief.reportHtmlName || "rsdoctor-report.html"
|
|
81
|
-
);
|
|
82
|
-
console.log(
|
|
83
|
-
`${import_logger.chalk.green("[RSDOCTOR] generated brief report")}: ${outputFilePath}`
|
|
84
|
-
);
|
|
85
|
-
(0, import_sdk.openBrowser)(`file:///${outputFilePath}`);
|
|
86
|
-
} else {
|
|
87
|
-
await this.sdk.server.openClientPage("homepage");
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (this.options.disableClientServer) {
|
|
91
|
-
await this.sdk.dispose();
|
|
92
|
-
}
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
93
18
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
RsdoctorRspackPlugin: ()=>RsdoctorRspackPlugin
|
|
37
|
+
});
|
|
38
|
+
const sdk_namespaceObject = require("@rsdoctor/sdk");
|
|
39
|
+
const plugins_namespaceObject = require("@rsdoctor/core/plugins");
|
|
40
|
+
const build_utils_namespaceObject = require("@rsdoctor/core/build-utils");
|
|
41
|
+
const types_namespaceObject = require("@rsdoctor/types");
|
|
42
|
+
const external_path_namespaceObject = require("path");
|
|
43
|
+
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
|
44
|
+
const external_constants_js_namespaceObject = require("./constants.js");
|
|
45
|
+
const external_lodash_namespaceObject = require("lodash");
|
|
46
|
+
const common_namespaceObject = require("@rsdoctor/utils/common");
|
|
47
|
+
const logger_namespaceObject = require("@rsdoctor/utils/logger");
|
|
48
|
+
const graph_namespaceObject = require("@rsdoctor/graph");
|
|
49
|
+
function _define_property(obj, key, value) {
|
|
50
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
51
|
+
value: value,
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true
|
|
115
55
|
});
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
56
|
+
else obj[key] = value;
|
|
57
|
+
return obj;
|
|
58
|
+
}
|
|
59
|
+
class RsdoctorRspackPlugin {
|
|
60
|
+
apply(compiler) {
|
|
61
|
+
(0, logger_namespaceObject.time)('RsdoctorRspackPlugin.apply');
|
|
62
|
+
try {
|
|
63
|
+
var _compiler_webpack_experiments;
|
|
64
|
+
if (!this._bootstrapTask) this._bootstrapTask = this.sdk.bootstrap();
|
|
65
|
+
if (compiler.options.name) this.sdk.setName(compiler.options.name);
|
|
66
|
+
(0, plugins_namespaceObject.setSDK)(this.sdk);
|
|
67
|
+
compiler.hooks.afterPlugins.tap(external_constants_js_namespaceObject.pluginTapPostOptions, this.afterPlugins.bind(this, compiler));
|
|
68
|
+
compiler.hooks.done.tapPromise({
|
|
69
|
+
...external_constants_js_namespaceObject.pluginTapPostOptions,
|
|
70
|
+
stage: external_constants_js_namespaceObject.pluginTapPostOptions.stage + 100
|
|
71
|
+
}, this.done.bind(this, compiler));
|
|
72
|
+
new plugins_namespaceObject.InternalSummaryPlugin(this).apply(compiler);
|
|
73
|
+
if (this.options.features.loader) {
|
|
74
|
+
new build_utils_namespaceObject.Loader.ProbeLoaderPlugin().apply(compiler);
|
|
75
|
+
this.sdk.addClientRoutes([
|
|
76
|
+
types_namespaceObject.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders
|
|
77
|
+
]);
|
|
78
|
+
if (!common_namespaceObject.Loader.isVue(compiler)) new plugins_namespaceObject.InternalLoaderPlugin(this).apply(compiler);
|
|
79
|
+
}
|
|
80
|
+
if (this.options.features.plugins) new plugins_namespaceObject.InternalPluginsPlugin(this).apply(compiler);
|
|
81
|
+
if (this.options.features.bundle) {
|
|
82
|
+
new plugins_namespaceObject.InternalBundlePlugin(this).apply(compiler);
|
|
83
|
+
new plugins_namespaceObject.InternalBundleTagPlugin(this).apply(compiler);
|
|
84
|
+
}
|
|
85
|
+
if (this.options.features.resolver) logger_namespaceObject.logger.info(logger_namespaceObject.chalk.yellow('Rspack currently does not support Resolver capabilities.'));
|
|
86
|
+
new plugins_namespaceObject.InternalRulesPlugin(this).apply(compiler);
|
|
87
|
+
new plugins_namespaceObject.InternalErrorReporterPlugin(this).apply(compiler);
|
|
88
|
+
const RsdoctorRspackNativePlugin = null == (_compiler_webpack_experiments = compiler.webpack.experiments) ? void 0 : _compiler_webpack_experiments.RsdoctorPlugin;
|
|
89
|
+
if (RsdoctorRspackNativePlugin) {
|
|
90
|
+
var _this_options_experiments, _enableNativePlugin_sourceMap;
|
|
91
|
+
logger_namespaceObject.logger.debug('[RspackNativePlugin] Enabled');
|
|
92
|
+
const enableNativePlugin = null == (_this_options_experiments = this.options.experiments) ? void 0 : _this_options_experiments.enableNativePlugin;
|
|
93
|
+
new RsdoctorRspackNativePlugin({
|
|
94
|
+
moduleGraphFeatures: (null == enableNativePlugin ? void 0 : enableNativePlugin.moduleGraph) || false,
|
|
95
|
+
chunkGraphFeatures: (null == enableNativePlugin ? void 0 : enableNativePlugin.chunkGraph) || false,
|
|
96
|
+
sourceMapFeatures: {
|
|
97
|
+
cheap: (null == enableNativePlugin ? void 0 : null == (_enableNativePlugin_sourceMap = enableNativePlugin.sourceMap) ? void 0 : _enableNativePlugin_sourceMap.cheap) || false,
|
|
98
|
+
module: true
|
|
99
|
+
}
|
|
100
|
+
}).apply(compiler);
|
|
101
|
+
}
|
|
102
|
+
} finally{
|
|
103
|
+
(0, logger_namespaceObject.timeEnd)('RsdoctorRspackPlugin.apply');
|
|
104
|
+
}
|
|
157
105
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
compiler
|
|
161
|
-
);
|
|
162
|
-
new import_plugins.InternalBundleTagPlugin(
|
|
163
|
-
this
|
|
164
|
-
).apply(compiler);
|
|
106
|
+
ensureModulesChunksGraphApplied(compiler) {
|
|
107
|
+
(0, plugins_namespaceObject.ensureModulesChunksGraphFn)(compiler, this);
|
|
165
108
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
109
|
+
getRspackConfig(compiler) {
|
|
110
|
+
(0, logger_namespaceObject.time)('RsdoctorRspackPlugin.getRspackConfig');
|
|
111
|
+
try {
|
|
112
|
+
var _compiler_webpack, _compiler_webpack1;
|
|
113
|
+
if (compiler.isChild()) return;
|
|
114
|
+
const { plugins, infrastructureLogging, ...rest } = compiler.options;
|
|
115
|
+
const _rest = (0, external_lodash_namespaceObject.cloneDeep)(rest);
|
|
116
|
+
(0, plugins_namespaceObject.makeRulesSerializable)(_rest.module.defaultRules);
|
|
117
|
+
(0, plugins_namespaceObject.makeRulesSerializable)(_rest.module.rules);
|
|
118
|
+
const configuration = {
|
|
119
|
+
..._rest,
|
|
120
|
+
plugins: plugins.map((e)=>null == e ? void 0 : e.constructor.name)
|
|
121
|
+
};
|
|
122
|
+
const rspackVersion = null == (_compiler_webpack = compiler.webpack) ? void 0 : _compiler_webpack.rspackVersion;
|
|
123
|
+
const webpackVersion = null == (_compiler_webpack1 = compiler.webpack) ? void 0 : _compiler_webpack1.version;
|
|
124
|
+
this.sdk.reportConfiguration({
|
|
125
|
+
name: rspackVersion ? 'rspack' : 'webpack',
|
|
126
|
+
version: rspackVersion || webpackVersion || 'unknown',
|
|
127
|
+
config: configuration,
|
|
128
|
+
root: (0, sdk_namespaceObject.findRoot)() || ''
|
|
129
|
+
});
|
|
130
|
+
this.sdk.setOutputDir(external_path_default().resolve(this.options.output.reportDir || compiler.outputPath, `./${types_namespaceObject.Constants.RsdoctorOutputFolder}`));
|
|
131
|
+
} finally{
|
|
132
|
+
(0, logger_namespaceObject.timeEnd)('RsdoctorRspackPlugin.getRspackConfig');
|
|
133
|
+
}
|
|
172
134
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
135
|
+
constructor(options){
|
|
136
|
+
var _options_supports, _options_supports1;
|
|
137
|
+
_define_property(this, "name", external_constants_js_namespaceObject.pluginTapName);
|
|
138
|
+
_define_property(this, "sdk", void 0);
|
|
139
|
+
_define_property(this, "isRsdoctorPlugin", void 0);
|
|
140
|
+
_define_property(this, "_bootstrapTask", void 0);
|
|
141
|
+
_define_property(this, "browserIsOpened", false);
|
|
142
|
+
_define_property(this, "modulesGraph", void 0);
|
|
143
|
+
_define_property(this, "options", void 0);
|
|
144
|
+
_define_property(this, "outsideInstance", void 0);
|
|
145
|
+
_define_property(this, "afterPlugins", (compiler)=>{
|
|
146
|
+
(0, logger_namespaceObject.time)('RsdoctorRspackPlugin.afterPlugins');
|
|
147
|
+
try {
|
|
148
|
+
this.getRspackConfig(compiler);
|
|
149
|
+
} finally{
|
|
150
|
+
(0, logger_namespaceObject.timeEnd)('RsdoctorRspackPlugin.afterPlugins');
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
_define_property(this, "done", async (compiler)=>{
|
|
154
|
+
(0, logger_namespaceObject.time)('RsdoctorRspackPlugin.done');
|
|
155
|
+
try {
|
|
156
|
+
var _compiler_name, _compiler_options_optimization;
|
|
157
|
+
if ((null == (_compiler_name = compiler.name) ? void 0 : _compiler_name.toLowerCase()) === 'lynx' && (null == (_compiler_options_optimization = compiler.options.optimization) ? void 0 : _compiler_options_optimization.concatenateModules) !== false) logger_namespaceObject.logger.info(`${logger_namespaceObject.chalk.yellow('Please disable concatenateModules when RSDOCTOR = true to accurately check bundled size.')} Details: https://rsdoctor.rs/guide/more/faq#bundle-analysis-page-nobundled-size`);
|
|
158
|
+
await this.sdk.bootstrap();
|
|
159
|
+
this.sdk.addClientRoutes([
|
|
160
|
+
types_namespaceObject.Manifest.RsdoctorManifestClientRoutes.Overall
|
|
161
|
+
]);
|
|
162
|
+
if (this.outsideInstance && 'parent' in this.sdk) this.sdk.parent.master.setOutputDir(external_path_default().resolve(this.options.output.reportDir || compiler.outputPath, `./${types_namespaceObject.Constants.RsdoctorOutputFolder}`));
|
|
163
|
+
this.sdk.setOutputDir(external_path_default().resolve(this.options.output.reportDir || compiler.outputPath, `./${types_namespaceObject.Constants.RsdoctorOutputFolder}`));
|
|
164
|
+
await this.sdk.writeStore();
|
|
165
|
+
if (!this.options.disableClientServer) if (this.options.mode === types_namespaceObject.SDK.IMode[types_namespaceObject.SDK.IMode.brief]) {
|
|
166
|
+
const outputFilePath = external_path_default().resolve(this.sdk.outputDir, this.options.brief.reportHtmlName || 'rsdoctor-report.html');
|
|
167
|
+
console.log(`${logger_namespaceObject.chalk.green('[RSDOCTOR] generated brief report')}: ${outputFilePath}`);
|
|
168
|
+
(0, sdk_namespaceObject.openBrowser)(`file:///${outputFilePath}`);
|
|
169
|
+
} else await this.sdk.server.openClientPage('homepage');
|
|
170
|
+
if (this.options.disableClientServer) await this.sdk.dispose();
|
|
171
|
+
} finally{
|
|
172
|
+
(0, logger_namespaceObject.timeEnd)('RsdoctorRspackPlugin.done');
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
this.options = (0, plugins_namespaceObject.normalizeRspackUserOptions)(Object.assign(options || {}, {
|
|
176
|
+
supports: {
|
|
177
|
+
...null == options ? void 0 : options.supports,
|
|
178
|
+
generateTileGraph: (null == options ? void 0 : null == (_options_supports = options.supports) ? void 0 : _options_supports.generateTileGraph) ? null == options ? void 0 : null == (_options_supports1 = options.supports) ? void 0 : _options_supports1.generateTileGraph : false
|
|
179
|
+
}
|
|
180
|
+
}));
|
|
181
|
+
this.sdk = this.options.sdkInstance ?? new sdk_namespaceObject.RsdoctorSDK({
|
|
182
|
+
port: this.options.port,
|
|
183
|
+
name: external_constants_js_namespaceObject.pluginTapName,
|
|
184
|
+
root: process.cwd(),
|
|
185
|
+
type: this.options.output.reportCodeType,
|
|
186
|
+
config: {
|
|
187
|
+
innerClientPath: this.options.innerClientPath,
|
|
188
|
+
printLog: this.options.printLog,
|
|
189
|
+
mode: this.options.mode ? this.options.mode : void 0,
|
|
190
|
+
brief: this.options.brief,
|
|
191
|
+
compressData: this.options.output.compressData
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
this.outsideInstance = Boolean(this.options.sdkInstance);
|
|
195
|
+
this.modulesGraph = new graph_namespaceObject.ModuleGraph();
|
|
196
|
+
this.isRsdoctorPlugin = true;
|
|
183
197
|
}
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* @description Generate ModuleGraph and ChunkGraph from stats and webpack module apis;
|
|
187
|
-
* @param {Compiler} compiler
|
|
188
|
-
* @return {*}
|
|
189
|
-
* @memberof RsdoctorWebpackPlugin
|
|
190
|
-
*/
|
|
191
|
-
ensureModulesChunksGraphApplied(compiler) {
|
|
192
|
-
(0, import_plugins.ensureModulesChunksGraphFn)(compiler, this);
|
|
193
|
-
}
|
|
194
|
-
getRspackConfig(compiler) {
|
|
195
|
-
if (compiler.isChild())
|
|
196
|
-
return;
|
|
197
|
-
const { plugins, infrastructureLogging, ...rest } = compiler.options;
|
|
198
|
-
const _rest = (0, import_lodash.cloneDeep)(rest);
|
|
199
|
-
(0, import_plugins.makeRulesSerializable)(_rest.module.defaultRules);
|
|
200
|
-
(0, import_plugins.makeRulesSerializable)(_rest.module.rules);
|
|
201
|
-
const configuration = {
|
|
202
|
-
..._rest,
|
|
203
|
-
plugins: plugins.map((e) => e?.constructor.name)
|
|
204
|
-
};
|
|
205
|
-
const rspackVersion = compiler.webpack?.rspackVersion;
|
|
206
|
-
const webpackVersion = compiler.webpack?.version;
|
|
207
|
-
this.sdk.reportConfiguration({
|
|
208
|
-
name: rspackVersion ? "rspack" : "webpack",
|
|
209
|
-
version: rspackVersion || webpackVersion || "unknown",
|
|
210
|
-
config: configuration
|
|
211
|
-
});
|
|
212
|
-
this.sdk.setOutputDir(
|
|
213
|
-
import_path.default.resolve(
|
|
214
|
-
this.options.output.reportDir || compiler.outputPath,
|
|
215
|
-
`./${import_types.Constants.RsdoctorOutputFolder}`
|
|
216
|
-
)
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
198
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
199
|
+
exports.RsdoctorRspackPlugin = __webpack_exports__.RsdoctorRspackPlugin;
|
|
200
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
201
|
+
"RsdoctorRspackPlugin"
|
|
202
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
203
|
+
Object.defineProperty(exports, '__esModule', {
|
|
204
|
+
value: true
|
|
223
205
|
});
|
package/dist/types/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.r = (exports1)=>{
|
|
5
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
+
value: 'Module'
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
var __webpack_exports__ = {};
|
|
14
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
16
|
+
Object.defineProperty(exports, '__esModule', {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/rspack-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-beta.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -14,15 +14,16 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"lodash": "^4.17.21",
|
|
17
|
-
"@rsdoctor/core": "1.
|
|
18
|
-
"@rsdoctor/graph": "1.
|
|
19
|
-
"@rsdoctor/sdk": "1.
|
|
20
|
-
"@rsdoctor/types": "1.
|
|
21
|
-
"@rsdoctor/utils": "1.
|
|
17
|
+
"@rsdoctor/core": "1.2.0-beta.0",
|
|
18
|
+
"@rsdoctor/graph": "1.2.0-beta.0",
|
|
19
|
+
"@rsdoctor/sdk": "1.2.0-beta.0",
|
|
20
|
+
"@rsdoctor/types": "1.2.0-beta.0",
|
|
21
|
+
"@rsdoctor/utils": "1.2.0-beta.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
24
|
+
"@rslib/core": "^0.11.0",
|
|
25
|
+
"@rspack/core": "1.4.8",
|
|
26
|
+
"@types/lodash": "^4.17.20",
|
|
26
27
|
"@types/node": "^22.8.1",
|
|
27
28
|
"@types/tapable": "2.2.7",
|
|
28
29
|
"tslib": "2.8.1",
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
},
|
|
44
45
|
"scripts": {
|
|
45
46
|
"dev": "npm run start",
|
|
46
|
-
"start": "
|
|
47
|
-
"build": "
|
|
48
|
-
"test": "
|
|
47
|
+
"start": "rslib build -w",
|
|
48
|
+
"build": "rslib build",
|
|
49
|
+
"test": "rstest run"
|
|
49
50
|
}
|
|
50
51
|
}
|