@modern-js/dependence-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 +6 -6
package/dist/index.js
CHANGED
|
@@ -115337,10 +115337,14 @@ var require_chainId = __commonJS({
|
|
|
115337
115337
|
SVG: "svg",
|
|
115338
115338
|
/** Rule for pug */
|
|
115339
115339
|
PUG: "pug",
|
|
115340
|
+
/** Rule for Vue */
|
|
115341
|
+
VUE: "vue",
|
|
115340
115342
|
/** Rule for toml */
|
|
115341
115343
|
TOML: "toml",
|
|
115342
115344
|
/** Rule for yaml */
|
|
115343
115345
|
YAML: "yaml",
|
|
115346
|
+
/** Rule for wasm */
|
|
115347
|
+
WASM: "wasm",
|
|
115344
115348
|
/** Rule for bff */
|
|
115345
115349
|
JS_BFF_API: "js-bff-api"
|
|
115346
115350
|
},
|
|
@@ -115367,6 +115371,8 @@ var require_chainId = __commonJS({
|
|
|
115367
115371
|
URL: "url",
|
|
115368
115372
|
/** pug-loader */
|
|
115369
115373
|
PUG: "pug",
|
|
115374
|
+
/** vue-loader */
|
|
115375
|
+
VUE: "vue",
|
|
115370
115376
|
/** file-loader */
|
|
115371
115377
|
FILE: "file",
|
|
115372
115378
|
/** @svgr/webpack */
|
|
@@ -115436,12 +115442,16 @@ var require_chainId = __commonJS({
|
|
|
115436
115442
|
BUNDLE_ANALYZER: "bundle-analyze",
|
|
115437
115443
|
/** BottomTemplatePlugin */
|
|
115438
115444
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
115439
|
-
/**
|
|
115440
|
-
|
|
115445
|
+
/** HtmlTagsPlugin */
|
|
115446
|
+
HTML_TAGS: "html-tags",
|
|
115441
115447
|
/** HtmlNoncePlugin */
|
|
115442
115448
|
HTML_NONCE: "html-nonce",
|
|
115449
|
+
/** HtmlCrossOriginPlugin */
|
|
115450
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
115443
115451
|
/** MiniCssExtractPlugin */
|
|
115444
115452
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
115453
|
+
/** VueLoaderPlugin */
|
|
115454
|
+
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
|
115445
115455
|
/** ReactFastRefreshPlugin */
|
|
115446
115456
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
115447
115457
|
/** ProvidePlugin for node polyfill */
|
|
@@ -115455,9 +115465,7 @@ var require_chainId = __commonJS({
|
|
|
115455
115465
|
/** HtmlAsyncChunkPlugin */
|
|
115456
115466
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
|
115457
115467
|
/** SWC_POLYFILL_CHECKER */
|
|
115458
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
115459
|
-
/** HtmlTagsPlugin */
|
|
115460
|
-
HTML_TAGS: "html-tags"
|
|
115468
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
115461
115469
|
},
|
|
115462
115470
|
/** Predefined minimizers */
|
|
115463
115471
|
MINIMIZER: {
|
|
@@ -116114,6 +116122,7 @@ var require_project = __commonJS({
|
|
|
116114
116122
|
});
|
|
116115
116123
|
var _interop_require_default = require_interop_require_default();
|
|
116116
116124
|
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116125
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
|
116117
116126
|
var _commands = require_commands();
|
|
116118
116127
|
var _compiled = require_compiled();
|
|
116119
116128
|
var _common = require_common3();
|
|
@@ -116153,8 +116162,10 @@ var require_project = __commonJS({
|
|
|
116153
116162
|
return Boolean(options["web-only"]);
|
|
116154
116163
|
});
|
|
116155
116164
|
var isBeyondReact17 = (cwd) => {
|
|
116156
|
-
const pkgPath =
|
|
116157
|
-
|
|
116165
|
+
const pkgPath = _pkgup.default.sync({
|
|
116166
|
+
cwd
|
|
116167
|
+
});
|
|
116168
|
+
if (!pkgPath) {
|
|
116158
116169
|
return false;
|
|
116159
116170
|
}
|
|
116160
116171
|
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,11 +30,11 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@scripts/build": "2.23.
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@modern-js/plugin-i18n": "2.23.
|
|
37
|
-
"@modern-js/generator-common": "3.1.
|
|
33
|
+
"@scripts/build": "2.23.1",
|
|
34
|
+
"@scripts/jest-config": "2.23.1",
|
|
35
|
+
"@modern-js/generator-utils": "3.1.23",
|
|
36
|
+
"@modern-js/plugin-i18n": "2.23.1",
|
|
37
|
+
"@modern-js/generator-common": "3.1.23"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"publishConfig": {
|