ptech-preset 1.3.6 → 1.3.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/dist/index.js +0 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -407,14 +407,6 @@ function pluginCore(opts) {
|
|
|
407
407
|
const command = api?.context?.command;
|
|
408
408
|
const isBuild = command === "build";
|
|
409
409
|
const isDev = !isBuild;
|
|
410
|
-
if (isDev && mfMerged.shared && typeof mfMerged.shared === "object") {
|
|
411
|
-
for (const key of Object.keys(mfMerged.shared)) {
|
|
412
|
-
const conf = mfMerged.shared[key];
|
|
413
|
-
if (!conf || typeof conf !== "object") continue;
|
|
414
|
-
if (/^react(-dom)?$/.test(key)) continue;
|
|
415
|
-
if ("eager" in conf) conf.eager = false;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
410
|
if (cssInjection !== "none") {
|
|
419
411
|
const cssAbs = path3.resolve(root, cssEntry);
|
|
420
412
|
const hasCss = fs3.existsSync(cssAbs);
|