@modern-js/packages-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 +5 -5
package/dist/index.js
CHANGED
|
@@ -115762,10 +115762,14 @@ var require_chainId = __commonJS({
|
|
|
115762
115762
|
SVG: "svg",
|
|
115763
115763
|
/** Rule for pug */
|
|
115764
115764
|
PUG: "pug",
|
|
115765
|
+
/** Rule for Vue */
|
|
115766
|
+
VUE: "vue",
|
|
115765
115767
|
/** Rule for toml */
|
|
115766
115768
|
TOML: "toml",
|
|
115767
115769
|
/** Rule for yaml */
|
|
115768
115770
|
YAML: "yaml",
|
|
115771
|
+
/** Rule for wasm */
|
|
115772
|
+
WASM: "wasm",
|
|
115769
115773
|
/** Rule for bff */
|
|
115770
115774
|
JS_BFF_API: "js-bff-api"
|
|
115771
115775
|
},
|
|
@@ -115792,6 +115796,8 @@ var require_chainId = __commonJS({
|
|
|
115792
115796
|
URL: "url",
|
|
115793
115797
|
/** pug-loader */
|
|
115794
115798
|
PUG: "pug",
|
|
115799
|
+
/** vue-loader */
|
|
115800
|
+
VUE: "vue",
|
|
115795
115801
|
/** file-loader */
|
|
115796
115802
|
FILE: "file",
|
|
115797
115803
|
/** @svgr/webpack */
|
|
@@ -115861,12 +115867,16 @@ var require_chainId = __commonJS({
|
|
|
115861
115867
|
BUNDLE_ANALYZER: "bundle-analyze",
|
|
115862
115868
|
/** BottomTemplatePlugin */
|
|
115863
115869
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
115864
|
-
/**
|
|
115865
|
-
|
|
115870
|
+
/** HtmlTagsPlugin */
|
|
115871
|
+
HTML_TAGS: "html-tags",
|
|
115866
115872
|
/** HtmlNoncePlugin */
|
|
115867
115873
|
HTML_NONCE: "html-nonce",
|
|
115874
|
+
/** HtmlCrossOriginPlugin */
|
|
115875
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
115868
115876
|
/** MiniCssExtractPlugin */
|
|
115869
115877
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
115878
|
+
/** VueLoaderPlugin */
|
|
115879
|
+
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
|
115870
115880
|
/** ReactFastRefreshPlugin */
|
|
115871
115881
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
115872
115882
|
/** ProvidePlugin for node polyfill */
|
|
@@ -115880,9 +115890,7 @@ var require_chainId = __commonJS({
|
|
|
115880
115890
|
/** HtmlAsyncChunkPlugin */
|
|
115881
115891
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
|
115882
115892
|
/** SWC_POLYFILL_CHECKER */
|
|
115883
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
115884
|
-
/** HtmlTagsPlugin */
|
|
115885
|
-
HTML_TAGS: "html-tags"
|
|
115893
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
115886
115894
|
},
|
|
115887
115895
|
/** Predefined minimizers */
|
|
115888
115896
|
MINIMIZER: {
|
|
@@ -116539,6 +116547,7 @@ var require_project = __commonJS({
|
|
|
116539
116547
|
});
|
|
116540
116548
|
var _interop_require_default = require_interop_require_default();
|
|
116541
116549
|
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116550
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
|
116542
116551
|
var _commands = require_commands();
|
|
116543
116552
|
var _compiled = require_compiled();
|
|
116544
116553
|
var _common = require_common3();
|
|
@@ -116578,8 +116587,10 @@ var require_project = __commonJS({
|
|
|
116578
116587
|
return Boolean(options["web-only"]);
|
|
116579
116588
|
});
|
|
116580
116589
|
var isBeyondReact17 = (cwd) => {
|
|
116581
|
-
const pkgPath =
|
|
116582
|
-
|
|
116590
|
+
const pkgPath = _pkgup.default.sync({
|
|
116591
|
+
cwd
|
|
116592
|
+
});
|
|
116593
|
+
if (!pkgPath) {
|
|
116583
116594
|
return false;
|
|
116584
116595
|
}
|
|
116585
116596
|
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": [
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@scripts/build": "2.23.
|
|
34
|
-
"@scripts/jest-config": "2.23.
|
|
35
|
-
"@modern-js/generator-
|
|
36
|
-
"@modern-js/generator-
|
|
33
|
+
"@scripts/build": "2.23.1",
|
|
34
|
+
"@scripts/jest-config": "2.23.1",
|
|
35
|
+
"@modern-js/generator-utils": "3.1.23",
|
|
36
|
+
"@modern-js/generator-common": "3.1.23"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"publishConfig": {
|