@rsdoctor/webpack-plugin 0.4.4 → 0.4.5
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/plugin.d.ts.map +1 -1
- package/dist/plugin.js +9 -2
- package/package.json +7 -7
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,sBAAsB,EACtB,+BAA+B,EAC/B,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAe,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,sBAAsB,EACtB,+BAA+B,EAC/B,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAe,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAa,MAAM,EAAiB,MAAM,iBAAiB,CAAC;AAKnE,OAAO,KAAK,EAAE,QAAQ,EAA8B,MAAM,SAAS,CAAC;AAQpE,qBAAa,qBAAqB,CAAC,KAAK,SAAS,MAAM,CAAC,cAAc,EAAE,CACtE,YAAW,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC;IAElD,SAAgB,IAAI,2BAAiB;IAErC,SAAgB,OAAO,EAAE,+BAA+B,CAAC,KAAK,CAAC,CAAC;IAEhE,SAAgB,GAAG,EAAE,kBAAkB,CAAC;IAExC,SAAgB,gBAAgB,EAAE,OAAO,CAAC;IAEnC,YAAY,EAAE,WAAW,CAAC;IAEjC,OAAO,CAAC,eAAe,CAAS;IAEzB,cAAc,EAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC,SAAS,CAAC,eAAe,UAAS;IAE3B,UAAU,EAAE,UAAU,CAAC;gBAElB,OAAO,CAAC,EAAE,4BAA4B,CAAC,KAAK,CAAC;IAwBzD,KAAK,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO;IA+D1B,YAAY,aAAc,QAAQ,KAAG,IAAI,CAoC9C;IAEK,SAAS,aAAoB,QAAQ,KAAG,OAAO,CAAC,IAAI,CAAC,CAW1D;IAEF;;;;;OAKG;IACI,+BAA+B,CAAC,QAAQ,EAAE,QAAQ;IAIlD,IAAI,QAAa,OAAO,CAAC,IAAI,CAAC,CA0BnC;CACH"}
|
package/dist/plugin.js
CHANGED
|
@@ -43,6 +43,7 @@ var import_constants = require("./constants");
|
|
|
43
43
|
var import_resolver = require("./plugins/resolver");
|
|
44
44
|
var import_plugins2 = require("@rsdoctor/core/plugins");
|
|
45
45
|
var import_common = require("@rsdoctor/utils/common");
|
|
46
|
+
var import_build_utils = require("@rsdoctor/core/build-utils");
|
|
46
47
|
class RsdoctorWebpackPlugin {
|
|
47
48
|
constructor(options) {
|
|
48
49
|
this.name = import_constants.pluginTapName;
|
|
@@ -138,8 +139,14 @@ class RsdoctorWebpackPlugin {
|
|
|
138
139
|
(0, import_plugins.setSDK)(this.sdk);
|
|
139
140
|
}
|
|
140
141
|
new import_plugins.InternalSummaryPlugin(this).apply(compiler);
|
|
141
|
-
if (this.options.features.loader
|
|
142
|
-
new
|
|
142
|
+
if (this.options.features.loader) {
|
|
143
|
+
new import_build_utils.Loader.ProbeLoaderPlugin().apply(compiler);
|
|
144
|
+
this.sdk.addClientRoutes([
|
|
145
|
+
import_types.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders
|
|
146
|
+
]);
|
|
147
|
+
if (!import_common.Loader.isVue(compiler)) {
|
|
148
|
+
new import_plugins.InternalLoaderPlugin(this).apply(compiler);
|
|
149
|
+
}
|
|
143
150
|
}
|
|
144
151
|
if (this.options.features.resolver) {
|
|
145
152
|
new import_resolver.InternalResolverPlugin(this).apply(compiler);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -15,16 +15,16 @@
|
|
|
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/sdk": "0.4.5",
|
|
19
|
+
"@rsdoctor/graph": "0.4.5",
|
|
20
|
+
"@rsdoctor/core": "0.4.5",
|
|
21
|
+
"@rsdoctor/types": "0.4.5",
|
|
22
|
+
"@rsdoctor/utils": "0.4.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"webpack": "^5.90.0",
|
|
26
26
|
"@types/fs-extra": "^11.0.4",
|
|
27
|
-
"@types/lodash": "^4.17.
|
|
27
|
+
"@types/lodash": "^4.17.9",
|
|
28
28
|
"@types/node": "^16",
|
|
29
29
|
"@types/tapable": "2.2.7",
|
|
30
30
|
"tslib": "2.7.0",
|