@modern-js/utils 2.4.1-beta.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -1
- package/dist/FileSizeReporter.d.ts +5 -5
- package/dist/FileSizeReporter.js +143 -136
- package/dist/alias.d.ts +14 -12
- package/dist/alias.js +94 -54
- package/dist/analyzeProject.d.ts +1 -1
- package/dist/analyzeProject.js +58 -33
- package/dist/applyOptionsChain.d.ts +1 -1
- package/dist/applyOptionsChain.js +55 -27
- package/dist/chainId.d.ts +256 -184
- package/dist/chainId.js +132 -187
- package/dist/clearConsole.d.ts +1 -1
- package/dist/clearConsole.js +29 -7
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +33 -10
- package/dist/compatRequire.d.ts +3 -3
- package/dist/compatRequire.js +74 -38
- package/dist/compiled.d.ts +2 -1
- package/dist/compiled.js +137 -72
- package/dist/constants.d.ts +127 -105
- package/dist/constants.js +298 -281
- package/dist/debug.d.ts +1 -1
- package/dist/debug.js +28 -11
- package/dist/emptyDir.d.ts +1 -1
- package/dist/emptyDir.js +51 -9
- package/dist/ensureAbsolutePath.d.ts +1 -1
- package/dist/ensureAbsolutePath.js +33 -14
- package/dist/ensureArray.d.ts +1 -1
- package/dist/ensureArray.js +30 -8
- package/dist/findExists.d.ts +1 -1
- package/dist/findExists.js +37 -17
- package/dist/format.d.ts +3 -3
- package/dist/format.js +93 -81
- package/dist/generateMetaTags.d.ts +3 -3
- package/dist/generateMetaTags.js +56 -43
- package/dist/getBrowserslist.d.ts +1 -1
- package/dist/getBrowserslist.js +31 -7
- package/dist/getCoreJsVersion.d.ts +1 -1
- package/dist/getCoreJsVersion.js +39 -35
- package/dist/getEntryOptions.d.ts +1 -1
- package/dist/getEntryOptions.js +51 -24
- package/dist/getPackageManager.d.ts +1 -1
- package/dist/getPackageManager.js +75 -28
- package/dist/getPort.d.ts +7 -4
- package/dist/getPort.js +104 -58
- package/dist/getServerConfig.d.ts +1 -1
- package/dist/getServerConfig.js +61 -32
- package/dist/import.d.ts +2 -2
- package/dist/import.js +31 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +59 -59
- package/dist/is/index.d.ts +5 -1
- package/dist/is/index.js +81 -94
- package/dist/is/node-env.d.ts +1 -1
- package/dist/is/node-env.js +39 -17
- package/dist/is/platform.d.ts +1 -1
- package/dist/is/platform.js +30 -10
- package/dist/is/type.d.ts +1 -1
- package/dist/is/type.js +48 -22
- package/dist/logger.d.ts +48 -48
- package/dist/logger.js +127 -95
- package/dist/monorepo.d.ts +3 -3
- package/dist/monorepo.js +117 -74
- package/dist/nodeEnv.d.ts +1 -1
- package/dist/nodeEnv.js +72 -25
- package/dist/path.d.ts +3 -1
- package/dist/path.js +76 -59
- package/dist/pathSerializer.d.ts +6 -6
- package/dist/pathSerializer.js +65 -43
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +45 -26
- package/dist/prettyInstructions.d.ts +4 -4
- package/dist/prettyInstructions.js +107 -65
- package/dist/printBuildError.d.ts +1 -1
- package/dist/printBuildError.js +54 -40
- package/dist/react.d.ts +1 -1
- package/dist/react.js +57 -21
- package/dist/readTsConfig.d.ts +1 -1
- package/dist/readTsConfig.js +38 -12
- package/dist/removeSlash.d.ts +1 -1
- package/dist/removeSlash.js +33 -9
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +49 -22
- package/dist/runtimeExports.d.ts +3 -3
- package/dist/runtimeExports.js +59 -39
- package/dist/ssr.d.ts +2 -1
- package/dist/ssr.js +30 -7
- package/dist/storage.d.ts +3 -3
- package/dist/storage.js +65 -59
- package/dist/test-utils.d.ts +1 -1
- package/dist/test-utils.js +30 -24
- package/dist/tryResolve.d.ts +2 -1
- package/dist/tryResolve.js +45 -33
- package/dist/types.d.ts +1 -1
- package/dist/types.js +15 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +83 -24
- package/dist/wait.d.ts +1 -1
- package/dist/wait.js +28 -6
- package/dist/watch.d.ts +3 -3
- package/dist/watch.js +82 -55
- package/package.json +7 -8
package/dist/compiled.js
CHANGED
@@ -1,73 +1,138 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
4
10
|
};
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
var
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
var
|
57
|
-
|
58
|
-
var
|
59
|
-
|
60
|
-
var
|
61
|
-
|
62
|
-
var
|
63
|
-
|
64
|
-
|
65
|
-
var
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
24
|
+
var compiled_exports = {};
|
25
|
+
__export(compiled_exports, {
|
26
|
+
Command: () => import_commander.Command,
|
27
|
+
Signale: () => import_signale2.Signale,
|
28
|
+
address: () => import_address.default,
|
29
|
+
browserslist: () => import_browserslist.default,
|
30
|
+
chalk: () => import_chalk.default,
|
31
|
+
chokidar: () => chokidar,
|
32
|
+
debug: () => import_debug.default,
|
33
|
+
dotenv: () => import_dotenv.default,
|
34
|
+
dotenvExpand: () => import_dotenv_expand.default,
|
35
|
+
execa: () => import_execa.default,
|
36
|
+
fastGlob: () => import_fast_glob.default,
|
37
|
+
filesize: () => import_filesize.default,
|
38
|
+
fs: () => import_fs_extra.default,
|
39
|
+
glob: () => import_glob.default,
|
40
|
+
globby: () => import_globby.default,
|
41
|
+
gzipSize: () => import_gzip_size.default,
|
42
|
+
inquirer: () => inquirer,
|
43
|
+
json5: () => import_json5.default,
|
44
|
+
lodash: () => import_lodash.default,
|
45
|
+
mime: () => mime,
|
46
|
+
minimist: () => import_minimist.default,
|
47
|
+
nanoid: () => import_nanoid.nanoid,
|
48
|
+
ora: () => import_ora.default,
|
49
|
+
pkgUp: () => import_pkg_up.default,
|
50
|
+
program: () => import_commander.program,
|
51
|
+
recursiveReaddir: () => import_recursive_readdir.default,
|
52
|
+
semver: () => import_semver.default,
|
53
|
+
signale: () => import_signale.default,
|
54
|
+
slash: () => import_slash.default,
|
55
|
+
stripAnsi: () => import_strip_ansi.default,
|
56
|
+
upath: () => import_upath.default,
|
57
|
+
urlJoin: () => import_url_join.default,
|
58
|
+
yaml: () => import_js_yaml.default
|
59
|
+
});
|
60
|
+
module.exports = __toCommonJS(compiled_exports);
|
61
|
+
var import_import = require("./import");
|
62
|
+
var import_fs_extra = __toESM(require("../compiled/fs-extra"));
|
63
|
+
var import_ora = __toESM(require("../compiled/ora"));
|
64
|
+
var import_glob = __toESM(require("../compiled/glob"));
|
65
|
+
var import_js_yaml = __toESM(require("../compiled/js-yaml"));
|
66
|
+
var import_chalk = __toESM(require("../compiled/chalk"));
|
67
|
+
var import_debug = __toESM(require("../compiled/debug"));
|
68
|
+
var import_slash = __toESM(require("../compiled/slash"));
|
69
|
+
var import_execa = __toESM(require("../compiled/execa"));
|
70
|
+
var import_json5 = __toESM(require("../compiled/json5"));
|
71
|
+
var import_upath = __toESM(require("../compiled/upath"));
|
72
|
+
var import_pkg_up = __toESM(require("../compiled/pkg-up"));
|
73
|
+
var import_nanoid = require("../compiled/nanoid");
|
74
|
+
var import_semver = __toESM(require("../compiled/semver"));
|
75
|
+
var import_dotenv = __toESM(require("../compiled/dotenv"));
|
76
|
+
var import_lodash = __toESM(require("../compiled/lodash"));
|
77
|
+
var import_globby = __toESM(require("../compiled/globby"));
|
78
|
+
var import_address = __toESM(require("../compiled/address"));
|
79
|
+
var import_signale = __toESM(require("../compiled/signale"));
|
80
|
+
var import_url_join = __toESM(require("../compiled/url-join"));
|
81
|
+
var import_minimist = __toESM(require("../compiled/minimist"));
|
82
|
+
var import_fast_glob = __toESM(require("../compiled/fast-glob"));
|
83
|
+
var import_filesize = __toESM(require("../compiled/filesize"));
|
84
|
+
var import_gzip_size = __toESM(require("../compiled/gzip-size"));
|
85
|
+
var import_strip_ansi = __toESM(require("../compiled/strip-ansi"));
|
86
|
+
var import_dotenv_expand = __toESM(require("../compiled/dotenv-expand"));
|
87
|
+
var import_browserslist = __toESM(require("../compiled/browserslist"));
|
88
|
+
var import_recursive_readdir = __toESM(require("../compiled/recursive-readdir"));
|
89
|
+
var import_commander = require("../compiled/commander");
|
90
|
+
var import_signale2 = require("../compiled/signale");
|
91
|
+
const mime = import_import.Import.lazy(
|
92
|
+
"../compiled/mime-types",
|
93
|
+
require
|
94
|
+
);
|
95
|
+
const chokidar = import_import.Import.lazy(
|
96
|
+
"../compiled/chokidar",
|
97
|
+
require
|
98
|
+
);
|
99
|
+
const inquirer = import_import.Import.lazy(
|
100
|
+
"../compiled/inquirer",
|
101
|
+
require
|
102
|
+
);
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
104
|
+
0 && (module.exports = {
|
105
|
+
Command,
|
106
|
+
Signale,
|
107
|
+
address,
|
108
|
+
browserslist,
|
109
|
+
chalk,
|
110
|
+
chokidar,
|
111
|
+
debug,
|
112
|
+
dotenv,
|
113
|
+
dotenvExpand,
|
114
|
+
execa,
|
115
|
+
fastGlob,
|
116
|
+
filesize,
|
117
|
+
fs,
|
118
|
+
glob,
|
119
|
+
globby,
|
120
|
+
gzipSize,
|
121
|
+
inquirer,
|
122
|
+
json5,
|
123
|
+
lodash,
|
124
|
+
mime,
|
125
|
+
minimist,
|
126
|
+
nanoid,
|
127
|
+
ora,
|
128
|
+
pkgUp,
|
129
|
+
program,
|
130
|
+
recursiveReaddir,
|
131
|
+
semver,
|
132
|
+
signale,
|
133
|
+
slash,
|
134
|
+
stripAnsi,
|
135
|
+
upath,
|
136
|
+
urlJoin,
|
137
|
+
yaml
|
138
|
+
});
|
package/dist/constants.d.ts
CHANGED
@@ -2,90 +2,111 @@ import { InternalPlugins } from '@modern-js/types';
|
|
2
2
|
/**
|
3
3
|
* hmr socket connect path
|
4
4
|
*/
|
5
|
+
|
5
6
|
export declare const HMR_SOCK_PATH = "/webpack-hmr";
|
6
7
|
/**
|
7
8
|
* route specification file
|
8
9
|
*/
|
10
|
+
|
9
11
|
export declare const ROUTE_SPEC_FILE = "route.json";
|
10
12
|
/**
|
11
13
|
* main entry name
|
12
14
|
*/
|
15
|
+
|
13
16
|
export declare const MAIN_ENTRY_NAME = "main";
|
14
17
|
/**
|
15
18
|
* open editor request path
|
16
19
|
*/
|
20
|
+
|
17
21
|
export declare const LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
|
18
22
|
/**
|
19
23
|
* server side bundles directory, which relative to dist.
|
20
24
|
*/
|
25
|
+
|
21
26
|
export declare const SERVER_BUNDLE_DIRECTORY = "bundles";
|
22
27
|
/**
|
23
28
|
* server side bundles directory, which relative to dist.
|
24
29
|
*/
|
30
|
+
|
25
31
|
export declare const SERVER_WORKER_BUNDLE_DIRECTORY = "worker";
|
26
32
|
/**
|
27
33
|
* entry name pattern used for ajv pattern properties.
|
28
34
|
*/
|
35
|
+
|
29
36
|
export declare const ENTRY_NAME_PATTERN = "^[a-zA-Z0-9_-]+$";
|
30
37
|
/**
|
31
38
|
* SSR server render function name
|
32
39
|
*/
|
40
|
+
|
33
41
|
export declare const SERVER_RENDER_FUNCTION_NAME = "serverRender";
|
34
42
|
/**
|
35
43
|
* loadbale manifest json file
|
36
44
|
*/
|
45
|
+
|
37
46
|
export declare const LOADABLE_STATS_FILE = "loadable-stats.json";
|
38
47
|
/**
|
39
48
|
* internal specified folder
|
40
49
|
*/
|
50
|
+
|
41
51
|
export declare const API_DIR = "api";
|
42
52
|
export declare const SERVER_DIR = "server";
|
43
53
|
export declare const SHARED_DIR = "shared";
|
44
54
|
/**
|
45
55
|
* Modern.config.ts cached dir
|
46
56
|
*/
|
57
|
+
|
47
58
|
export declare const CONFIG_CACHE_DIR = "./node_modules/.cache/node-bundle-require";
|
48
59
|
export declare const CONFIG_FILE_EXTENSIONS: string[];
|
49
60
|
/**
|
50
61
|
* Serialized config path
|
51
62
|
*/
|
63
|
+
|
52
64
|
export declare const OUTPUT_CONFIG_FILE = "modern.config.json";
|
53
65
|
/**
|
54
66
|
* Default server config basename
|
55
67
|
*/
|
68
|
+
|
56
69
|
export declare const DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
|
57
70
|
/**
|
58
71
|
* Routes manifest filename
|
59
72
|
*/
|
73
|
+
|
60
74
|
export declare const ROUTE_MINIFEST_FILE = "routes-manifest.json";
|
61
75
|
/**
|
62
76
|
* Property mounted on window that describes route manifest
|
63
77
|
*/
|
78
|
+
|
64
79
|
export declare const ROUTE_MANIFEST = "_MODERNJS_ROUTE_MANIFEST";
|
65
80
|
/**
|
66
81
|
* directory name for loader routes
|
67
82
|
*/
|
83
|
+
|
68
84
|
export declare const LOADER_ROUTES_DIR = "loader-routes";
|
69
85
|
/**
|
70
86
|
* Internal app-tools plugins that work as soon as they are installed.
|
71
87
|
*/
|
88
|
+
|
72
89
|
export declare const INTERNAL_APP_TOOLS_PLUGINS: InternalPlugins;
|
73
90
|
export declare const INTERNAL_APP_TOOLS_RUNTIME_PLUGINS: InternalPlugins;
|
74
91
|
/**
|
75
92
|
* Internal module-tools plugins that work as soon as they are installed.
|
76
93
|
*/
|
94
|
+
|
77
95
|
export declare const INTERNAL_MODULE_TOOLS_PLUGINS: InternalPlugins;
|
78
96
|
/**
|
79
97
|
* Internal monorepo-tools plugins that work as soon as they are installed.
|
80
98
|
*/
|
99
|
+
|
81
100
|
export declare const INTERNAL_MONOREPO_TOOLS_PLUGINS: InternalPlugins;
|
82
101
|
/**
|
83
102
|
* Internal doc-tools plugins that work as soon as they are installed.
|
84
103
|
*/
|
104
|
+
|
85
105
|
export declare const INTERNAL_DOC_TOOLS_PLUGINS: InternalPlugins;
|
86
106
|
/**
|
87
107
|
* Internal plugins that work as soon as they are installed.
|
88
108
|
*/
|
109
|
+
|
89
110
|
export declare const INTERNAL_CLI_PLUGINS: InternalPlugins;
|
90
111
|
export declare const SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
|
91
112
|
export declare const SERVER_PLUGIN_EXPRESS = "@modern-js/plugin-express";
|
@@ -98,115 +119,116 @@ export declare const INTERNAL_SERVER_PLUGINS: InternalPlugins;
|
|
98
119
|
/**
|
99
120
|
* The schema registered in the plugin.
|
100
121
|
*/
|
122
|
+
|
101
123
|
export declare const PLUGIN_SCHEMAS: {
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
124
|
+
'@modern-js/runtime': ({
|
125
|
+
target: string;
|
126
|
+
schema: {
|
127
|
+
type: string;
|
128
|
+
additionalProperties: boolean;
|
129
|
+
patternProperties?: undefined;
|
130
|
+
};
|
131
|
+
} | {
|
132
|
+
target: string;
|
133
|
+
schema: {
|
134
|
+
type: string;
|
135
|
+
patternProperties: {
|
136
|
+
"^[a-zA-Z0-9_-]+$": {
|
137
|
+
type: string;
|
108
138
|
};
|
109
|
-
|
110
|
-
|
111
|
-
|
139
|
+
};
|
140
|
+
additionalProperties: boolean;
|
141
|
+
};
|
142
|
+
})[];
|
143
|
+
'@modern-js/plugin-swc': {
|
144
|
+
target: string;
|
145
|
+
schema: {
|
146
|
+
typeof: string[];
|
147
|
+
};
|
148
|
+
}[];
|
149
|
+
'@modern-js/plugin-bff': {
|
150
|
+
target: string;
|
151
|
+
schema: {
|
152
|
+
type: string;
|
153
|
+
properties: {
|
154
|
+
prefix: {
|
155
|
+
type: string[];
|
156
|
+
items: {
|
112
157
|
type: string;
|
113
|
-
|
114
|
-
"^[a-zA-Z0-9_-]+$": {
|
115
|
-
type: string;
|
116
|
-
};
|
117
|
-
};
|
118
|
-
additionalProperties: boolean;
|
119
|
-
};
|
120
|
-
})[];
|
121
|
-
'@modern-js/plugin-swc': {
|
122
|
-
target: string;
|
123
|
-
schema: {
|
124
|
-
typeof: string[];
|
125
|
-
};
|
126
|
-
}[];
|
127
|
-
'@modern-js/plugin-bff': {
|
128
|
-
target: string;
|
129
|
-
schema: {
|
130
|
-
type: string;
|
131
|
-
properties: {
|
132
|
-
prefix: {
|
133
|
-
type: string[];
|
134
|
-
items: {
|
135
|
-
type: string;
|
136
|
-
};
|
137
|
-
};
|
138
|
-
fetcher: {
|
139
|
-
type: string;
|
140
|
-
};
|
141
|
-
proxy: {
|
142
|
-
type: string;
|
143
|
-
};
|
144
|
-
requestCreator: {
|
145
|
-
type: string;
|
146
|
-
};
|
147
|
-
};
|
148
|
-
};
|
149
|
-
}[];
|
150
|
-
'@modern-js/plugin-tailwindcss': {
|
151
|
-
target: string;
|
152
|
-
schema: {
|
153
|
-
typeof: string[];
|
154
|
-
};
|
155
|
-
}[];
|
156
|
-
'@modern-js/plugin-proxy': {
|
157
|
-
target: string;
|
158
|
-
schema: {
|
159
|
-
typeof: string[];
|
160
|
-
};
|
161
|
-
}[];
|
162
|
-
'@modern-js/plugin-ssg': {
|
163
|
-
target: string;
|
164
|
-
schema: {
|
165
|
-
oneOf: ({
|
166
|
-
type: string;
|
167
|
-
instanceof?: undefined;
|
168
|
-
} | {
|
169
|
-
instanceof: string;
|
170
|
-
type?: undefined;
|
171
|
-
})[];
|
172
|
-
};
|
173
|
-
}[];
|
174
|
-
'@modern-js/plugin-state': {
|
175
|
-
target: string;
|
176
|
-
schema: {
|
177
|
-
type: string[];
|
178
|
-
};
|
179
|
-
}[];
|
180
|
-
'@modern-js/plugin-design-token': ({
|
181
|
-
target: string;
|
182
|
-
schema: {
|
183
|
-
typeof: string[];
|
184
|
-
type?: undefined;
|
185
|
-
};
|
186
|
-
} | {
|
187
|
-
target: string;
|
188
|
-
schema: {
|
189
|
-
type: string[];
|
190
|
-
typeof?: undefined;
|
158
|
+
};
|
191
159
|
};
|
192
|
-
|
193
|
-
|
194
|
-
target: string;
|
195
|
-
schema: {
|
196
|
-
type: string[];
|
160
|
+
fetcher: {
|
161
|
+
type: string;
|
197
162
|
};
|
198
|
-
|
199
|
-
|
200
|
-
target: string;
|
201
|
-
schema: {
|
202
|
-
typeof: string[];
|
163
|
+
proxy: {
|
164
|
+
type: string;
|
203
165
|
};
|
204
|
-
|
205
|
-
|
206
|
-
target: string;
|
207
|
-
schema: {
|
208
|
-
type: string[];
|
166
|
+
requestCreator: {
|
167
|
+
type: string;
|
209
168
|
};
|
210
|
-
|
211
|
-
|
212
|
-
};
|
169
|
+
};
|
170
|
+
};
|
171
|
+
}[];
|
172
|
+
'@modern-js/plugin-tailwindcss': {
|
173
|
+
target: string;
|
174
|
+
schema: {
|
175
|
+
typeof: string[];
|
176
|
+
};
|
177
|
+
}[];
|
178
|
+
'@modern-js/plugin-proxy': {
|
179
|
+
target: string;
|
180
|
+
schema: {
|
181
|
+
typeof: string[];
|
182
|
+
};
|
183
|
+
}[];
|
184
|
+
'@modern-js/plugin-ssg': {
|
185
|
+
target: string;
|
186
|
+
schema: {
|
187
|
+
oneOf: ({
|
188
|
+
type: string;
|
189
|
+
instanceof?: undefined;
|
190
|
+
} | {
|
191
|
+
instanceof: string;
|
192
|
+
type?: undefined;
|
193
|
+
})[];
|
194
|
+
};
|
195
|
+
}[];
|
196
|
+
'@modern-js/plugin-state': {
|
197
|
+
target: string;
|
198
|
+
schema: {
|
199
|
+
type: string[];
|
200
|
+
};
|
201
|
+
}[];
|
202
|
+
'@modern-js/plugin-design-token': ({
|
203
|
+
target: string;
|
204
|
+
schema: {
|
205
|
+
typeof: string[];
|
206
|
+
type?: undefined;
|
207
|
+
};
|
208
|
+
} | {
|
209
|
+
target: string;
|
210
|
+
schema: {
|
211
|
+
type: string[];
|
212
|
+
typeof?: undefined;
|
213
|
+
};
|
214
|
+
})[];
|
215
|
+
'@modern-js/plugin-router': {
|
216
|
+
target: string;
|
217
|
+
schema: {
|
218
|
+
type: string[];
|
219
|
+
};
|
220
|
+
}[];
|
221
|
+
'@modern-js/plugin-testing': {
|
222
|
+
target: string;
|
223
|
+
schema: {
|
224
|
+
typeof: string[];
|
225
|
+
};
|
226
|
+
}[];
|
227
|
+
'@modern-js/plugin-garfish': {
|
228
|
+
target: string;
|
229
|
+
schema: {
|
230
|
+
type: string[];
|
231
|
+
};
|
232
|
+
}[];
|
233
|
+
'@modern-js/plugin-nocode': never[];
|
234
|
+
};
|