@modern-js/dependence-generator 3.1.22 → 3.1.24
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 +20 -46
- 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"));
|
|
@@ -116424,11 +116435,10 @@ var require_config3 = __commonJS({
|
|
|
116424
116435
|
}
|
|
116425
116436
|
});
|
|
116426
116437
|
var _is = require_is();
|
|
116427
|
-
var
|
|
116428
|
-
var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
|
|
116438
|
+
var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
|
|
116429
116439
|
if (optionsByEntries) {
|
|
116430
116440
|
let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
|
|
116431
|
-
if (optionsByEntry === void 0 &&
|
|
116441
|
+
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
|
116432
116442
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
116433
116443
|
}
|
|
116434
116444
|
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
|
@@ -117429,41 +117439,6 @@ var require_require = __commonJS({
|
|
|
117429
117439
|
}
|
|
117430
117440
|
});
|
|
117431
117441
|
|
|
117432
|
-
// ../../../toolkit/utils/dist/cjs/cli/routes.js
|
|
117433
|
-
var require_routes = __commonJS({
|
|
117434
|
-
"../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
|
|
117435
|
-
"use strict";
|
|
117436
|
-
Object.defineProperty(exports, "__esModule", {
|
|
117437
|
-
value: true
|
|
117438
|
-
});
|
|
117439
|
-
Object.defineProperty(exports, "getRouteId", {
|
|
117440
|
-
enumerable: true,
|
|
117441
|
-
get: function() {
|
|
117442
|
-
return getRouteId;
|
|
117443
|
-
}
|
|
117444
|
-
});
|
|
117445
|
-
var _interop_require_default = require_interop_require_default();
|
|
117446
|
-
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117447
|
-
var _constants = require_constants();
|
|
117448
|
-
var _path1 = require_path();
|
|
117449
|
-
var getPathWithoutExt = (filename) => {
|
|
117450
|
-
const extname = _path.default.extname(filename);
|
|
117451
|
-
return filename.slice(0, -extname.length);
|
|
117452
|
-
};
|
|
117453
|
-
var getRouteId = (componentPath, routesDir, entryName) => {
|
|
117454
|
-
const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
|
|
117455
|
-
const pathWithoutExt = getPathWithoutExt(relativePath);
|
|
117456
|
-
let id = ``;
|
|
117457
|
-
if (entryName === _constants.MAIN_ENTRY_NAME) {
|
|
117458
|
-
id = pathWithoutExt;
|
|
117459
|
-
} else {
|
|
117460
|
-
id = `${entryName}_${pathWithoutExt}`;
|
|
117461
|
-
}
|
|
117462
|
-
return id.replace(/\[(.*?)\]/g, "($1)");
|
|
117463
|
-
};
|
|
117464
|
-
}
|
|
117465
|
-
});
|
|
117466
|
-
|
|
117467
117442
|
// ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
|
|
117468
117443
|
var require_runtimeExports = __commonJS({
|
|
117469
117444
|
"../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
|
|
@@ -117610,7 +117585,6 @@ var require_cli = __commonJS({
|
|
|
117610
117585
|
_export_star._(require_prettyInstructions(), exports);
|
|
117611
117586
|
_export_star._(require_print(), exports);
|
|
117612
117587
|
_export_star._(require_require(), exports);
|
|
117613
|
-
_export_star._(require_routes(), exports);
|
|
117614
117588
|
_export_star._(require_runtimeExports(), exports);
|
|
117615
117589
|
_export_star._(require_watch(), exports);
|
|
117616
117590
|
}
|
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.24",
|
|
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
|
-
"@
|
|
34
|
-
"@modern-js/generator-utils": "3.1.
|
|
35
|
-
"@scripts/jest-config": "2.
|
|
36
|
-
"@
|
|
37
|
-
"@modern-js/
|
|
33
|
+
"@modern-js/generator-common": "3.1.24",
|
|
34
|
+
"@modern-js/generator-utils": "3.1.24",
|
|
35
|
+
"@scripts/jest-config": "2.24.0",
|
|
36
|
+
"@scripts/build": "2.24.0",
|
|
37
|
+
"@modern-js/plugin-i18n": "2.24.0"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"publishConfig": {
|