@modern-js/repo-generator 0.0.0-next-20230209044338 → 0.0.0-next-20230209112307
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 +11 -2
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -136422,7 +136422,7 @@ var require_is2 = __commonJS({
|
|
|
136422
136422
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
136423
136423
|
};
|
|
136424
136424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
136425
|
-
exports.isFastRefresh = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
|
|
136425
|
+
exports.isFastRefresh = exports.isServerWorker = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
|
|
136426
136426
|
var fs_1 = __importDefault(require("fs"));
|
|
136427
136427
|
var path_1 = __importDefault(require("path"));
|
|
136428
136428
|
var debug_1 = require_debug5();
|
|
@@ -136466,6 +136466,14 @@ var require_is2 = __commonJS({
|
|
|
136466
136466
|
return (0, exports.isSSR)(config);
|
|
136467
136467
|
};
|
|
136468
136468
|
exports.isUseSSRBundle = isUseSSRBundle;
|
|
136469
|
+
var isServerWorker = (config) => {
|
|
136470
|
+
const { output: output2, server } = config;
|
|
136471
|
+
if ((server === null || server === void 0 ? void 0 : server.worker) && ((output2 === null || output2 === void 0 ? void 0 : output2.ssg) || (0, exports.isSSR)(config))) {
|
|
136472
|
+
return true;
|
|
136473
|
+
}
|
|
136474
|
+
return false;
|
|
136475
|
+
};
|
|
136476
|
+
exports.isServerWorker = isServerWorker;
|
|
136469
136477
|
var isFastRefresh = () => (0, node_env_1.isDev)() && process.env.FAST_REFRESH !== "false";
|
|
136470
136478
|
exports.isFastRefresh = isFastRefresh;
|
|
136471
136479
|
__exportStar(require_node_env2(), exports);
|
|
@@ -136523,12 +136531,13 @@ var require_constants6 = __commonJS({
|
|
|
136523
136531
|
"../../../toolkit/utils/dist/constants.js"(exports) {
|
|
136524
136532
|
"use strict";
|
|
136525
136533
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
136526
|
-
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.SERVER_PLUGIN_POLYFILL = exports.SERVER_PLUGIN_SERVER = exports.SERVER_PLUGIN_NEST = exports.SERVER_PLUGIN_KOA = exports.SERVER_PLUGIN_EGG = exports.SERVER_PLUGIN_EXPRESS = exports.SERVER_PLUGIN_BFF = exports.INTERNAL_CLI_PLUGINS = exports.INTERNAL_DOC_TOOLS_PLUGINS = exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = exports.INTERNAL_MODULE_TOOLS_PLUGINS = exports.INTERNAL_APP_TOOLS_RUNTIME_PLUGINS = exports.INTERNAL_APP_TOOLS_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
|
136534
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.SERVER_PLUGIN_POLYFILL = exports.SERVER_PLUGIN_SERVER = exports.SERVER_PLUGIN_NEST = exports.SERVER_PLUGIN_KOA = exports.SERVER_PLUGIN_EGG = exports.SERVER_PLUGIN_EXPRESS = exports.SERVER_PLUGIN_BFF = exports.INTERNAL_CLI_PLUGINS = exports.INTERNAL_DOC_TOOLS_PLUGINS = exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = exports.INTERNAL_MODULE_TOOLS_PLUGINS = exports.INTERNAL_APP_TOOLS_RUNTIME_PLUGINS = exports.INTERNAL_APP_TOOLS_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_WORKER_BUNDLE_DIRECTORY = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
|
136527
136535
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
136528
136536
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
136529
136537
|
exports.MAIN_ENTRY_NAME = "main";
|
|
136530
136538
|
exports.LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
|
|
136531
136539
|
exports.SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
136540
|
+
exports.SERVER_WORKER_BUNDLE_DIRECTORY = "worker";
|
|
136532
136541
|
exports.ENTRY_NAME_PATTERN = "^[a-zA-Z0-9_-]+$";
|
|
136533
136542
|
exports.SERVER_RENDER_FUNCTION_NAME = "serverRender";
|
|
136534
136543
|
exports.LOADABLE_STATS_FILE = "loadable-stats.json";
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20230209112307",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"@types/node": "^14",
|
|
27
27
|
"jest": "^27",
|
|
28
28
|
"typescript": "^4",
|
|
29
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
30
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
31
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
33
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
34
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
35
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
36
|
-
"@modern-js/utils": "0.0.0-next-
|
|
37
|
-
"@scripts/build": "0.0.0-next-
|
|
38
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
29
|
+
"@modern-js/base-generator": "0.0.0-next-20230209112307",
|
|
30
|
+
"@modern-js/generator-common": "0.0.0-next-20230209112307",
|
|
31
|
+
"@modern-js/generator-plugin": "0.0.0-next-20230209112307",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-20230209112307",
|
|
33
|
+
"@modern-js/module-generator": "0.0.0-next-20230209112307",
|
|
34
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20230209112307",
|
|
35
|
+
"@modern-js/mwa-generator": "0.0.0-next-20230209112307",
|
|
36
|
+
"@modern-js/utils": "0.0.0-next-20230209112307",
|
|
37
|
+
"@scripts/build": "0.0.0-next-20230209112307",
|
|
38
|
+
"@scripts/jest-config": "0.0.0-next-20230209112307"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|