@modern-js/entry-generator 3.1.26 → 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 +0 -44
- package/package.json +7 -7
- package/templates/routes/page.handlebars +1 -1
package/dist/index.js
CHANGED
|
@@ -37098,49 +37098,6 @@ var require_prettyInstructions = __commonJS({
|
|
|
37098
37098
|
}
|
|
37099
37099
|
});
|
|
37100
37100
|
|
|
37101
|
-
// ../../../toolkit/utils/dist/cjs/cli/print.js
|
|
37102
|
-
var require_print = __commonJS({
|
|
37103
|
-
"../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
|
|
37104
|
-
"use strict";
|
|
37105
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37106
|
-
value: true
|
|
37107
|
-
});
|
|
37108
|
-
Object.defineProperty(exports, "printBuildError", {
|
|
37109
|
-
enumerable: true,
|
|
37110
|
-
get: function() {
|
|
37111
|
-
return printBuildError;
|
|
37112
|
-
}
|
|
37113
|
-
});
|
|
37114
|
-
var _compiled = require_compiled();
|
|
37115
|
-
var _logger = require_logger();
|
|
37116
|
-
function printBuildError(err) {
|
|
37117
|
-
const message = err != null && err.message;
|
|
37118
|
-
const stack = err != null && err.stack;
|
|
37119
|
-
if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
|
|
37120
|
-
try {
|
|
37121
|
-
const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
|
|
37122
|
-
if (!matched) {
|
|
37123
|
-
throw new Error("Using errors for control flow is bad.");
|
|
37124
|
-
}
|
|
37125
|
-
const problemPath = matched[2];
|
|
37126
|
-
const line = matched[3];
|
|
37127
|
-
const column = matched[4];
|
|
37128
|
-
_logger.logger.error(`Failed to minify the code from this file:
|
|
37129
|
-
|
|
37130
|
-
${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
|
|
37131
|
-
`);
|
|
37132
|
-
} catch (ignored) {
|
|
37133
|
-
_logger.logger.error(`Failed to minify the bundle. ${err}
|
|
37134
|
-
`);
|
|
37135
|
-
}
|
|
37136
|
-
} else {
|
|
37137
|
-
_logger.logger.error((message || err) + "\n");
|
|
37138
|
-
}
|
|
37139
|
-
_logger.logger.log();
|
|
37140
|
-
}
|
|
37141
|
-
}
|
|
37142
|
-
});
|
|
37143
|
-
|
|
37144
37101
|
// ../../../toolkit/utils/dist/cjs/cli/require.js
|
|
37145
37102
|
var require_require = __commonJS({
|
|
37146
37103
|
"../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
|
|
@@ -37373,7 +37330,6 @@ var require_cli = __commonJS({
|
|
|
37373
37330
|
_export_star._(require_pathSerializer(), exports);
|
|
37374
37331
|
_export_star._(require_port(), exports);
|
|
37375
37332
|
_export_star._(require_prettyInstructions(), exports);
|
|
37376
|
-
_export_star._(require_print(), exports);
|
|
37377
37333
|
_export_star._(require_require(), exports);
|
|
37378
37334
|
_export_star._(require_runtimeExports(), exports);
|
|
37379
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.
|
|
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-
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@scripts/jest-config": "2.25.
|
|
38
|
-
"@scripts/build": "2.25.
|
|
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
|
|
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"
|