@modern-js/entry-generator 3.1.25 → 3.1.27

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 CHANGED
@@ -36568,6 +36568,9 @@ var require_path = __commonJS({
36568
36568
  },
36569
36569
  removeSlash: function() {
36570
36570
  return removeSlash;
36571
+ },
36572
+ cutNameByHyphen: function() {
36573
+ return cutNameByHyphen;
36571
36574
  }
36572
36575
  });
36573
36576
  var _interop_require_default = require_interop_require_default();
@@ -36617,6 +36620,9 @@ var require_path = __commonJS({
36617
36620
  var removeLeadingSlash = (s) => s.replace(/^\/+/, "");
36618
36621
  var removeTailSlash = (s) => s.replace(/\/+$/, "");
36619
36622
  var removeSlash = (s) => removeLeadingSlash(removeTailSlash(s));
36623
+ var cutNameByHyphen = (s) => {
36624
+ return s.split(/[-_]/)[0];
36625
+ };
36620
36626
  }
36621
36627
  });
36622
36628
 
@@ -37092,49 +37098,6 @@ var require_prettyInstructions = __commonJS({
37092
37098
  }
37093
37099
  });
37094
37100
 
37095
- // ../../../toolkit/utils/dist/cjs/cli/print.js
37096
- var require_print = __commonJS({
37097
- "../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
37098
- "use strict";
37099
- Object.defineProperty(exports, "__esModule", {
37100
- value: true
37101
- });
37102
- Object.defineProperty(exports, "printBuildError", {
37103
- enumerable: true,
37104
- get: function() {
37105
- return printBuildError;
37106
- }
37107
- });
37108
- var _compiled = require_compiled();
37109
- var _logger = require_logger();
37110
- function printBuildError(err) {
37111
- const message = err != null && err.message;
37112
- const stack = err != null && err.stack;
37113
- if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
37114
- try {
37115
- const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
37116
- if (!matched) {
37117
- throw new Error("Using errors for control flow is bad.");
37118
- }
37119
- const problemPath = matched[2];
37120
- const line = matched[3];
37121
- const column = matched[4];
37122
- _logger.logger.error(`Failed to minify the code from this file:
37123
-
37124
- ${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
37125
- `);
37126
- } catch (ignored) {
37127
- _logger.logger.error(`Failed to minify the bundle. ${err}
37128
- `);
37129
- }
37130
- } else {
37131
- _logger.logger.error((message || err) + "\n");
37132
- }
37133
- _logger.logger.log();
37134
- }
37135
- }
37136
- });
37137
-
37138
37101
  // ../../../toolkit/utils/dist/cjs/cli/require.js
37139
37102
  var require_require = __commonJS({
37140
37103
  "../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
@@ -37367,7 +37330,6 @@ var require_cli = __commonJS({
37367
37330
  _export_star._(require_pathSerializer(), exports);
37368
37331
  _export_star._(require_port(), exports);
37369
37332
  _export_star._(require_prettyInstructions(), exports);
37370
- _export_star._(require_print(), exports);
37371
37333
  _export_star._(require_require(), exports);
37372
37334
  _export_star._(require_runtimeExports(), exports);
37373
37335
  _export_star._(require_watch(), exports);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.25",
18
+ "version": "3.1.27",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,12 +30,12 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-utils": "3.1.25",
34
- "@modern-js/plugin-i18n": "2.24.1",
35
- "@modern-js/generator-common": "3.1.25",
36
- "@modern-js/utils": "2.24.1",
37
- "@scripts/jest-config": "2.24.1",
38
- "@scripts/build": "2.24.1"
33
+ "@modern-js/generator-common": "3.1.27",
34
+ "@modern-js/utils": "2.25.2",
35
+ "@modern-js/plugin-i18n": "2.25.2",
36
+ "@modern-js/generator-utils": "3.1.27",
37
+ "@scripts/jest-config": "2.25.2",
38
+ "@scripts/build": "2.25.2"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {
@@ -67,7 +67,7 @@ const Index = () => (
67
67
  src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/arrow-right.svg"
68
68
  />
69
69
  </h2>
70
- <p>Find all configuration items provided by Modern.js.</p>
70
+ <p>Find all configuration options provided by Modern.js.</p>
71
71
  </a>
72
72
  <a
73
73
  href="https://github.com/web-infra-dev/modern.js"