@modern-js/ssg-generator 3.1.22 → 3.1.23
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 +18 -7
- package/package.json +7 -7
package/dist/index.js
CHANGED
@@ -113716,10 +113716,14 @@ var require_chainId = __commonJS({
|
|
113716
113716
|
SVG: "svg",
|
113717
113717
|
/** Rule for pug */
|
113718
113718
|
PUG: "pug",
|
113719
|
+
/** Rule for Vue */
|
113720
|
+
VUE: "vue",
|
113719
113721
|
/** Rule for toml */
|
113720
113722
|
TOML: "toml",
|
113721
113723
|
/** Rule for yaml */
|
113722
113724
|
YAML: "yaml",
|
113725
|
+
/** Rule for wasm */
|
113726
|
+
WASM: "wasm",
|
113723
113727
|
/** Rule for bff */
|
113724
113728
|
JS_BFF_API: "js-bff-api"
|
113725
113729
|
},
|
@@ -113746,6 +113750,8 @@ var require_chainId = __commonJS({
|
|
113746
113750
|
URL: "url",
|
113747
113751
|
/** pug-loader */
|
113748
113752
|
PUG: "pug",
|
113753
|
+
/** vue-loader */
|
113754
|
+
VUE: "vue",
|
113749
113755
|
/** file-loader */
|
113750
113756
|
FILE: "file",
|
113751
113757
|
/** @svgr/webpack */
|
@@ -113815,12 +113821,16 @@ var require_chainId = __commonJS({
|
|
113815
113821
|
BUNDLE_ANALYZER: "bundle-analyze",
|
113816
113822
|
/** BottomTemplatePlugin */
|
113817
113823
|
BOTTOM_TEMPLATE: "bottom-template",
|
113818
|
-
/**
|
113819
|
-
|
113824
|
+
/** HtmlTagsPlugin */
|
113825
|
+
HTML_TAGS: "html-tags",
|
113820
113826
|
/** HtmlNoncePlugin */
|
113821
113827
|
HTML_NONCE: "html-nonce",
|
113828
|
+
/** HtmlCrossOriginPlugin */
|
113829
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
113822
113830
|
/** MiniCssExtractPlugin */
|
113823
113831
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
113832
|
+
/** VueLoaderPlugin */
|
113833
|
+
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
113824
113834
|
/** ReactFastRefreshPlugin */
|
113825
113835
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
113826
113836
|
/** ProvidePlugin for node polyfill */
|
@@ -113834,9 +113844,7 @@ var require_chainId = __commonJS({
|
|
113834
113844
|
/** HtmlAsyncChunkPlugin */
|
113835
113845
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
113836
113846
|
/** SWC_POLYFILL_CHECKER */
|
113837
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
113838
|
-
/** HtmlTagsPlugin */
|
113839
|
-
HTML_TAGS: "html-tags"
|
113847
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
113840
113848
|
},
|
113841
113849
|
/** Predefined minimizers */
|
113842
113850
|
MINIMIZER: {
|
@@ -114493,6 +114501,7 @@ var require_project = __commonJS({
|
|
114493
114501
|
});
|
114494
114502
|
var _interop_require_default = require_interop_require_default();
|
114495
114503
|
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
114504
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
114496
114505
|
var _commands = require_commands();
|
114497
114506
|
var _compiled = require_compiled();
|
114498
114507
|
var _common = require_common2();
|
@@ -114532,8 +114541,10 @@ var require_project = __commonJS({
|
|
114532
114541
|
return Boolean(options["web-only"]);
|
114533
114542
|
});
|
114534
114543
|
var isBeyondReact17 = (cwd) => {
|
114535
|
-
const pkgPath =
|
114536
|
-
|
114544
|
+
const pkgPath = _pkgup.default.sync({
|
114545
|
+
cwd
|
114546
|
+
});
|
114547
|
+
if (!pkgPath) {
|
114537
114548
|
return false;
|
114538
114549
|
}
|
114539
114550
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.1.
|
18
|
+
"version": "3.1.23",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -29,12 +29,12 @@
|
|
29
29
|
"@types/node": "^14",
|
30
30
|
"jest": "^29",
|
31
31
|
"typescript": "^5",
|
32
|
-
"@modern-js/generator-common": "3.1.
|
33
|
-
"@modern-js/
|
34
|
-
"@modern-js/dependence-generator": "3.1.
|
35
|
-
"@modern-js/
|
36
|
-
"@scripts/
|
37
|
-
"@scripts/
|
32
|
+
"@modern-js/generator-common": "3.1.23",
|
33
|
+
"@modern-js/generator-utils": "3.1.23",
|
34
|
+
"@modern-js/dependence-generator": "3.1.23",
|
35
|
+
"@modern-js/plugin-i18n": "2.23.1",
|
36
|
+
"@scripts/build": "2.23.1",
|
37
|
+
"@scripts/jest-config": "2.23.1"
|
38
38
|
},
|
39
39
|
"sideEffects": false,
|
40
40
|
"publishConfig": {
|