@rsdoctor/webpack-plugin 0.4.5 → 0.4.7
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/README.md +1 -1
- package/dist/plugins/resolver.js +2 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ This Rsdoctor plugin is an analysis plugin for the Webpack builder.
|
|
|
11
11
|
|
|
12
12
|
## Note
|
|
13
13
|
|
|
14
|
-
This plugin is used by the `Webpack` repo to open Rsdoctor, [
|
|
14
|
+
This plugin is used by the `Webpack` repo to open Rsdoctor, [Quick Start](https://rsdoctor.dev/guide/start/quick-start).
|
|
15
15
|
|
|
16
16
|
Initialize the RsdoctorWebpackPlugin plugin in the [plugins](https://webpack.js.org/configuration/plugins/#plugins) section of the `webpack.config.js` file, as shown below:
|
|
17
17
|
|
package/dist/plugins/resolver.js
CHANGED
|
@@ -106,12 +106,12 @@ class RsdoctorResolverPlugin {
|
|
|
106
106
|
return "";
|
|
107
107
|
}
|
|
108
108
|
apply(resolver) {
|
|
109
|
-
resolver.hooks.result.tap(this.tapOptions, (request,
|
|
109
|
+
resolver.hooks.result.tap(this.tapOptions, (request, resolveCtx) => {
|
|
110
110
|
const { context } = request;
|
|
111
111
|
const ctx = this.contextMap.get(context.issuer);
|
|
112
112
|
if (ctx) {
|
|
113
113
|
const data = this.getResolverData(context, {
|
|
114
|
-
request: this.getResolveRequest(request.request,
|
|
114
|
+
request: this.getResolveRequest(request.request, resolveCtx),
|
|
115
115
|
query: request.query,
|
|
116
116
|
result: request.path
|
|
117
117
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/webpack-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
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/sdk": "0.4.
|
|
19
|
-
"@rsdoctor/
|
|
20
|
-
"@rsdoctor/
|
|
21
|
-
"@rsdoctor/types": "0.4.
|
|
22
|
-
"@rsdoctor/
|
|
18
|
+
"@rsdoctor/sdk": "0.4.7",
|
|
19
|
+
"@rsdoctor/utils": "0.4.7",
|
|
20
|
+
"@rsdoctor/graph": "0.4.7",
|
|
21
|
+
"@rsdoctor/types": "0.4.7",
|
|
22
|
+
"@rsdoctor/core": "0.4.7"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"webpack": "^5.
|
|
25
|
+
"webpack": "^5.95.0",
|
|
26
26
|
"@types/fs-extra": "^11.0.4",
|
|
27
|
-
"@types/lodash": "^4.17.
|
|
27
|
+
"@types/lodash": "^4.17.10",
|
|
28
28
|
"@types/node": "^16",
|
|
29
29
|
"@types/tapable": "2.2.7",
|
|
30
30
|
"tslib": "2.7.0",
|