@modern-js/ssg-generator 3.0.2 → 3.0.3
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 +33 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
@@ -135539,7 +135539,8 @@ var require_chainId2 = __commonJS({
|
|
135539
135539
|
ASSETS_RETRY: "ASSETS_RETRY",
|
135540
135540
|
AUTO_SET_ROOT_SIZE: "auto-set-root-size",
|
135541
135541
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
135542
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
135542
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
|
135543
|
+
HTML_TAGS: "html-tags"
|
135543
135544
|
},
|
135544
135545
|
MINIMIZER: {
|
135545
135546
|
JS: "js",
|
@@ -135720,6 +135721,36 @@ var require_getCoreJsVersion = __commonJS({
|
|
135720
135721
|
}
|
135721
135722
|
});
|
135722
135723
|
|
135724
|
+
// ../../../toolkit/utils/dist/react.js
|
135725
|
+
var require_react = __commonJS({
|
135726
|
+
"../../../toolkit/utils/dist/react.js"(exports) {
|
135727
|
+
"use strict";
|
135728
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
135729
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
135730
|
+
};
|
135731
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
135732
|
+
exports.isBeyondReact17 = void 0;
|
135733
|
+
var path_1 = __importDefault(require("path"));
|
135734
|
+
var _1 = require_dist2();
|
135735
|
+
var isBeyondReact17 = (cwd) => {
|
135736
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
135737
|
+
if (!_1.fs.existsSync(pkgPath)) {
|
135738
|
+
return false;
|
135739
|
+
}
|
135740
|
+
const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
|
135741
|
+
const deps = {
|
135742
|
+
...pkgInfo.devDependencies,
|
135743
|
+
...pkgInfo.dependencies
|
135744
|
+
};
|
135745
|
+
if (typeof deps.react !== "string") {
|
135746
|
+
return false;
|
135747
|
+
}
|
135748
|
+
return _1.semver.satisfies(_1.semver.minVersion(deps.react), ">=17.0.0");
|
135749
|
+
};
|
135750
|
+
exports.isBeyondReact17 = isBeyondReact17;
|
135751
|
+
}
|
135752
|
+
});
|
135753
|
+
|
135723
135754
|
// ../../../toolkit/utils/dist/index.js
|
135724
135755
|
var require_dist2 = __commonJS({
|
135725
135756
|
"../../../toolkit/utils/dist/index.js"(exports) {
|
@@ -135787,6 +135818,7 @@ var require_dist2 = __commonJS({
|
|
135787
135818
|
__exportStar(require_routes(), exports);
|
135788
135819
|
__exportStar(require_test_utils(), exports);
|
135789
135820
|
__exportStar(require_getCoreJsVersion(), exports);
|
135821
|
+
__exportStar(require_react(), exports);
|
135790
135822
|
}
|
135791
135823
|
});
|
135792
135824
|
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "3.0.
|
14
|
+
"version": "3.0.3",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/index.js",
|
17
17
|
"files": [
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"@types/node": "^14",
|
27
27
|
"jest": "^27",
|
28
28
|
"typescript": "^4",
|
29
|
-
"@modern-js/generator-common": "3.0.
|
30
|
-
"@modern-js/
|
31
|
-
"@modern-js/dependence-generator": "3.0.
|
32
|
-
"@modern-js/
|
33
|
-
"@scripts/
|
34
|
-
"@scripts/
|
29
|
+
"@modern-js/generator-common": "3.0.3",
|
30
|
+
"@modern-js/generator-utils": "3.0.3",
|
31
|
+
"@modern-js/dependence-generator": "3.0.3",
|
32
|
+
"@modern-js/plugin-i18n": "2.1.0",
|
33
|
+
"@scripts/jest-config": "2.1.0",
|
34
|
+
"@scripts/build": "2.1.0"
|
35
35
|
},
|
36
36
|
"sideEffects": false,
|
37
37
|
"publishConfig": {
|