@rsdoctor/core 1.4.1-beta.0 → 1.5.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.
|
@@ -150,15 +150,11 @@ function normalizeRspackUserOptions(options) {
|
|
|
150
150
|
const config = normalizeUserConfig(options);
|
|
151
151
|
config.experiments ??= {
|
|
152
152
|
enableNativePlugin: {
|
|
153
|
-
moduleGraph:
|
|
154
|
-
chunkGraph:
|
|
153
|
+
moduleGraph: true,
|
|
154
|
+
chunkGraph: true
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
if ('boolean' == typeof options.experiments?.enableNativePlugin && options.experiments?.enableNativePlugin ===
|
|
158
|
-
moduleGraph: true,
|
|
159
|
-
chunkGraph: true
|
|
160
|
-
};
|
|
161
|
-
else config.experiments.enableNativePlugin = {
|
|
157
|
+
if ('boolean' == typeof options.experiments?.enableNativePlugin && options.experiments?.enableNativePlugin === false) config.experiments.enableNativePlugin = {
|
|
162
158
|
moduleGraph: false,
|
|
163
159
|
chunkGraph: false
|
|
164
160
|
};
|
|
@@ -112,15 +112,11 @@ function normalizeRspackUserOptions(options) {
|
|
|
112
112
|
const config = normalizeUserConfig(options);
|
|
113
113
|
config.experiments ??= {
|
|
114
114
|
enableNativePlugin: {
|
|
115
|
-
moduleGraph:
|
|
116
|
-
chunkGraph:
|
|
115
|
+
moduleGraph: true,
|
|
116
|
+
chunkGraph: true
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
if ('boolean' == typeof options.experiments?.enableNativePlugin && options.experiments?.enableNativePlugin ===
|
|
120
|
-
moduleGraph: true,
|
|
121
|
-
chunkGraph: true
|
|
122
|
-
};
|
|
123
|
-
else config.experiments.enableNativePlugin = {
|
|
119
|
+
if ('boolean' == typeof options.experiments?.enableNativePlugin && options.experiments?.enableNativePlugin === false) config.experiments.enableNativePlugin = {
|
|
124
120
|
moduleGraph: false,
|
|
125
121
|
chunkGraph: false
|
|
126
122
|
};
|
package/dist/types/plugin.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"fs-extra": "^11.1.1",
|
|
70
70
|
"semver": "^7.7.3",
|
|
71
71
|
"source-map": "^0.7.6",
|
|
72
|
-
"@rsdoctor/
|
|
73
|
-
"@rsdoctor/
|
|
74
|
-
"@rsdoctor/
|
|
75
|
-
"@rsdoctor/utils": "1.
|
|
72
|
+
"@rsdoctor/graph": "1.5.0",
|
|
73
|
+
"@rsdoctor/types": "1.5.0",
|
|
74
|
+
"@rsdoctor/sdk": "1.5.0",
|
|
75
|
+
"@rsdoctor/utils": "1.5.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"axios": "^1.13.2",
|