@lynx-js/config-rsbuild-plugin-canary 0.0.0 → 0.0.1
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/CHANGELOG.md +23 -0
- package/README.md +42 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.js +1641 -0
- package/dist/index.js.LICENSE.txt +13 -0
- package/dist/rslib-runtime.js +38 -0
- package/package.json +57 -4
- package/LICENSE +0 -202
- package/index.js +0 -1
- package/selfIdentity.plist +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1641 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
import * as __rspack_external_os from "os";
|
|
3
|
+
import * as __rspack_external_tty from "tty";
|
|
4
|
+
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
5
|
+
import node_process from "node:process";
|
|
6
|
+
import { compilerOptionsKeys as type_config_compilerOptionsKeys, configKeys as type_config_configKeys } from "@lynx-js/type-config";
|
|
7
|
+
__webpack_require__.add({
|
|
8
|
+
"../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js" (module) {
|
|
9
|
+
module.exports = (flag, argv = process.argv)=>{
|
|
10
|
+
const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
|
|
11
|
+
const position = argv.indexOf(prefix + flag);
|
|
12
|
+
const terminatorPosition = argv.indexOf('--');
|
|
13
|
+
return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
"../../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js" (module) {
|
|
17
|
+
/*!
|
|
18
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
21
|
+
* Released under the MIT License.
|
|
22
|
+
*/ module.exports = function(val) {
|
|
23
|
+
return null != val && 'object' == typeof val && false === Array.isArray(val);
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
"../../../node_modules/.pnpm/object.pick@1.3.0/node_modules/object.pick/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
27
|
+
/*!
|
|
28
|
+
* object.pick <https://github.com/jonschlinkert/object.pick>
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) 2014-2015 Jon Schlinkert, contributors.
|
|
31
|
+
* Licensed under the MIT License
|
|
32
|
+
*/ var isObject = __webpack_require__("../../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js");
|
|
33
|
+
module.exports = function(obj, keys) {
|
|
34
|
+
if (!isObject(obj) && 'function' != typeof obj) return {};
|
|
35
|
+
var res = {};
|
|
36
|
+
if ('string' == typeof keys) {
|
|
37
|
+
if (keys in obj) res[keys] = obj[keys];
|
|
38
|
+
return res;
|
|
39
|
+
}
|
|
40
|
+
var len = keys.length;
|
|
41
|
+
var idx = -1;
|
|
42
|
+
while(++idx < len){
|
|
43
|
+
var key = keys[idx];
|
|
44
|
+
if (key in obj) res[key] = obj[key];
|
|
45
|
+
}
|
|
46
|
+
return res;
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
|
|
50
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
51
|
+
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || "win32" === p.platform || (p.stdout || {}).isTTY && "dumb" !== env.TERM || !!env.CI);
|
|
52
|
+
let formatter = (open, close, replace = open)=>(input)=>{
|
|
53
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
54
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
55
|
+
};
|
|
56
|
+
let replaceClose = (string, close, replace, index)=>{
|
|
57
|
+
let result = "", cursor = 0;
|
|
58
|
+
do {
|
|
59
|
+
result += string.substring(cursor, index) + replace;
|
|
60
|
+
cursor = index + close.length;
|
|
61
|
+
index = string.indexOf(close, cursor);
|
|
62
|
+
}while (~index);
|
|
63
|
+
return result + string.substring(cursor);
|
|
64
|
+
};
|
|
65
|
+
let createColors = (enabled = isColorSupported)=>{
|
|
66
|
+
let f = enabled ? formatter : ()=>String;
|
|
67
|
+
return {
|
|
68
|
+
isColorSupported: enabled,
|
|
69
|
+
reset: f("\x1b[0m", "\x1b[0m"),
|
|
70
|
+
bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
|
|
71
|
+
dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
|
|
72
|
+
italic: f("\x1b[3m", "\x1b[23m"),
|
|
73
|
+
underline: f("\x1b[4m", "\x1b[24m"),
|
|
74
|
+
inverse: f("\x1b[7m", "\x1b[27m"),
|
|
75
|
+
hidden: f("\x1b[8m", "\x1b[28m"),
|
|
76
|
+
strikethrough: f("\x1b[9m", "\x1b[29m"),
|
|
77
|
+
black: f("\x1b[30m", "\x1b[39m"),
|
|
78
|
+
red: f("\x1b[31m", "\x1b[39m"),
|
|
79
|
+
green: f("\x1b[32m", "\x1b[39m"),
|
|
80
|
+
yellow: f("\x1b[33m", "\x1b[39m"),
|
|
81
|
+
blue: f("\x1b[34m", "\x1b[39m"),
|
|
82
|
+
magenta: f("\x1b[35m", "\x1b[39m"),
|
|
83
|
+
cyan: f("\x1b[36m", "\x1b[39m"),
|
|
84
|
+
white: f("\x1b[37m", "\x1b[39m"),
|
|
85
|
+
gray: f("\x1b[90m", "\x1b[39m"),
|
|
86
|
+
bgBlack: f("\x1b[40m", "\x1b[49m"),
|
|
87
|
+
bgRed: f("\x1b[41m", "\x1b[49m"),
|
|
88
|
+
bgGreen: f("\x1b[42m", "\x1b[49m"),
|
|
89
|
+
bgYellow: f("\x1b[43m", "\x1b[49m"),
|
|
90
|
+
bgBlue: f("\x1b[44m", "\x1b[49m"),
|
|
91
|
+
bgMagenta: f("\x1b[45m", "\x1b[49m"),
|
|
92
|
+
bgCyan: f("\x1b[46m", "\x1b[49m"),
|
|
93
|
+
bgWhite: f("\x1b[47m", "\x1b[49m"),
|
|
94
|
+
blackBright: f("\x1b[90m", "\x1b[39m"),
|
|
95
|
+
redBright: f("\x1b[91m", "\x1b[39m"),
|
|
96
|
+
greenBright: f("\x1b[92m", "\x1b[39m"),
|
|
97
|
+
yellowBright: f("\x1b[93m", "\x1b[39m"),
|
|
98
|
+
blueBright: f("\x1b[94m", "\x1b[39m"),
|
|
99
|
+
magentaBright: f("\x1b[95m", "\x1b[39m"),
|
|
100
|
+
cyanBright: f("\x1b[96m", "\x1b[39m"),
|
|
101
|
+
whiteBright: f("\x1b[97m", "\x1b[39m"),
|
|
102
|
+
bgBlackBright: f("\x1b[100m", "\x1b[49m"),
|
|
103
|
+
bgRedBright: f("\x1b[101m", "\x1b[49m"),
|
|
104
|
+
bgGreenBright: f("\x1b[102m", "\x1b[49m"),
|
|
105
|
+
bgYellowBright: f("\x1b[103m", "\x1b[49m"),
|
|
106
|
+
bgBlueBright: f("\x1b[104m", "\x1b[49m"),
|
|
107
|
+
bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
|
|
108
|
+
bgCyanBright: f("\x1b[106m", "\x1b[49m"),
|
|
109
|
+
bgWhiteBright: f("\x1b[107m", "\x1b[49m")
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
module.exports = createColors();
|
|
113
|
+
module.exports.createColors = createColors;
|
|
114
|
+
},
|
|
115
|
+
"../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
116
|
+
const os = __webpack_require__("os");
|
|
117
|
+
const tty = __webpack_require__("tty");
|
|
118
|
+
const hasFlag = __webpack_require__("../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js");
|
|
119
|
+
const { env } = process;
|
|
120
|
+
let forceColor;
|
|
121
|
+
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) forceColor = 0;
|
|
122
|
+
else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) forceColor = 1;
|
|
123
|
+
if ('FORCE_COLOR' in env) forceColor = 'true' === env.FORCE_COLOR ? 1 : 'false' === env.FORCE_COLOR ? 0 : 0 === env.FORCE_COLOR.length ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
124
|
+
function translateLevel(level) {
|
|
125
|
+
if (0 === level) return false;
|
|
126
|
+
return {
|
|
127
|
+
level,
|
|
128
|
+
hasBasic: true,
|
|
129
|
+
has256: level >= 2,
|
|
130
|
+
has16m: level >= 3
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
134
|
+
if (0 === forceColor) return 0;
|
|
135
|
+
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) return 3;
|
|
136
|
+
if (hasFlag('color=256')) return 2;
|
|
137
|
+
if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
|
|
138
|
+
const min = forceColor || 0;
|
|
139
|
+
if ('dumb' === env.TERM) return min;
|
|
140
|
+
if ('win32' === process.platform) {
|
|
141
|
+
const osRelease = os.release().split('.');
|
|
142
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
143
|
+
return 1;
|
|
144
|
+
}
|
|
145
|
+
if ('CI' in env) {
|
|
146
|
+
if ([
|
|
147
|
+
'TRAVIS',
|
|
148
|
+
'CIRCLECI',
|
|
149
|
+
'APPVEYOR',
|
|
150
|
+
'GITLAB_CI',
|
|
151
|
+
'GITHUB_ACTIONS',
|
|
152
|
+
'BUILDKITE'
|
|
153
|
+
].some((sign)=>sign in env) || 'codeship' === env.CI_NAME) return 1;
|
|
154
|
+
return min;
|
|
155
|
+
}
|
|
156
|
+
if ('TEAMCITY_VERSION' in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
157
|
+
if ('truecolor' === env.COLORTERM) return 3;
|
|
158
|
+
if ('TERM_PROGRAM' in env) {
|
|
159
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
160
|
+
switch(env.TERM_PROGRAM){
|
|
161
|
+
case 'iTerm.app':
|
|
162
|
+
return version >= 3 ? 3 : 2;
|
|
163
|
+
case 'Apple_Terminal':
|
|
164
|
+
return 2;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
168
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
169
|
+
if ('COLORTERM' in env) return 1;
|
|
170
|
+
return min;
|
|
171
|
+
}
|
|
172
|
+
function getSupportLevel(stream) {
|
|
173
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
174
|
+
return translateLevel(level);
|
|
175
|
+
}
|
|
176
|
+
module.exports = {
|
|
177
|
+
supportsColor: getSupportLevel,
|
|
178
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
179
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
"../../../node_modules/.pnpm/supports-hyperlinks@3.2.0/node_modules/supports-hyperlinks/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
183
|
+
const supportsColor = __webpack_require__("../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js");
|
|
184
|
+
const hasFlag = __webpack_require__("../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js");
|
|
185
|
+
function parseVersion(versionString) {
|
|
186
|
+
if (/^\d{3,4}$/.test(versionString)) {
|
|
187
|
+
const m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
|
|
188
|
+
return {
|
|
189
|
+
major: 0,
|
|
190
|
+
minor: parseInt(m[1], 10),
|
|
191
|
+
patch: parseInt(m[2], 10)
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const versions = (versionString || '').split('.').map((n)=>parseInt(n, 10));
|
|
195
|
+
return {
|
|
196
|
+
major: versions[0],
|
|
197
|
+
minor: versions[1],
|
|
198
|
+
patch: versions[2]
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function supportsHyperlink(stream) {
|
|
202
|
+
const { CI, FORCE_HYPERLINK, NETLIFY, TEAMCITY_VERSION, TERM_PROGRAM, TERM_PROGRAM_VERSION, VTE_VERSION, TERM } = process.env;
|
|
203
|
+
if (FORCE_HYPERLINK) return !(FORCE_HYPERLINK.length > 0 && 0 === parseInt(FORCE_HYPERLINK, 10));
|
|
204
|
+
if (hasFlag('no-hyperlink') || hasFlag('no-hyperlinks') || hasFlag('hyperlink=false') || hasFlag('hyperlink=never')) return false;
|
|
205
|
+
if (hasFlag('hyperlink=true') || hasFlag('hyperlink=always')) return true;
|
|
206
|
+
if (NETLIFY) return true;
|
|
207
|
+
if (!supportsColor.supportsColor(stream)) return false;
|
|
208
|
+
if (stream && !stream.isTTY) return false;
|
|
209
|
+
if ('WT_SESSION' in process.env) return true;
|
|
210
|
+
if ('win32' === process.platform) return false;
|
|
211
|
+
if (CI) return false;
|
|
212
|
+
if (TEAMCITY_VERSION) return false;
|
|
213
|
+
if (TERM_PROGRAM) {
|
|
214
|
+
const version = parseVersion(TERM_PROGRAM_VERSION || '');
|
|
215
|
+
switch(TERM_PROGRAM){
|
|
216
|
+
case 'iTerm.app':
|
|
217
|
+
if (3 === version.major) return version.minor >= 1;
|
|
218
|
+
return version.major > 3;
|
|
219
|
+
case 'WezTerm':
|
|
220
|
+
return version.major >= 20200620;
|
|
221
|
+
case 'vscode':
|
|
222
|
+
return version.major > 1 || 1 === version.major && version.minor >= 72;
|
|
223
|
+
case 'ghostty':
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (VTE_VERSION) {
|
|
228
|
+
if ('0.50.0' === VTE_VERSION) return false;
|
|
229
|
+
const version = parseVersion(VTE_VERSION);
|
|
230
|
+
return version.major > 0 || version.minor >= 50;
|
|
231
|
+
}
|
|
232
|
+
switch(TERM){
|
|
233
|
+
case 'alacritty':
|
|
234
|
+
return true;
|
|
235
|
+
}
|
|
236
|
+
return false;
|
|
237
|
+
}
|
|
238
|
+
module.exports = {
|
|
239
|
+
supportsHyperlink,
|
|
240
|
+
stdout: supportsHyperlink(process.stdout),
|
|
241
|
+
stderr: supportsHyperlink(process.stderr)
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
"../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_accessExpressionAsString.js" (__unused_rspack_module, exports) {
|
|
245
|
+
exports._accessExpressionAsString = void 0;
|
|
246
|
+
const _accessExpressionAsString = (str)=>variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
247
|
+
exports._accessExpressionAsString = _accessExpressionAsString;
|
|
248
|
+
const variable = (str)=>false === reserved(str) && /^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(str);
|
|
249
|
+
const reserved = (str)=>RESERVED.has(str);
|
|
250
|
+
const RESERVED = new Set([
|
|
251
|
+
"break",
|
|
252
|
+
"case",
|
|
253
|
+
"catch",
|
|
254
|
+
"class",
|
|
255
|
+
"const",
|
|
256
|
+
"continue",
|
|
257
|
+
"debugger",
|
|
258
|
+
"default",
|
|
259
|
+
"delete",
|
|
260
|
+
"do",
|
|
261
|
+
"else",
|
|
262
|
+
"enum",
|
|
263
|
+
"export",
|
|
264
|
+
"extends",
|
|
265
|
+
"false",
|
|
266
|
+
"finally",
|
|
267
|
+
"for",
|
|
268
|
+
"function",
|
|
269
|
+
"if",
|
|
270
|
+
"import",
|
|
271
|
+
"in",
|
|
272
|
+
"instanceof",
|
|
273
|
+
"new",
|
|
274
|
+
"null",
|
|
275
|
+
"return",
|
|
276
|
+
"super",
|
|
277
|
+
"switch",
|
|
278
|
+
"this",
|
|
279
|
+
"throw",
|
|
280
|
+
"true",
|
|
281
|
+
"try",
|
|
282
|
+
"typeof",
|
|
283
|
+
"var",
|
|
284
|
+
"void",
|
|
285
|
+
"while",
|
|
286
|
+
"with"
|
|
287
|
+
]);
|
|
288
|
+
},
|
|
289
|
+
"../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_createStandardSchema.js" (__unused_rspack_module, exports) {
|
|
290
|
+
exports._createStandardSchema = void 0;
|
|
291
|
+
const _createStandardSchema = (fn)=>Object.assign(fn, {
|
|
292
|
+
"~standard": {
|
|
293
|
+
version: 1,
|
|
294
|
+
vendor: "typia",
|
|
295
|
+
validate: (input)=>{
|
|
296
|
+
const result = fn(input);
|
|
297
|
+
if (result.success) return {
|
|
298
|
+
value: result.data
|
|
299
|
+
};
|
|
300
|
+
return {
|
|
301
|
+
issues: result.errors.map((error)=>({
|
|
302
|
+
message: `expected ${error.expected}, got ${error.value}`,
|
|
303
|
+
path: typiaPathToStandardSchemaPath(error.path)
|
|
304
|
+
}))
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
exports._createStandardSchema = _createStandardSchema;
|
|
310
|
+
var PathParserState;
|
|
311
|
+
(function(PathParserState) {
|
|
312
|
+
PathParserState[PathParserState["Start"] = 0] = "Start";
|
|
313
|
+
PathParserState[PathParserState["Property"] = 1] = "Property";
|
|
314
|
+
PathParserState[PathParserState["StringKey"] = 2] = "StringKey";
|
|
315
|
+
PathParserState[PathParserState["NumberKey"] = 3] = "NumberKey";
|
|
316
|
+
})(PathParserState || (PathParserState = {}));
|
|
317
|
+
const typiaPathToStandardSchemaPath = (path)=>{
|
|
318
|
+
if (!path.startsWith("$input")) throw new Error(`Invalid path: ${JSON.stringify(path)}`);
|
|
319
|
+
const segments = [];
|
|
320
|
+
let currentSegment = "";
|
|
321
|
+
let state = PathParserState.Start;
|
|
322
|
+
let index = 5;
|
|
323
|
+
while(index < path.length - 1){
|
|
324
|
+
index++;
|
|
325
|
+
const char = path[index];
|
|
326
|
+
if (state === PathParserState.Property) if ("." === char || "[" === char) {
|
|
327
|
+
segments.push({
|
|
328
|
+
key: currentSegment
|
|
329
|
+
});
|
|
330
|
+
state = PathParserState.Start;
|
|
331
|
+
} else if (index === path.length - 1) {
|
|
332
|
+
currentSegment += char;
|
|
333
|
+
segments.push({
|
|
334
|
+
key: currentSegment
|
|
335
|
+
});
|
|
336
|
+
index++;
|
|
337
|
+
state = PathParserState.Start;
|
|
338
|
+
} else currentSegment += char;
|
|
339
|
+
else if (state === PathParserState.StringKey) if ('"' === char) {
|
|
340
|
+
segments.push({
|
|
341
|
+
key: JSON.parse(currentSegment + char)
|
|
342
|
+
});
|
|
343
|
+
index += 2;
|
|
344
|
+
state = PathParserState.Start;
|
|
345
|
+
} else if ("\\" === char) {
|
|
346
|
+
currentSegment += path[index];
|
|
347
|
+
index++;
|
|
348
|
+
currentSegment += path[index];
|
|
349
|
+
} else currentSegment += char;
|
|
350
|
+
else if (state === PathParserState.NumberKey) if ("]" === char) {
|
|
351
|
+
segments.push({
|
|
352
|
+
key: Number.parseInt(currentSegment)
|
|
353
|
+
});
|
|
354
|
+
index++;
|
|
355
|
+
state = PathParserState.Start;
|
|
356
|
+
} else currentSegment += char;
|
|
357
|
+
if (state === PathParserState.Start && index < path.length - 1) {
|
|
358
|
+
const newChar = path[index];
|
|
359
|
+
currentSegment = "";
|
|
360
|
+
if ("[" === newChar) if ('"' === path[index + 1]) {
|
|
361
|
+
state = PathParserState.StringKey;
|
|
362
|
+
index++;
|
|
363
|
+
currentSegment = '"';
|
|
364
|
+
} else state = PathParserState.NumberKey;
|
|
365
|
+
else if ("." === newChar) state = PathParserState.Property;
|
|
366
|
+
else throw new Error("Unreachable: pointer points invalid character");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if (state !== PathParserState.Start) throw new Error(`Failed to parse path: ${JSON.stringify(path)}`);
|
|
370
|
+
return segments;
|
|
371
|
+
};
|
|
372
|
+
},
|
|
373
|
+
"../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_validateReport.js" (__unused_rspack_module, exports) {
|
|
374
|
+
exports._validateReport = void 0;
|
|
375
|
+
const _validateReport = (array)=>{
|
|
376
|
+
const reportable = (path)=>{
|
|
377
|
+
if (0 === array.length) return true;
|
|
378
|
+
const last = array[array.length - 1].path;
|
|
379
|
+
return path.length > last.length || last.substring(0, path.length) !== path;
|
|
380
|
+
};
|
|
381
|
+
return (exceptable, error)=>{
|
|
382
|
+
if (exceptable && reportable(error.path)) {
|
|
383
|
+
if (void 0 === error.value) null != error.description || (error.description = [
|
|
384
|
+
"The value at this path is `undefined`.",
|
|
385
|
+
"",
|
|
386
|
+
`Please fill the \`${error.expected}\` typed value next time.`
|
|
387
|
+
].join("\n"));
|
|
388
|
+
array.push(error);
|
|
389
|
+
}
|
|
390
|
+
return false;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
exports._validateReport = _validateReport;
|
|
394
|
+
},
|
|
395
|
+
os (module) {
|
|
396
|
+
module.exports = __rspack_external_os;
|
|
397
|
+
},
|
|
398
|
+
tty (module) {
|
|
399
|
+
module.exports = __rspack_external_tty;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
const isBrowser = globalThis.window?.document !== void 0;
|
|
403
|
+
globalThis.process?.versions?.node;
|
|
404
|
+
globalThis.process?.versions?.bun;
|
|
405
|
+
globalThis.Deno?.version?.deno;
|
|
406
|
+
globalThis.process?.versions?.electron;
|
|
407
|
+
globalThis.navigator?.userAgent?.includes('jsdom');
|
|
408
|
+
const platform = globalThis.navigator?.userAgentData?.platform;
|
|
409
|
+
'macOS' === platform || globalThis.navigator?.platform === 'MacIntel' || globalThis.navigator?.userAgent?.includes(' Mac ') === true || globalThis.process?.platform;
|
|
410
|
+
'Windows' === platform || globalThis.navigator?.platform === 'Win32' || globalThis.process?.platform;
|
|
411
|
+
'Linux' === platform || globalThis.navigator?.platform?.startsWith('Linux') === true || globalThis.navigator?.userAgent?.includes(' Linux ') === true || globalThis.process?.platform;
|
|
412
|
+
'iOS' === platform || globalThis.navigator?.platform === 'MacIntel' && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
|
|
413
|
+
'Android' === platform || globalThis.navigator?.platform === 'Android' || globalThis.navigator?.userAgent?.includes(' Android ') === true || globalThis.process?.platform;
|
|
414
|
+
const ESC = '\u001B[';
|
|
415
|
+
const OSC = '\u001B]';
|
|
416
|
+
const BEL = '\u0007';
|
|
417
|
+
const SEP = ';';
|
|
418
|
+
isBrowser || node_process.env.TERM_PROGRAM;
|
|
419
|
+
const base_isWindows = !isBrowser && 'win32' === node_process.platform;
|
|
420
|
+
isBrowser || node_process.cwd;
|
|
421
|
+
const eraseScreen = ESC + '2J';
|
|
422
|
+
base_isWindows ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
|
|
423
|
+
const base_link = (text, url)=>[
|
|
424
|
+
OSC,
|
|
425
|
+
'8',
|
|
426
|
+
SEP,
|
|
427
|
+
SEP,
|
|
428
|
+
url,
|
|
429
|
+
BEL,
|
|
430
|
+
text,
|
|
431
|
+
OSC,
|
|
432
|
+
'8',
|
|
433
|
+
SEP,
|
|
434
|
+
SEP,
|
|
435
|
+
BEL
|
|
436
|
+
].join('');
|
|
437
|
+
const supports_hyperlinks = __webpack_require__("../../../node_modules/.pnpm/supports-hyperlinks@3.2.0/node_modules/supports-hyperlinks/index.js");
|
|
438
|
+
function terminalLink(text, url, { target = 'stdout', ...options } = {}) {
|
|
439
|
+
if (!supports_hyperlinks[target]) {
|
|
440
|
+
if (false === options.fallback) return text;
|
|
441
|
+
return 'function' == typeof options.fallback ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
|
442
|
+
}
|
|
443
|
+
return base_link(text, url);
|
|
444
|
+
}
|
|
445
|
+
terminalLink.isSupported = supports_hyperlinks.stdout;
|
|
446
|
+
terminalLink.stderr = (text, url, options = {})=>terminalLink(text, url, {
|
|
447
|
+
target: 'stderr',
|
|
448
|
+
...options
|
|
449
|
+
});
|
|
450
|
+
terminalLink.stderr.isSupported = supports_hyperlinks.stderr;
|
|
451
|
+
const object_pick = __webpack_require__("../../../node_modules/.pnpm/object.pick@1.3.0/node_modules/object.pick/index.js");
|
|
452
|
+
var object_pick_default = /*#__PURE__*/ __webpack_require__.n(object_pick);
|
|
453
|
+
class LynxConfigWebpackPlugin {
|
|
454
|
+
options;
|
|
455
|
+
constructor(options){
|
|
456
|
+
this.options = options;
|
|
457
|
+
}
|
|
458
|
+
name = 'LynxConfigWebpackPlugin';
|
|
459
|
+
apply(compiler) {
|
|
460
|
+
compiler.hooks.thisCompilation.tap(this.name, (compilation)=>{
|
|
461
|
+
const hooks = this.options.LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
462
|
+
hooks.beforeEncode.tap(this.name, (args)=>{
|
|
463
|
+
const { config } = this.options;
|
|
464
|
+
args.encodeData.compilerOptions = {
|
|
465
|
+
...args.encodeData.compilerOptions,
|
|
466
|
+
...object_pick_default()(config, this.options.compilerOptionsKeys)
|
|
467
|
+
};
|
|
468
|
+
args.encodeData.sourceContent.config = {
|
|
469
|
+
...args.encodeData.sourceContent.config,
|
|
470
|
+
...object_pick_default()(config, this.options.configKeys)
|
|
471
|
+
};
|
|
472
|
+
return args;
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
const _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
478
|
+
const _createStandardSchema = __webpack_require__("../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_createStandardSchema.js");
|
|
479
|
+
const _validateReport = __webpack_require__("../../../node_modules/.pnpm/typia@10.1.0_typescript@5.9.3/node_modules/typia/lib/internal/_validateReport.js");
|
|
480
|
+
const picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
481
|
+
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
482
|
+
const validateConfig = (()=>{
|
|
483
|
+
const _io0 = (input, _exceptionable = true)=>(void 0 === input.absoluteInContentBound || "boolean" == typeof input.absoluteInContentBound) && (void 0 === input.asyncRedirect || "boolean" == typeof input.asyncRedirect) && (void 0 === input.autoExpose || "boolean" == typeof input.autoExpose) && (void 0 === input.CSSAlignWithLegacyW3C || "boolean" == typeof input.CSSAlignWithLegacyW3C) && (void 0 === input.customCSSInheritanceList || Array.isArray(input.customCSSInheritanceList) && input.customCSSInheritanceList.every((elem, _index1)=>"string" == typeof elem)) && (void 0 === input.dataStrictMode || "boolean" == typeof input.dataStrictMode) && (void 0 === input.disableLongpressAfterScroll || "boolean" == typeof input.disableLongpressAfterScroll) && (void 0 === input.disableQuickTracingGC || "boolean" == typeof input.disableQuickTracingGC) && (void 0 === input.enableA11y || "boolean" == typeof input.enableA11y) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableAsyncInitVideoEngine || "boolean" == typeof input.enableAsyncInitVideoEngine) && (void 0 === input.enableAsyncRequestImage || "boolean" == typeof input.enableAsyncRequestImage) && (void 0 === input.enableAsyncResolveSubtree || "boolean" == typeof input.enableAsyncResolveSubtree) && (void 0 === input.enableCheckExposureOptimize || "boolean" == typeof input.enableCheckExposureOptimize) && (void 0 === input.enableCheckLocalImage || "boolean" == typeof input.enableCheckLocalImage) && (void 0 === input.enableCircularDataCheck || "boolean" == typeof input.enableCircularDataCheck) && (void 0 === input.enableComponentAsyncDecode || "boolean" == typeof input.enableComponentAsyncDecode) && (void 0 === input.enableComponentNullProp || "boolean" == typeof input.enableComponentNullProp) && (void 0 === input.enableCreateViewAsync || "boolean" == typeof input.enableCreateViewAsync) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInlineVariables || "boolean" == typeof input.enableCSSInlineVariables) && (void 0 === input.enableCSSLazyImport || "boolean" == typeof input.enableCSSLazyImport) && (void 0 === input.enableDisexposureWhenLynxHidden || "boolean" == typeof input.enableDisexposureWhenLynxHidden) && (void 0 === input.enableEndGestureAtLastFingerUp || "boolean" == typeof input.enableEndGestureAtLastFingerUp) && (void 0 === input.enableEventHandleRefactor || "boolean" == typeof input.enableEventHandleRefactor) && (void 0 === input.enableEventThrough || "boolean" == typeof input.enableEventThrough) && (void 0 === input.enableExposureUIMargin || "boolean" == typeof input.enableExposureUIMargin) && (void 0 === input.enableExposureWhenLayout || "boolean" == typeof input.enableExposureWhenLayout) && (void 0 === input.enableExposureWhenReload || "boolean" == typeof input.enableExposureWhenReload) && (void 0 === input.enableFixedNew || "boolean" == typeof input.enableFixedNew) && (void 0 === input.enableHarmonyNewOverlay || "boolean" == typeof input.enableHarmonyNewOverlay) && (void 0 === input.enableHarmonyVisibleAreaChangeForExposure || "boolean" == typeof input.enableHarmonyVisibleAreaChangeForExposure) && (void 0 === input.enableICU || "boolean" == typeof input.enableICU) && (void 0 === input.enableImageDownsampling || "boolean" == typeof input.enableImageDownsampling) && (void 0 === input.enableJsBindingApiThrowException || "boolean" == typeof input.enableJsBindingApiThrowException) && (void 0 === input.enableJSDataProcessor || "boolean" == typeof input.enableJSDataProcessor) && (void 0 === input.enableListMoveOperation || "boolean" == typeof input.enableListMoveOperation) && (void 0 === input.enableListNewArchitecture || "boolean" == typeof input.enableListNewArchitecture) && (void 0 === input.enableListPlug || "boolean" == typeof input.enableListPlug) && (void 0 === input.enableLynxScrollFluency || "number" == typeof input.enableLynxScrollFluency || "boolean" == typeof input.enableLynxScrollFluency) && (void 0 === input.enableMicrotaskPromisePolyfill || "boolean" == typeof input.enableMicrotaskPromisePolyfill) && (void 0 === input.enableMultiTouch || "boolean" == typeof input.enableMultiTouch) && (void 0 === input.enableMultiTouchParamsCompatible || "boolean" == typeof input.enableMultiTouchParamsCompatible) && (void 0 === input.enableNativeList || "boolean" == typeof input.enableNativeList) && (void 0 === input.enableNewAnimator || "boolean" == typeof input.enableNewAnimator) && (void 0 === input.enableNewClipMode || "boolean" == typeof input.enableNewClipMode) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableNewImage || "boolean" == typeof input.enableNewImage) && (void 0 === input.enableNewIntersectionObserver || "boolean" == typeof input.enableNewIntersectionObserver) && (void 0 === input.enableNewListContainer || "boolean" == typeof input.enableNewListContainer) && (void 0 === input.enableNewTransformOrigin || "boolean" == typeof input.enableNewTransformOrigin) && (void 0 === input.enablePlatformGesture || "boolean" == typeof input.enablePlatformGesture) && (void 0 === input.enablePropertyBasedSimpleStyle || "boolean" == typeof input.enablePropertyBasedSimpleStyle) && (void 0 === input.enableQueryComponentSync || "boolean" == typeof input.enableQueryComponentSync) && (void 0 === input.enableReactOnlyPropsId || "boolean" == typeof input.enableReactOnlyPropsId) && (void 0 === input.enableReduceInitDataCopy || "boolean" == typeof input.enableReduceInitDataCopy) && (void 0 === input.enableReloadLifecycle || "boolean" == typeof input.enableReloadLifecycle) && (void 0 === input.enableRemoveComponentExtraData || "boolean" == typeof input.enableRemoveComponentExtraData) && (void 0 === input.enableReuseLoadScriptExports || "boolean" == typeof input.enableReuseLoadScriptExports) && (void 0 === input.enableSignalAPI || "boolean" == typeof input.enableSignalAPI) && (void 0 === input.enableSimultaneousTap || "boolean" == typeof input.enableSimultaneousTap) && (void 0 === input.enableTextBoringLayout || "boolean" == typeof input.enableTextBoringLayout) && (void 0 === input.enableTextGradientOpt || "boolean" == typeof input.enableTextGradientOpt) && (void 0 === input.enableTextLanguageAlignment || "boolean" == typeof input.enableTextLanguageAlignment) && (void 0 === input.enableTextLayerRender || "boolean" == typeof input.enableTextLayerRender) && (void 0 === input.enableTextLayoutCache || "boolean" == typeof input.enableTextLayoutCache) && (void 0 === input.enableTextNonContiguousLayout || "boolean" == typeof input.enableTextNonContiguousLayout) && (void 0 === input.enableTextOverflow || "boolean" == typeof input.enableTextOverflow) && (void 0 === input.enableTextRefactor || "boolean" == typeof input.enableTextRefactor) && (void 0 === input.enableTouchRefactor || "boolean" == typeof input.enableTouchRefactor) && (void 0 === input.enableUIOperationOptimize || "boolean" == typeof input.enableUIOperationOptimize) && (void 0 === input.enableUnifiedPipeline || "boolean" == typeof input.enableUnifiedPipeline) && (void 0 === input.enableUseContextPool || "boolean" == typeof input.enableUseContextPool) && (void 0 === input.enableUseMapBuffer || "boolean" == typeof input.enableUseMapBuffer) && (void 0 === input.enableViewReceiveTouch || "boolean" == typeof input.enableViewReceiveTouch) && (void 0 === input.enableVsyncAlignedFlush || "boolean" == typeof input.enableVsyncAlignedFlush) && (void 0 === input.enableXTextLayoutReused || "boolean" == typeof input.enableXTextLayoutReused) && (void 0 === input.extendedLayoutOnlyOpt || "boolean" == typeof input.extendedLayoutOnlyOpt) && (void 0 === input.extraInfo || "object" == typeof input.extraInfo && null !== input.extraInfo && false === Array.isArray(input.extraInfo) && _io1(input.extraInfo, _exceptionable)) && (void 0 === input.flatten || "boolean" == typeof input.flatten) && (void 0 === input.fontScaleEffectiveOnlyOnSp || "boolean" == typeof input.fontScaleEffectiveOnlyOnSp) && (void 0 === input.implicit || "boolean" == typeof input.implicit) && (void 0 === input.includeFontPadding || "boolean" == typeof input.includeFontPadding) && (void 0 === input.keyboardCallbackPassRelativeHeight || "boolean" == typeof input.keyboardCallbackPassRelativeHeight) && (void 0 === input.longPressDuration || "number" == typeof input.longPressDuration) && (void 0 === input.observerFrameRate || "number" == typeof input.observerFrameRate) && (void 0 === input.pipelineSchedulerConfig || "number" == typeof input.pipelineSchedulerConfig) && (void 0 === input.preferredFps || "string" == typeof input.preferredFps) && (void 0 === input.quirksMode || "string" == typeof input.quirksMode || "boolean" == typeof input.quirksMode) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope) && (void 0 === input.strictPropType || "boolean" == typeof input.strictPropType) && (void 0 === input.tapSlop || "string" == typeof input.tapSlop) && (void 0 === input.trailNewImage || "boolean" == typeof input.trailNewImage) && (void 0 === input.unifyVWVHBehavior || "boolean" == typeof input.unifyVWVHBehavior) && (void 0 === input.useImagePostProcessor || "boolean" == typeof input.useImagePostProcessor) && (void 0 === input.useNewSwiper || "boolean" == typeof input.useNewSwiper) && (void 0 === input.autoResumeAnimation || "boolean" == typeof input.autoResumeAnimation) && (void 0 === input.cli || "string" == typeof input.cli) && (void 0 === input.compileRender || "boolean" == typeof input.compileRender) && (void 0 === input.customData || "string" == typeof input.customData) && (void 0 === input.enableA11yIDMutationObserver || "boolean" == typeof input.enableA11yIDMutationObserver) && (void 0 === input.enableAsyncDisplay || "boolean" == typeof input.enableAsyncDisplay) && (void 0 === input.enableBackgroundShapeLayer || "boolean" == typeof input.enableBackgroundShapeLayer) && (void 0 === input.enableCascadePseudo || "boolean" == typeof input.enableCascadePseudo) && (void 0 === input.enableCheckDataWhenUpdatePage || "boolean" == typeof input.enableCheckDataWhenUpdatePage) && (void 0 === input.enableComponentLayoutOnly || "boolean" == typeof input.enableComponentLayoutOnly) && (void 0 === input.enableGlobalComponentMap || "boolean" == typeof input.enableGlobalComponentMap) && (void 0 === input.enableNativeScheduleCreateViewAsync || "boolean" == typeof input.enableNativeScheduleCreateViewAsync) && (void 0 === input.enableNewAccessibility || "boolean" == typeof input.enableNewAccessibility) && (void 0 === input.enableNewLayoutOnly || "boolean" == typeof input.enableNewLayoutOnly) && (void 0 === input.enableOptPushStyleToBundle || "boolean" == typeof input.enableOptPushStyleToBundle) && (void 0 === input.enableOverlapForAccessibilityElement || "boolean" == typeof input.enableOverlapForAccessibilityElement) && (void 0 === input.fixCSSImportRuleOrder || "boolean" == typeof input.fixCSSImportRuleOrder) && (void 0 === input.forceCalcNewStyle || "boolean" == typeof input.forceCalcNewStyle) && (void 0 === input.reactVersion || "string" == typeof input.reactVersion) && (void 0 === input.redBoxImageSizeWarningThreshold || "number" == typeof input.redBoxImageSizeWarningThreshold) && (void 0 === input.removeComponentElement || "boolean" == typeof input.removeComponentElement) && (void 0 === input.syncImageAttach || "boolean" == typeof input.syncImageAttach) && (void 0 === input.useNewImage || "boolean" == typeof input.useNewImage) && (void 0 === input.version || "string" == typeof input.version) && (void 0 === input.debugInfoOutside || "boolean" == typeof input.debugInfoOutside) && (void 0 === input.defaultDisplayLinear || "boolean" == typeof input.defaultDisplayLinear) && (void 0 === input.defaultOverflowVisible || "boolean" == typeof input.defaultOverflowVisible) && (void 0 === input.disableMultipleCascadeCSS || "boolean" == typeof input.disableMultipleCascadeCSS) && (void 0 === input.enableComponentConfig || "boolean" == typeof input.enableComponentConfig) && (void 0 === input.enableCSSAsyncDecode || "boolean" == typeof input.enableCSSAsyncDecode) && (void 0 === input.enableCSSClassMerge || "boolean" == typeof input.enableCSSClassMerge) && (void 0 === input.enableCSSEngine || "boolean" == typeof input.enableCSSEngine) && (void 0 === input.enableCSSExternalClass || "boolean" == typeof input.enableCSSExternalClass) && (void 0 === input.enableCSSInvalidation || "boolean" == typeof input.enableCSSInvalidation) && (void 0 === input.enableCSSLazyDecode || "boolean" == typeof input.enableCSSLazyDecode) && (void 0 === input.enableCSSSelector || "boolean" == typeof input.enableCSSSelector) && (void 0 === input.enableCSSStrictMode || "boolean" == typeof input.enableCSSStrictMode) && (void 0 === input.enableCSSVariable || "boolean" == typeof input.enableCSSVariable) && (void 0 === input.enableEventRefactor || "boolean" == typeof input.enableEventRefactor) && (void 0 === input.enableFiberArch || "boolean" == typeof input.enableFiberArch) && (void 0 === input.enableFlexibleTemplate || "boolean" == typeof input.enableFlexibleTemplate) && (void 0 === input.enableKeepPageData || "boolean" == typeof input.enableKeepPageData) && (void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope) && (void 0 === input.enableSimpleStyling || "boolean" == typeof input.enableSimpleStyling) && (void 0 === input.experimental_encodeQuickjsBytecode || "boolean" == typeof input.experimental_encodeQuickjsBytecode) && (void 0 === input.implicitAnimation || "boolean" == typeof input.implicitAnimation) && (void 0 === input.removeCSSParserLog || "boolean" == typeof input.removeCSSParserLog) && (void 0 === input.targetSdkVersion || "string" == typeof input.targetSdkVersion) && (void 0 === input.templateDebugUrl || "string" == typeof input.templateDebugUrl) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
484
|
+
if ([
|
|
485
|
+
"absoluteInContentBound",
|
|
486
|
+
"asyncRedirect",
|
|
487
|
+
"autoExpose",
|
|
488
|
+
"CSSAlignWithLegacyW3C",
|
|
489
|
+
"customCSSInheritanceList",
|
|
490
|
+
"dataStrictMode",
|
|
491
|
+
"disableLongpressAfterScroll",
|
|
492
|
+
"disableQuickTracingGC",
|
|
493
|
+
"enableA11y",
|
|
494
|
+
"enableAccessibilityElement",
|
|
495
|
+
"enableAsyncInitVideoEngine",
|
|
496
|
+
"enableAsyncRequestImage",
|
|
497
|
+
"enableAsyncResolveSubtree",
|
|
498
|
+
"enableCheckExposureOptimize",
|
|
499
|
+
"enableCheckLocalImage",
|
|
500
|
+
"enableCircularDataCheck",
|
|
501
|
+
"enableComponentAsyncDecode",
|
|
502
|
+
"enableComponentNullProp",
|
|
503
|
+
"enableCreateViewAsync",
|
|
504
|
+
"enableCSSInheritance",
|
|
505
|
+
"enableCSSInlineVariables",
|
|
506
|
+
"enableCSSLazyImport",
|
|
507
|
+
"enableDisexposureWhenLynxHidden",
|
|
508
|
+
"enableEndGestureAtLastFingerUp",
|
|
509
|
+
"enableEventHandleRefactor",
|
|
510
|
+
"enableEventThrough",
|
|
511
|
+
"enableExposureUIMargin",
|
|
512
|
+
"enableExposureWhenLayout",
|
|
513
|
+
"enableExposureWhenReload",
|
|
514
|
+
"enableFixedNew",
|
|
515
|
+
"enableHarmonyNewOverlay",
|
|
516
|
+
"enableHarmonyVisibleAreaChangeForExposure",
|
|
517
|
+
"enableICU",
|
|
518
|
+
"enableImageDownsampling",
|
|
519
|
+
"enableJsBindingApiThrowException",
|
|
520
|
+
"enableJSDataProcessor",
|
|
521
|
+
"enableListMoveOperation",
|
|
522
|
+
"enableListNewArchitecture",
|
|
523
|
+
"enableListPlug",
|
|
524
|
+
"enableLynxScrollFluency",
|
|
525
|
+
"enableMicrotaskPromisePolyfill",
|
|
526
|
+
"enableMultiTouch",
|
|
527
|
+
"enableMultiTouchParamsCompatible",
|
|
528
|
+
"enableNativeList",
|
|
529
|
+
"enableNewAnimator",
|
|
530
|
+
"enableNewClipMode",
|
|
531
|
+
"enableNewGesture",
|
|
532
|
+
"enableNewImage",
|
|
533
|
+
"enableNewIntersectionObserver",
|
|
534
|
+
"enableNewListContainer",
|
|
535
|
+
"enableNewTransformOrigin",
|
|
536
|
+
"enablePlatformGesture",
|
|
537
|
+
"enablePropertyBasedSimpleStyle",
|
|
538
|
+
"enableQueryComponentSync",
|
|
539
|
+
"enableReactOnlyPropsId",
|
|
540
|
+
"enableReduceInitDataCopy",
|
|
541
|
+
"enableReloadLifecycle",
|
|
542
|
+
"enableRemoveComponentExtraData",
|
|
543
|
+
"enableReuseLoadScriptExports",
|
|
544
|
+
"enableSignalAPI",
|
|
545
|
+
"enableSimultaneousTap",
|
|
546
|
+
"enableTextBoringLayout",
|
|
547
|
+
"enableTextGradientOpt",
|
|
548
|
+
"enableTextLanguageAlignment",
|
|
549
|
+
"enableTextLayerRender",
|
|
550
|
+
"enableTextLayoutCache",
|
|
551
|
+
"enableTextNonContiguousLayout",
|
|
552
|
+
"enableTextOverflow",
|
|
553
|
+
"enableTextRefactor",
|
|
554
|
+
"enableTouchRefactor",
|
|
555
|
+
"enableUIOperationOptimize",
|
|
556
|
+
"enableUnifiedPipeline",
|
|
557
|
+
"enableUseContextPool",
|
|
558
|
+
"enableUseMapBuffer",
|
|
559
|
+
"enableViewReceiveTouch",
|
|
560
|
+
"enableVsyncAlignedFlush",
|
|
561
|
+
"enableXTextLayoutReused",
|
|
562
|
+
"extendedLayoutOnlyOpt",
|
|
563
|
+
"extraInfo",
|
|
564
|
+
"flatten",
|
|
565
|
+
"fontScaleEffectiveOnlyOnSp",
|
|
566
|
+
"implicit",
|
|
567
|
+
"includeFontPadding",
|
|
568
|
+
"keyboardCallbackPassRelativeHeight",
|
|
569
|
+
"longPressDuration",
|
|
570
|
+
"observerFrameRate",
|
|
571
|
+
"pipelineSchedulerConfig",
|
|
572
|
+
"preferredFps",
|
|
573
|
+
"quirksMode",
|
|
574
|
+
"removeDescendantSelectorScope",
|
|
575
|
+
"strictPropType",
|
|
576
|
+
"tapSlop",
|
|
577
|
+
"trailNewImage",
|
|
578
|
+
"unifyVWVHBehavior",
|
|
579
|
+
"useImagePostProcessor",
|
|
580
|
+
"useNewSwiper",
|
|
581
|
+
"autoResumeAnimation",
|
|
582
|
+
"cli",
|
|
583
|
+
"compileRender",
|
|
584
|
+
"customData",
|
|
585
|
+
"enableA11yIDMutationObserver",
|
|
586
|
+
"enableAsyncDisplay",
|
|
587
|
+
"enableBackgroundShapeLayer",
|
|
588
|
+
"enableCascadePseudo",
|
|
589
|
+
"enableCheckDataWhenUpdatePage",
|
|
590
|
+
"enableComponentLayoutOnly",
|
|
591
|
+
"enableGlobalComponentMap",
|
|
592
|
+
"enableNativeScheduleCreateViewAsync",
|
|
593
|
+
"enableNewAccessibility",
|
|
594
|
+
"enableNewLayoutOnly",
|
|
595
|
+
"enableOptPushStyleToBundle",
|
|
596
|
+
"enableOverlapForAccessibilityElement",
|
|
597
|
+
"fixCSSImportRuleOrder",
|
|
598
|
+
"forceCalcNewStyle",
|
|
599
|
+
"reactVersion",
|
|
600
|
+
"redBoxImageSizeWarningThreshold",
|
|
601
|
+
"removeComponentElement",
|
|
602
|
+
"syncImageAttach",
|
|
603
|
+
"useNewImage",
|
|
604
|
+
"version",
|
|
605
|
+
"debugInfoOutside",
|
|
606
|
+
"defaultDisplayLinear",
|
|
607
|
+
"defaultOverflowVisible",
|
|
608
|
+
"disableMultipleCascadeCSS",
|
|
609
|
+
"enableComponentConfig",
|
|
610
|
+
"enableCSSAsyncDecode",
|
|
611
|
+
"enableCSSClassMerge",
|
|
612
|
+
"enableCSSEngine",
|
|
613
|
+
"enableCSSExternalClass",
|
|
614
|
+
"enableCSSInvalidation",
|
|
615
|
+
"enableCSSLazyDecode",
|
|
616
|
+
"enableCSSSelector",
|
|
617
|
+
"enableCSSStrictMode",
|
|
618
|
+
"enableCSSVariable",
|
|
619
|
+
"enableEventRefactor",
|
|
620
|
+
"enableFiberArch",
|
|
621
|
+
"enableFlexibleTemplate",
|
|
622
|
+
"enableKeepPageData",
|
|
623
|
+
"enableRemoveCSSScope",
|
|
624
|
+
"enableSimpleStyling",
|
|
625
|
+
"experimental_encodeQuickjsBytecode",
|
|
626
|
+
"implicitAnimation",
|
|
627
|
+
"removeCSSParserLog",
|
|
628
|
+
"targetSdkVersion",
|
|
629
|
+
"templateDebugUrl"
|
|
630
|
+
].some((prop)=>key === prop)) return true;
|
|
631
|
+
const value = input[key];
|
|
632
|
+
if (void 0 === value) return true;
|
|
633
|
+
return false;
|
|
634
|
+
}));
|
|
635
|
+
const _io1 = (input, _exceptionable = true)=>Object.keys(input).every((key)=>{
|
|
636
|
+
input[key];
|
|
637
|
+
return true;
|
|
638
|
+
});
|
|
639
|
+
const _vo0 = (input, _path, _exceptionable = true)=>[
|
|
640
|
+
void 0 === input.absoluteInContentBound || "boolean" == typeof input.absoluteInContentBound || _report(_exceptionable, {
|
|
641
|
+
path: _path + ".absoluteInContentBound",
|
|
642
|
+
expected: "(boolean | undefined)",
|
|
643
|
+
value: input.absoluteInContentBound
|
|
644
|
+
}),
|
|
645
|
+
void 0 === input.asyncRedirect || "boolean" == typeof input.asyncRedirect || _report(_exceptionable, {
|
|
646
|
+
path: _path + ".asyncRedirect",
|
|
647
|
+
expected: "(boolean | undefined)",
|
|
648
|
+
value: input.asyncRedirect
|
|
649
|
+
}),
|
|
650
|
+
void 0 === input.autoExpose || "boolean" == typeof input.autoExpose || _report(_exceptionable, {
|
|
651
|
+
path: _path + ".autoExpose",
|
|
652
|
+
expected: "(boolean | undefined)",
|
|
653
|
+
value: input.autoExpose
|
|
654
|
+
}),
|
|
655
|
+
void 0 === input.CSSAlignWithLegacyW3C || "boolean" == typeof input.CSSAlignWithLegacyW3C || _report(_exceptionable, {
|
|
656
|
+
path: _path + ".CSSAlignWithLegacyW3C",
|
|
657
|
+
expected: "(boolean | undefined)",
|
|
658
|
+
value: input.CSSAlignWithLegacyW3C
|
|
659
|
+
}),
|
|
660
|
+
void 0 === input.customCSSInheritanceList || (Array.isArray(input.customCSSInheritanceList) || _report(_exceptionable, {
|
|
661
|
+
path: _path + ".customCSSInheritanceList",
|
|
662
|
+
expected: "(Array<string> | undefined)",
|
|
663
|
+
value: input.customCSSInheritanceList
|
|
664
|
+
})) && input.customCSSInheritanceList.map((elem, _index2)=>"string" == typeof elem || _report(_exceptionable, {
|
|
665
|
+
path: _path + ".customCSSInheritanceList[" + _index2 + "]",
|
|
666
|
+
expected: "string",
|
|
667
|
+
value: elem
|
|
668
|
+
})).every((flag)=>flag) || _report(_exceptionable, {
|
|
669
|
+
path: _path + ".customCSSInheritanceList",
|
|
670
|
+
expected: "(Array<string> | undefined)",
|
|
671
|
+
value: input.customCSSInheritanceList
|
|
672
|
+
}),
|
|
673
|
+
void 0 === input.dataStrictMode || "boolean" == typeof input.dataStrictMode || _report(_exceptionable, {
|
|
674
|
+
path: _path + ".dataStrictMode",
|
|
675
|
+
expected: "(boolean | undefined)",
|
|
676
|
+
value: input.dataStrictMode
|
|
677
|
+
}),
|
|
678
|
+
void 0 === input.disableLongpressAfterScroll || "boolean" == typeof input.disableLongpressAfterScroll || _report(_exceptionable, {
|
|
679
|
+
path: _path + ".disableLongpressAfterScroll",
|
|
680
|
+
expected: "(boolean | undefined)",
|
|
681
|
+
value: input.disableLongpressAfterScroll
|
|
682
|
+
}),
|
|
683
|
+
void 0 === input.disableQuickTracingGC || "boolean" == typeof input.disableQuickTracingGC || _report(_exceptionable, {
|
|
684
|
+
path: _path + ".disableQuickTracingGC",
|
|
685
|
+
expected: "(boolean | undefined)",
|
|
686
|
+
value: input.disableQuickTracingGC
|
|
687
|
+
}),
|
|
688
|
+
void 0 === input.enableA11y || "boolean" == typeof input.enableA11y || _report(_exceptionable, {
|
|
689
|
+
path: _path + ".enableA11y",
|
|
690
|
+
expected: "(boolean | undefined)",
|
|
691
|
+
value: input.enableA11y
|
|
692
|
+
}),
|
|
693
|
+
void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement || _report(_exceptionable, {
|
|
694
|
+
path: _path + ".enableAccessibilityElement",
|
|
695
|
+
expected: "(boolean | undefined)",
|
|
696
|
+
value: input.enableAccessibilityElement
|
|
697
|
+
}),
|
|
698
|
+
void 0 === input.enableAsyncInitVideoEngine || "boolean" == typeof input.enableAsyncInitVideoEngine || _report(_exceptionable, {
|
|
699
|
+
path: _path + ".enableAsyncInitVideoEngine",
|
|
700
|
+
expected: "(boolean | undefined)",
|
|
701
|
+
value: input.enableAsyncInitVideoEngine
|
|
702
|
+
}),
|
|
703
|
+
void 0 === input.enableAsyncRequestImage || "boolean" == typeof input.enableAsyncRequestImage || _report(_exceptionable, {
|
|
704
|
+
path: _path + ".enableAsyncRequestImage",
|
|
705
|
+
expected: "(boolean | undefined)",
|
|
706
|
+
value: input.enableAsyncRequestImage
|
|
707
|
+
}),
|
|
708
|
+
void 0 === input.enableAsyncResolveSubtree || "boolean" == typeof input.enableAsyncResolveSubtree || _report(_exceptionable, {
|
|
709
|
+
path: _path + ".enableAsyncResolveSubtree",
|
|
710
|
+
expected: "(boolean | undefined)",
|
|
711
|
+
value: input.enableAsyncResolveSubtree
|
|
712
|
+
}),
|
|
713
|
+
void 0 === input.enableCheckExposureOptimize || "boolean" == typeof input.enableCheckExposureOptimize || _report(_exceptionable, {
|
|
714
|
+
path: _path + ".enableCheckExposureOptimize",
|
|
715
|
+
expected: "(boolean | undefined)",
|
|
716
|
+
value: input.enableCheckExposureOptimize
|
|
717
|
+
}),
|
|
718
|
+
void 0 === input.enableCheckLocalImage || "boolean" == typeof input.enableCheckLocalImage || _report(_exceptionable, {
|
|
719
|
+
path: _path + ".enableCheckLocalImage",
|
|
720
|
+
expected: "(boolean | undefined)",
|
|
721
|
+
value: input.enableCheckLocalImage
|
|
722
|
+
}),
|
|
723
|
+
void 0 === input.enableCircularDataCheck || "boolean" == typeof input.enableCircularDataCheck || _report(_exceptionable, {
|
|
724
|
+
path: _path + ".enableCircularDataCheck",
|
|
725
|
+
expected: "(boolean | undefined)",
|
|
726
|
+
value: input.enableCircularDataCheck
|
|
727
|
+
}),
|
|
728
|
+
void 0 === input.enableComponentAsyncDecode || "boolean" == typeof input.enableComponentAsyncDecode || _report(_exceptionable, {
|
|
729
|
+
path: _path + ".enableComponentAsyncDecode",
|
|
730
|
+
expected: "(boolean | undefined)",
|
|
731
|
+
value: input.enableComponentAsyncDecode
|
|
732
|
+
}),
|
|
733
|
+
void 0 === input.enableComponentNullProp || "boolean" == typeof input.enableComponentNullProp || _report(_exceptionable, {
|
|
734
|
+
path: _path + ".enableComponentNullProp",
|
|
735
|
+
expected: "(boolean | undefined)",
|
|
736
|
+
value: input.enableComponentNullProp
|
|
737
|
+
}),
|
|
738
|
+
void 0 === input.enableCreateViewAsync || "boolean" == typeof input.enableCreateViewAsync || _report(_exceptionable, {
|
|
739
|
+
path: _path + ".enableCreateViewAsync",
|
|
740
|
+
expected: "(boolean | undefined)",
|
|
741
|
+
value: input.enableCreateViewAsync
|
|
742
|
+
}),
|
|
743
|
+
void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance || _report(_exceptionable, {
|
|
744
|
+
path: _path + ".enableCSSInheritance",
|
|
745
|
+
expected: "(boolean | undefined)",
|
|
746
|
+
value: input.enableCSSInheritance
|
|
747
|
+
}),
|
|
748
|
+
void 0 === input.enableCSSInlineVariables || "boolean" == typeof input.enableCSSInlineVariables || _report(_exceptionable, {
|
|
749
|
+
path: _path + ".enableCSSInlineVariables",
|
|
750
|
+
expected: "(boolean | undefined)",
|
|
751
|
+
value: input.enableCSSInlineVariables
|
|
752
|
+
}),
|
|
753
|
+
void 0 === input.enableCSSLazyImport || "boolean" == typeof input.enableCSSLazyImport || _report(_exceptionable, {
|
|
754
|
+
path: _path + ".enableCSSLazyImport",
|
|
755
|
+
expected: "(boolean | undefined)",
|
|
756
|
+
value: input.enableCSSLazyImport
|
|
757
|
+
}),
|
|
758
|
+
void 0 === input.enableDisexposureWhenLynxHidden || "boolean" == typeof input.enableDisexposureWhenLynxHidden || _report(_exceptionable, {
|
|
759
|
+
path: _path + ".enableDisexposureWhenLynxHidden",
|
|
760
|
+
expected: "(boolean | undefined)",
|
|
761
|
+
value: input.enableDisexposureWhenLynxHidden
|
|
762
|
+
}),
|
|
763
|
+
void 0 === input.enableEndGestureAtLastFingerUp || "boolean" == typeof input.enableEndGestureAtLastFingerUp || _report(_exceptionable, {
|
|
764
|
+
path: _path + ".enableEndGestureAtLastFingerUp",
|
|
765
|
+
expected: "(boolean | undefined)",
|
|
766
|
+
value: input.enableEndGestureAtLastFingerUp
|
|
767
|
+
}),
|
|
768
|
+
void 0 === input.enableEventHandleRefactor || "boolean" == typeof input.enableEventHandleRefactor || _report(_exceptionable, {
|
|
769
|
+
path: _path + ".enableEventHandleRefactor",
|
|
770
|
+
expected: "(boolean | undefined)",
|
|
771
|
+
value: input.enableEventHandleRefactor
|
|
772
|
+
}),
|
|
773
|
+
void 0 === input.enableEventThrough || "boolean" == typeof input.enableEventThrough || _report(_exceptionable, {
|
|
774
|
+
path: _path + ".enableEventThrough",
|
|
775
|
+
expected: "(boolean | undefined)",
|
|
776
|
+
value: input.enableEventThrough
|
|
777
|
+
}),
|
|
778
|
+
void 0 === input.enableExposureUIMargin || "boolean" == typeof input.enableExposureUIMargin || _report(_exceptionable, {
|
|
779
|
+
path: _path + ".enableExposureUIMargin",
|
|
780
|
+
expected: "(boolean | undefined)",
|
|
781
|
+
value: input.enableExposureUIMargin
|
|
782
|
+
}),
|
|
783
|
+
void 0 === input.enableExposureWhenLayout || "boolean" == typeof input.enableExposureWhenLayout || _report(_exceptionable, {
|
|
784
|
+
path: _path + ".enableExposureWhenLayout",
|
|
785
|
+
expected: "(boolean | undefined)",
|
|
786
|
+
value: input.enableExposureWhenLayout
|
|
787
|
+
}),
|
|
788
|
+
void 0 === input.enableExposureWhenReload || "boolean" == typeof input.enableExposureWhenReload || _report(_exceptionable, {
|
|
789
|
+
path: _path + ".enableExposureWhenReload",
|
|
790
|
+
expected: "(boolean | undefined)",
|
|
791
|
+
value: input.enableExposureWhenReload
|
|
792
|
+
}),
|
|
793
|
+
void 0 === input.enableFixedNew || "boolean" == typeof input.enableFixedNew || _report(_exceptionable, {
|
|
794
|
+
path: _path + ".enableFixedNew",
|
|
795
|
+
expected: "(boolean | undefined)",
|
|
796
|
+
value: input.enableFixedNew
|
|
797
|
+
}),
|
|
798
|
+
void 0 === input.enableHarmonyNewOverlay || "boolean" == typeof input.enableHarmonyNewOverlay || _report(_exceptionable, {
|
|
799
|
+
path: _path + ".enableHarmonyNewOverlay",
|
|
800
|
+
expected: "(boolean | undefined)",
|
|
801
|
+
value: input.enableHarmonyNewOverlay
|
|
802
|
+
}),
|
|
803
|
+
void 0 === input.enableHarmonyVisibleAreaChangeForExposure || "boolean" == typeof input.enableHarmonyVisibleAreaChangeForExposure || _report(_exceptionable, {
|
|
804
|
+
path: _path + ".enableHarmonyVisibleAreaChangeForExposure",
|
|
805
|
+
expected: "(boolean | undefined)",
|
|
806
|
+
value: input.enableHarmonyVisibleAreaChangeForExposure
|
|
807
|
+
}),
|
|
808
|
+
void 0 === input.enableICU || "boolean" == typeof input.enableICU || _report(_exceptionable, {
|
|
809
|
+
path: _path + ".enableICU",
|
|
810
|
+
expected: "(boolean | undefined)",
|
|
811
|
+
value: input.enableICU
|
|
812
|
+
}),
|
|
813
|
+
void 0 === input.enableImageDownsampling || "boolean" == typeof input.enableImageDownsampling || _report(_exceptionable, {
|
|
814
|
+
path: _path + ".enableImageDownsampling",
|
|
815
|
+
expected: "(boolean | undefined)",
|
|
816
|
+
value: input.enableImageDownsampling
|
|
817
|
+
}),
|
|
818
|
+
void 0 === input.enableJsBindingApiThrowException || "boolean" == typeof input.enableJsBindingApiThrowException || _report(_exceptionable, {
|
|
819
|
+
path: _path + ".enableJsBindingApiThrowException",
|
|
820
|
+
expected: "(boolean | undefined)",
|
|
821
|
+
value: input.enableJsBindingApiThrowException
|
|
822
|
+
}),
|
|
823
|
+
void 0 === input.enableJSDataProcessor || "boolean" == typeof input.enableJSDataProcessor || _report(_exceptionable, {
|
|
824
|
+
path: _path + ".enableJSDataProcessor",
|
|
825
|
+
expected: "(boolean | undefined)",
|
|
826
|
+
value: input.enableJSDataProcessor
|
|
827
|
+
}),
|
|
828
|
+
void 0 === input.enableListMoveOperation || "boolean" == typeof input.enableListMoveOperation || _report(_exceptionable, {
|
|
829
|
+
path: _path + ".enableListMoveOperation",
|
|
830
|
+
expected: "(boolean | undefined)",
|
|
831
|
+
value: input.enableListMoveOperation
|
|
832
|
+
}),
|
|
833
|
+
void 0 === input.enableListNewArchitecture || "boolean" == typeof input.enableListNewArchitecture || _report(_exceptionable, {
|
|
834
|
+
path: _path + ".enableListNewArchitecture",
|
|
835
|
+
expected: "(boolean | undefined)",
|
|
836
|
+
value: input.enableListNewArchitecture
|
|
837
|
+
}),
|
|
838
|
+
void 0 === input.enableListPlug || "boolean" == typeof input.enableListPlug || _report(_exceptionable, {
|
|
839
|
+
path: _path + ".enableListPlug",
|
|
840
|
+
expected: "(boolean | undefined)",
|
|
841
|
+
value: input.enableListPlug
|
|
842
|
+
}),
|
|
843
|
+
void 0 === input.enableLynxScrollFluency || "number" == typeof input.enableLynxScrollFluency || "boolean" == typeof input.enableLynxScrollFluency || _report(_exceptionable, {
|
|
844
|
+
path: _path + ".enableLynxScrollFluency",
|
|
845
|
+
expected: "(boolean | number | undefined)",
|
|
846
|
+
value: input.enableLynxScrollFluency
|
|
847
|
+
}),
|
|
848
|
+
void 0 === input.enableMicrotaskPromisePolyfill || "boolean" == typeof input.enableMicrotaskPromisePolyfill || _report(_exceptionable, {
|
|
849
|
+
path: _path + ".enableMicrotaskPromisePolyfill",
|
|
850
|
+
expected: "(boolean | undefined)",
|
|
851
|
+
value: input.enableMicrotaskPromisePolyfill
|
|
852
|
+
}),
|
|
853
|
+
void 0 === input.enableMultiTouch || "boolean" == typeof input.enableMultiTouch || _report(_exceptionable, {
|
|
854
|
+
path: _path + ".enableMultiTouch",
|
|
855
|
+
expected: "(boolean | undefined)",
|
|
856
|
+
value: input.enableMultiTouch
|
|
857
|
+
}),
|
|
858
|
+
void 0 === input.enableMultiTouchParamsCompatible || "boolean" == typeof input.enableMultiTouchParamsCompatible || _report(_exceptionable, {
|
|
859
|
+
path: _path + ".enableMultiTouchParamsCompatible",
|
|
860
|
+
expected: "(boolean | undefined)",
|
|
861
|
+
value: input.enableMultiTouchParamsCompatible
|
|
862
|
+
}),
|
|
863
|
+
void 0 === input.enableNativeList || "boolean" == typeof input.enableNativeList || _report(_exceptionable, {
|
|
864
|
+
path: _path + ".enableNativeList",
|
|
865
|
+
expected: "(boolean | undefined)",
|
|
866
|
+
value: input.enableNativeList
|
|
867
|
+
}),
|
|
868
|
+
void 0 === input.enableNewAnimator || "boolean" == typeof input.enableNewAnimator || _report(_exceptionable, {
|
|
869
|
+
path: _path + ".enableNewAnimator",
|
|
870
|
+
expected: "(boolean | undefined)",
|
|
871
|
+
value: input.enableNewAnimator
|
|
872
|
+
}),
|
|
873
|
+
void 0 === input.enableNewClipMode || "boolean" == typeof input.enableNewClipMode || _report(_exceptionable, {
|
|
874
|
+
path: _path + ".enableNewClipMode",
|
|
875
|
+
expected: "(boolean | undefined)",
|
|
876
|
+
value: input.enableNewClipMode
|
|
877
|
+
}),
|
|
878
|
+
void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture || _report(_exceptionable, {
|
|
879
|
+
path: _path + ".enableNewGesture",
|
|
880
|
+
expected: "(boolean | undefined)",
|
|
881
|
+
value: input.enableNewGesture
|
|
882
|
+
}),
|
|
883
|
+
void 0 === input.enableNewImage || "boolean" == typeof input.enableNewImage || _report(_exceptionable, {
|
|
884
|
+
path: _path + ".enableNewImage",
|
|
885
|
+
expected: "(boolean | undefined)",
|
|
886
|
+
value: input.enableNewImage
|
|
887
|
+
}),
|
|
888
|
+
void 0 === input.enableNewIntersectionObserver || "boolean" == typeof input.enableNewIntersectionObserver || _report(_exceptionable, {
|
|
889
|
+
path: _path + ".enableNewIntersectionObserver",
|
|
890
|
+
expected: "(boolean | undefined)",
|
|
891
|
+
value: input.enableNewIntersectionObserver
|
|
892
|
+
}),
|
|
893
|
+
void 0 === input.enableNewListContainer || "boolean" == typeof input.enableNewListContainer || _report(_exceptionable, {
|
|
894
|
+
path: _path + ".enableNewListContainer",
|
|
895
|
+
expected: "(boolean | undefined)",
|
|
896
|
+
value: input.enableNewListContainer
|
|
897
|
+
}),
|
|
898
|
+
void 0 === input.enableNewTransformOrigin || "boolean" == typeof input.enableNewTransformOrigin || _report(_exceptionable, {
|
|
899
|
+
path: _path + ".enableNewTransformOrigin",
|
|
900
|
+
expected: "(boolean | undefined)",
|
|
901
|
+
value: input.enableNewTransformOrigin
|
|
902
|
+
}),
|
|
903
|
+
void 0 === input.enablePlatformGesture || "boolean" == typeof input.enablePlatformGesture || _report(_exceptionable, {
|
|
904
|
+
path: _path + ".enablePlatformGesture",
|
|
905
|
+
expected: "(boolean | undefined)",
|
|
906
|
+
value: input.enablePlatformGesture
|
|
907
|
+
}),
|
|
908
|
+
void 0 === input.enablePropertyBasedSimpleStyle || "boolean" == typeof input.enablePropertyBasedSimpleStyle || _report(_exceptionable, {
|
|
909
|
+
path: _path + ".enablePropertyBasedSimpleStyle",
|
|
910
|
+
expected: "(boolean | undefined)",
|
|
911
|
+
value: input.enablePropertyBasedSimpleStyle
|
|
912
|
+
}),
|
|
913
|
+
void 0 === input.enableQueryComponentSync || "boolean" == typeof input.enableQueryComponentSync || _report(_exceptionable, {
|
|
914
|
+
path: _path + ".enableQueryComponentSync",
|
|
915
|
+
expected: "(boolean | undefined)",
|
|
916
|
+
value: input.enableQueryComponentSync
|
|
917
|
+
}),
|
|
918
|
+
void 0 === input.enableReactOnlyPropsId || "boolean" == typeof input.enableReactOnlyPropsId || _report(_exceptionable, {
|
|
919
|
+
path: _path + ".enableReactOnlyPropsId",
|
|
920
|
+
expected: "(boolean | undefined)",
|
|
921
|
+
value: input.enableReactOnlyPropsId
|
|
922
|
+
}),
|
|
923
|
+
void 0 === input.enableReduceInitDataCopy || "boolean" == typeof input.enableReduceInitDataCopy || _report(_exceptionable, {
|
|
924
|
+
path: _path + ".enableReduceInitDataCopy",
|
|
925
|
+
expected: "(boolean | undefined)",
|
|
926
|
+
value: input.enableReduceInitDataCopy
|
|
927
|
+
}),
|
|
928
|
+
void 0 === input.enableReloadLifecycle || "boolean" == typeof input.enableReloadLifecycle || _report(_exceptionable, {
|
|
929
|
+
path: _path + ".enableReloadLifecycle",
|
|
930
|
+
expected: "(boolean | undefined)",
|
|
931
|
+
value: input.enableReloadLifecycle
|
|
932
|
+
}),
|
|
933
|
+
void 0 === input.enableRemoveComponentExtraData || "boolean" == typeof input.enableRemoveComponentExtraData || _report(_exceptionable, {
|
|
934
|
+
path: _path + ".enableRemoveComponentExtraData",
|
|
935
|
+
expected: "(boolean | undefined)",
|
|
936
|
+
value: input.enableRemoveComponentExtraData
|
|
937
|
+
}),
|
|
938
|
+
void 0 === input.enableReuseLoadScriptExports || "boolean" == typeof input.enableReuseLoadScriptExports || _report(_exceptionable, {
|
|
939
|
+
path: _path + ".enableReuseLoadScriptExports",
|
|
940
|
+
expected: "(boolean | undefined)",
|
|
941
|
+
value: input.enableReuseLoadScriptExports
|
|
942
|
+
}),
|
|
943
|
+
void 0 === input.enableSignalAPI || "boolean" == typeof input.enableSignalAPI || _report(_exceptionable, {
|
|
944
|
+
path: _path + ".enableSignalAPI",
|
|
945
|
+
expected: "(boolean | undefined)",
|
|
946
|
+
value: input.enableSignalAPI
|
|
947
|
+
}),
|
|
948
|
+
void 0 === input.enableSimultaneousTap || "boolean" == typeof input.enableSimultaneousTap || _report(_exceptionable, {
|
|
949
|
+
path: _path + ".enableSimultaneousTap",
|
|
950
|
+
expected: "(boolean | undefined)",
|
|
951
|
+
value: input.enableSimultaneousTap
|
|
952
|
+
}),
|
|
953
|
+
void 0 === input.enableTextBoringLayout || "boolean" == typeof input.enableTextBoringLayout || _report(_exceptionable, {
|
|
954
|
+
path: _path + ".enableTextBoringLayout",
|
|
955
|
+
expected: "(boolean | undefined)",
|
|
956
|
+
value: input.enableTextBoringLayout
|
|
957
|
+
}),
|
|
958
|
+
void 0 === input.enableTextGradientOpt || "boolean" == typeof input.enableTextGradientOpt || _report(_exceptionable, {
|
|
959
|
+
path: _path + ".enableTextGradientOpt",
|
|
960
|
+
expected: "(boolean | undefined)",
|
|
961
|
+
value: input.enableTextGradientOpt
|
|
962
|
+
}),
|
|
963
|
+
void 0 === input.enableTextLanguageAlignment || "boolean" == typeof input.enableTextLanguageAlignment || _report(_exceptionable, {
|
|
964
|
+
path: _path + ".enableTextLanguageAlignment",
|
|
965
|
+
expected: "(boolean | undefined)",
|
|
966
|
+
value: input.enableTextLanguageAlignment
|
|
967
|
+
}),
|
|
968
|
+
void 0 === input.enableTextLayerRender || "boolean" == typeof input.enableTextLayerRender || _report(_exceptionable, {
|
|
969
|
+
path: _path + ".enableTextLayerRender",
|
|
970
|
+
expected: "(boolean | undefined)",
|
|
971
|
+
value: input.enableTextLayerRender
|
|
972
|
+
}),
|
|
973
|
+
void 0 === input.enableTextLayoutCache || "boolean" == typeof input.enableTextLayoutCache || _report(_exceptionable, {
|
|
974
|
+
path: _path + ".enableTextLayoutCache",
|
|
975
|
+
expected: "(boolean | undefined)",
|
|
976
|
+
value: input.enableTextLayoutCache
|
|
977
|
+
}),
|
|
978
|
+
void 0 === input.enableTextNonContiguousLayout || "boolean" == typeof input.enableTextNonContiguousLayout || _report(_exceptionable, {
|
|
979
|
+
path: _path + ".enableTextNonContiguousLayout",
|
|
980
|
+
expected: "(boolean | undefined)",
|
|
981
|
+
value: input.enableTextNonContiguousLayout
|
|
982
|
+
}),
|
|
983
|
+
void 0 === input.enableTextOverflow || "boolean" == typeof input.enableTextOverflow || _report(_exceptionable, {
|
|
984
|
+
path: _path + ".enableTextOverflow",
|
|
985
|
+
expected: "(boolean | undefined)",
|
|
986
|
+
value: input.enableTextOverflow
|
|
987
|
+
}),
|
|
988
|
+
void 0 === input.enableTextRefactor || "boolean" == typeof input.enableTextRefactor || _report(_exceptionable, {
|
|
989
|
+
path: _path + ".enableTextRefactor",
|
|
990
|
+
expected: "(boolean | undefined)",
|
|
991
|
+
value: input.enableTextRefactor
|
|
992
|
+
}),
|
|
993
|
+
void 0 === input.enableTouchRefactor || "boolean" == typeof input.enableTouchRefactor || _report(_exceptionable, {
|
|
994
|
+
path: _path + ".enableTouchRefactor",
|
|
995
|
+
expected: "(boolean | undefined)",
|
|
996
|
+
value: input.enableTouchRefactor
|
|
997
|
+
}),
|
|
998
|
+
void 0 === input.enableUIOperationOptimize || "boolean" == typeof input.enableUIOperationOptimize || _report(_exceptionable, {
|
|
999
|
+
path: _path + ".enableUIOperationOptimize",
|
|
1000
|
+
expected: "(boolean | undefined)",
|
|
1001
|
+
value: input.enableUIOperationOptimize
|
|
1002
|
+
}),
|
|
1003
|
+
void 0 === input.enableUnifiedPipeline || "boolean" == typeof input.enableUnifiedPipeline || _report(_exceptionable, {
|
|
1004
|
+
path: _path + ".enableUnifiedPipeline",
|
|
1005
|
+
expected: "(boolean | undefined)",
|
|
1006
|
+
value: input.enableUnifiedPipeline
|
|
1007
|
+
}),
|
|
1008
|
+
void 0 === input.enableUseContextPool || "boolean" == typeof input.enableUseContextPool || _report(_exceptionable, {
|
|
1009
|
+
path: _path + ".enableUseContextPool",
|
|
1010
|
+
expected: "(boolean | undefined)",
|
|
1011
|
+
value: input.enableUseContextPool
|
|
1012
|
+
}),
|
|
1013
|
+
void 0 === input.enableUseMapBuffer || "boolean" == typeof input.enableUseMapBuffer || _report(_exceptionable, {
|
|
1014
|
+
path: _path + ".enableUseMapBuffer",
|
|
1015
|
+
expected: "(boolean | undefined)",
|
|
1016
|
+
value: input.enableUseMapBuffer
|
|
1017
|
+
}),
|
|
1018
|
+
void 0 === input.enableViewReceiveTouch || "boolean" == typeof input.enableViewReceiveTouch || _report(_exceptionable, {
|
|
1019
|
+
path: _path + ".enableViewReceiveTouch",
|
|
1020
|
+
expected: "(boolean | undefined)",
|
|
1021
|
+
value: input.enableViewReceiveTouch
|
|
1022
|
+
}),
|
|
1023
|
+
void 0 === input.enableVsyncAlignedFlush || "boolean" == typeof input.enableVsyncAlignedFlush || _report(_exceptionable, {
|
|
1024
|
+
path: _path + ".enableVsyncAlignedFlush",
|
|
1025
|
+
expected: "(boolean | undefined)",
|
|
1026
|
+
value: input.enableVsyncAlignedFlush
|
|
1027
|
+
}),
|
|
1028
|
+
void 0 === input.enableXTextLayoutReused || "boolean" == typeof input.enableXTextLayoutReused || _report(_exceptionable, {
|
|
1029
|
+
path: _path + ".enableXTextLayoutReused",
|
|
1030
|
+
expected: "(boolean | undefined)",
|
|
1031
|
+
value: input.enableXTextLayoutReused
|
|
1032
|
+
}),
|
|
1033
|
+
void 0 === input.extendedLayoutOnlyOpt || "boolean" == typeof input.extendedLayoutOnlyOpt || _report(_exceptionable, {
|
|
1034
|
+
path: _path + ".extendedLayoutOnlyOpt",
|
|
1035
|
+
expected: "(boolean | undefined)",
|
|
1036
|
+
value: input.extendedLayoutOnlyOpt
|
|
1037
|
+
}),
|
|
1038
|
+
void 0 === input.extraInfo || ("object" == typeof input.extraInfo && null !== input.extraInfo && false === Array.isArray(input.extraInfo) || _report(_exceptionable, {
|
|
1039
|
+
path: _path + ".extraInfo",
|
|
1040
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
1041
|
+
value: input.extraInfo
|
|
1042
|
+
})) && _vo1(input.extraInfo, _path + ".extraInfo", _exceptionable) || _report(_exceptionable, {
|
|
1043
|
+
path: _path + ".extraInfo",
|
|
1044
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
1045
|
+
value: input.extraInfo
|
|
1046
|
+
}),
|
|
1047
|
+
void 0 === input.flatten || "boolean" == typeof input.flatten || _report(_exceptionable, {
|
|
1048
|
+
path: _path + ".flatten",
|
|
1049
|
+
expected: "(boolean | undefined)",
|
|
1050
|
+
value: input.flatten
|
|
1051
|
+
}),
|
|
1052
|
+
void 0 === input.fontScaleEffectiveOnlyOnSp || "boolean" == typeof input.fontScaleEffectiveOnlyOnSp || _report(_exceptionable, {
|
|
1053
|
+
path: _path + ".fontScaleEffectiveOnlyOnSp",
|
|
1054
|
+
expected: "(boolean | undefined)",
|
|
1055
|
+
value: input.fontScaleEffectiveOnlyOnSp
|
|
1056
|
+
}),
|
|
1057
|
+
void 0 === input.implicit || "boolean" == typeof input.implicit || _report(_exceptionable, {
|
|
1058
|
+
path: _path + ".implicit",
|
|
1059
|
+
expected: "(boolean | undefined)",
|
|
1060
|
+
value: input.implicit
|
|
1061
|
+
}),
|
|
1062
|
+
void 0 === input.includeFontPadding || "boolean" == typeof input.includeFontPadding || _report(_exceptionable, {
|
|
1063
|
+
path: _path + ".includeFontPadding",
|
|
1064
|
+
expected: "(boolean | undefined)",
|
|
1065
|
+
value: input.includeFontPadding
|
|
1066
|
+
}),
|
|
1067
|
+
void 0 === input.keyboardCallbackPassRelativeHeight || "boolean" == typeof input.keyboardCallbackPassRelativeHeight || _report(_exceptionable, {
|
|
1068
|
+
path: _path + ".keyboardCallbackPassRelativeHeight",
|
|
1069
|
+
expected: "(boolean | undefined)",
|
|
1070
|
+
value: input.keyboardCallbackPassRelativeHeight
|
|
1071
|
+
}),
|
|
1072
|
+
void 0 === input.longPressDuration || "number" == typeof input.longPressDuration || _report(_exceptionable, {
|
|
1073
|
+
path: _path + ".longPressDuration",
|
|
1074
|
+
expected: "(number | undefined)",
|
|
1075
|
+
value: input.longPressDuration
|
|
1076
|
+
}),
|
|
1077
|
+
void 0 === input.observerFrameRate || "number" == typeof input.observerFrameRate || _report(_exceptionable, {
|
|
1078
|
+
path: _path + ".observerFrameRate",
|
|
1079
|
+
expected: "(number | undefined)",
|
|
1080
|
+
value: input.observerFrameRate
|
|
1081
|
+
}),
|
|
1082
|
+
void 0 === input.pipelineSchedulerConfig || "number" == typeof input.pipelineSchedulerConfig || _report(_exceptionable, {
|
|
1083
|
+
path: _path + ".pipelineSchedulerConfig",
|
|
1084
|
+
expected: "(number | undefined)",
|
|
1085
|
+
value: input.pipelineSchedulerConfig
|
|
1086
|
+
}),
|
|
1087
|
+
void 0 === input.preferredFps || "string" == typeof input.preferredFps || _report(_exceptionable, {
|
|
1088
|
+
path: _path + ".preferredFps",
|
|
1089
|
+
expected: "(string | undefined)",
|
|
1090
|
+
value: input.preferredFps
|
|
1091
|
+
}),
|
|
1092
|
+
void 0 === input.quirksMode || "string" == typeof input.quirksMode || "boolean" == typeof input.quirksMode || _report(_exceptionable, {
|
|
1093
|
+
path: _path + ".quirksMode",
|
|
1094
|
+
expected: "(boolean | string | undefined)",
|
|
1095
|
+
value: input.quirksMode
|
|
1096
|
+
}),
|
|
1097
|
+
void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope || _report(_exceptionable, {
|
|
1098
|
+
path: _path + ".removeDescendantSelectorScope",
|
|
1099
|
+
expected: "(boolean | undefined)",
|
|
1100
|
+
value: input.removeDescendantSelectorScope
|
|
1101
|
+
}),
|
|
1102
|
+
void 0 === input.strictPropType || "boolean" == typeof input.strictPropType || _report(_exceptionable, {
|
|
1103
|
+
path: _path + ".strictPropType",
|
|
1104
|
+
expected: "(boolean | undefined)",
|
|
1105
|
+
value: input.strictPropType
|
|
1106
|
+
}),
|
|
1107
|
+
void 0 === input.tapSlop || "string" == typeof input.tapSlop || _report(_exceptionable, {
|
|
1108
|
+
path: _path + ".tapSlop",
|
|
1109
|
+
expected: "(string | undefined)",
|
|
1110
|
+
value: input.tapSlop
|
|
1111
|
+
}),
|
|
1112
|
+
void 0 === input.trailNewImage || "boolean" == typeof input.trailNewImage || _report(_exceptionable, {
|
|
1113
|
+
path: _path + ".trailNewImage",
|
|
1114
|
+
expected: "(boolean | undefined)",
|
|
1115
|
+
value: input.trailNewImage
|
|
1116
|
+
}),
|
|
1117
|
+
void 0 === input.unifyVWVHBehavior || "boolean" == typeof input.unifyVWVHBehavior || _report(_exceptionable, {
|
|
1118
|
+
path: _path + ".unifyVWVHBehavior",
|
|
1119
|
+
expected: "(boolean | undefined)",
|
|
1120
|
+
value: input.unifyVWVHBehavior
|
|
1121
|
+
}),
|
|
1122
|
+
void 0 === input.useImagePostProcessor || "boolean" == typeof input.useImagePostProcessor || _report(_exceptionable, {
|
|
1123
|
+
path: _path + ".useImagePostProcessor",
|
|
1124
|
+
expected: "(boolean | undefined)",
|
|
1125
|
+
value: input.useImagePostProcessor
|
|
1126
|
+
}),
|
|
1127
|
+
void 0 === input.useNewSwiper || "boolean" == typeof input.useNewSwiper || _report(_exceptionable, {
|
|
1128
|
+
path: _path + ".useNewSwiper",
|
|
1129
|
+
expected: "(boolean | undefined)",
|
|
1130
|
+
value: input.useNewSwiper
|
|
1131
|
+
}),
|
|
1132
|
+
void 0 === input.autoResumeAnimation || "boolean" == typeof input.autoResumeAnimation || _report(_exceptionable, {
|
|
1133
|
+
path: _path + ".autoResumeAnimation",
|
|
1134
|
+
expected: "(boolean | undefined)",
|
|
1135
|
+
value: input.autoResumeAnimation
|
|
1136
|
+
}),
|
|
1137
|
+
void 0 === input.cli || "string" == typeof input.cli || _report(_exceptionable, {
|
|
1138
|
+
path: _path + ".cli",
|
|
1139
|
+
expected: "(string | undefined)",
|
|
1140
|
+
value: input.cli
|
|
1141
|
+
}),
|
|
1142
|
+
void 0 === input.compileRender || "boolean" == typeof input.compileRender || _report(_exceptionable, {
|
|
1143
|
+
path: _path + ".compileRender",
|
|
1144
|
+
expected: "(boolean | undefined)",
|
|
1145
|
+
value: input.compileRender
|
|
1146
|
+
}),
|
|
1147
|
+
void 0 === input.customData || "string" == typeof input.customData || _report(_exceptionable, {
|
|
1148
|
+
path: _path + ".customData",
|
|
1149
|
+
expected: "(string | undefined)",
|
|
1150
|
+
value: input.customData
|
|
1151
|
+
}),
|
|
1152
|
+
void 0 === input.enableA11yIDMutationObserver || "boolean" == typeof input.enableA11yIDMutationObserver || _report(_exceptionable, {
|
|
1153
|
+
path: _path + ".enableA11yIDMutationObserver",
|
|
1154
|
+
expected: "(boolean | undefined)",
|
|
1155
|
+
value: input.enableA11yIDMutationObserver
|
|
1156
|
+
}),
|
|
1157
|
+
void 0 === input.enableAsyncDisplay || "boolean" == typeof input.enableAsyncDisplay || _report(_exceptionable, {
|
|
1158
|
+
path: _path + ".enableAsyncDisplay",
|
|
1159
|
+
expected: "(boolean | undefined)",
|
|
1160
|
+
value: input.enableAsyncDisplay
|
|
1161
|
+
}),
|
|
1162
|
+
void 0 === input.enableBackgroundShapeLayer || "boolean" == typeof input.enableBackgroundShapeLayer || _report(_exceptionable, {
|
|
1163
|
+
path: _path + ".enableBackgroundShapeLayer",
|
|
1164
|
+
expected: "(boolean | undefined)",
|
|
1165
|
+
value: input.enableBackgroundShapeLayer
|
|
1166
|
+
}),
|
|
1167
|
+
void 0 === input.enableCascadePseudo || "boolean" == typeof input.enableCascadePseudo || _report(_exceptionable, {
|
|
1168
|
+
path: _path + ".enableCascadePseudo",
|
|
1169
|
+
expected: "(boolean | undefined)",
|
|
1170
|
+
value: input.enableCascadePseudo
|
|
1171
|
+
}),
|
|
1172
|
+
void 0 === input.enableCheckDataWhenUpdatePage || "boolean" == typeof input.enableCheckDataWhenUpdatePage || _report(_exceptionable, {
|
|
1173
|
+
path: _path + ".enableCheckDataWhenUpdatePage",
|
|
1174
|
+
expected: "(boolean | undefined)",
|
|
1175
|
+
value: input.enableCheckDataWhenUpdatePage
|
|
1176
|
+
}),
|
|
1177
|
+
void 0 === input.enableComponentLayoutOnly || "boolean" == typeof input.enableComponentLayoutOnly || _report(_exceptionable, {
|
|
1178
|
+
path: _path + ".enableComponentLayoutOnly",
|
|
1179
|
+
expected: "(boolean | undefined)",
|
|
1180
|
+
value: input.enableComponentLayoutOnly
|
|
1181
|
+
}),
|
|
1182
|
+
void 0 === input.enableGlobalComponentMap || "boolean" == typeof input.enableGlobalComponentMap || _report(_exceptionable, {
|
|
1183
|
+
path: _path + ".enableGlobalComponentMap",
|
|
1184
|
+
expected: "(boolean | undefined)",
|
|
1185
|
+
value: input.enableGlobalComponentMap
|
|
1186
|
+
}),
|
|
1187
|
+
void 0 === input.enableNativeScheduleCreateViewAsync || "boolean" == typeof input.enableNativeScheduleCreateViewAsync || _report(_exceptionable, {
|
|
1188
|
+
path: _path + ".enableNativeScheduleCreateViewAsync",
|
|
1189
|
+
expected: "(boolean | undefined)",
|
|
1190
|
+
value: input.enableNativeScheduleCreateViewAsync
|
|
1191
|
+
}),
|
|
1192
|
+
void 0 === input.enableNewAccessibility || "boolean" == typeof input.enableNewAccessibility || _report(_exceptionable, {
|
|
1193
|
+
path: _path + ".enableNewAccessibility",
|
|
1194
|
+
expected: "(boolean | undefined)",
|
|
1195
|
+
value: input.enableNewAccessibility
|
|
1196
|
+
}),
|
|
1197
|
+
void 0 === input.enableNewLayoutOnly || "boolean" == typeof input.enableNewLayoutOnly || _report(_exceptionable, {
|
|
1198
|
+
path: _path + ".enableNewLayoutOnly",
|
|
1199
|
+
expected: "(boolean | undefined)",
|
|
1200
|
+
value: input.enableNewLayoutOnly
|
|
1201
|
+
}),
|
|
1202
|
+
void 0 === input.enableOptPushStyleToBundle || "boolean" == typeof input.enableOptPushStyleToBundle || _report(_exceptionable, {
|
|
1203
|
+
path: _path + ".enableOptPushStyleToBundle",
|
|
1204
|
+
expected: "(boolean | undefined)",
|
|
1205
|
+
value: input.enableOptPushStyleToBundle
|
|
1206
|
+
}),
|
|
1207
|
+
void 0 === input.enableOverlapForAccessibilityElement || "boolean" == typeof input.enableOverlapForAccessibilityElement || _report(_exceptionable, {
|
|
1208
|
+
path: _path + ".enableOverlapForAccessibilityElement",
|
|
1209
|
+
expected: "(boolean | undefined)",
|
|
1210
|
+
value: input.enableOverlapForAccessibilityElement
|
|
1211
|
+
}),
|
|
1212
|
+
void 0 === input.fixCSSImportRuleOrder || "boolean" == typeof input.fixCSSImportRuleOrder || _report(_exceptionable, {
|
|
1213
|
+
path: _path + ".fixCSSImportRuleOrder",
|
|
1214
|
+
expected: "(boolean | undefined)",
|
|
1215
|
+
value: input.fixCSSImportRuleOrder
|
|
1216
|
+
}),
|
|
1217
|
+
void 0 === input.forceCalcNewStyle || "boolean" == typeof input.forceCalcNewStyle || _report(_exceptionable, {
|
|
1218
|
+
path: _path + ".forceCalcNewStyle",
|
|
1219
|
+
expected: "(boolean | undefined)",
|
|
1220
|
+
value: input.forceCalcNewStyle
|
|
1221
|
+
}),
|
|
1222
|
+
void 0 === input.reactVersion || "string" == typeof input.reactVersion || _report(_exceptionable, {
|
|
1223
|
+
path: _path + ".reactVersion",
|
|
1224
|
+
expected: "(string | undefined)",
|
|
1225
|
+
value: input.reactVersion
|
|
1226
|
+
}),
|
|
1227
|
+
void 0 === input.redBoxImageSizeWarningThreshold || "number" == typeof input.redBoxImageSizeWarningThreshold || _report(_exceptionable, {
|
|
1228
|
+
path: _path + ".redBoxImageSizeWarningThreshold",
|
|
1229
|
+
expected: "(number | undefined)",
|
|
1230
|
+
value: input.redBoxImageSizeWarningThreshold
|
|
1231
|
+
}),
|
|
1232
|
+
void 0 === input.removeComponentElement || "boolean" == typeof input.removeComponentElement || _report(_exceptionable, {
|
|
1233
|
+
path: _path + ".removeComponentElement",
|
|
1234
|
+
expected: "(boolean | undefined)",
|
|
1235
|
+
value: input.removeComponentElement
|
|
1236
|
+
}),
|
|
1237
|
+
void 0 === input.syncImageAttach || "boolean" == typeof input.syncImageAttach || _report(_exceptionable, {
|
|
1238
|
+
path: _path + ".syncImageAttach",
|
|
1239
|
+
expected: "(boolean | undefined)",
|
|
1240
|
+
value: input.syncImageAttach
|
|
1241
|
+
}),
|
|
1242
|
+
void 0 === input.useNewImage || "boolean" == typeof input.useNewImage || _report(_exceptionable, {
|
|
1243
|
+
path: _path + ".useNewImage",
|
|
1244
|
+
expected: "(boolean | undefined)",
|
|
1245
|
+
value: input.useNewImage
|
|
1246
|
+
}),
|
|
1247
|
+
void 0 === input.version || "string" == typeof input.version || _report(_exceptionable, {
|
|
1248
|
+
path: _path + ".version",
|
|
1249
|
+
expected: "(string | undefined)",
|
|
1250
|
+
value: input.version
|
|
1251
|
+
}),
|
|
1252
|
+
void 0 === input.debugInfoOutside || "boolean" == typeof input.debugInfoOutside || _report(_exceptionable, {
|
|
1253
|
+
path: _path + ".debugInfoOutside",
|
|
1254
|
+
expected: "(boolean | undefined)",
|
|
1255
|
+
value: input.debugInfoOutside
|
|
1256
|
+
}),
|
|
1257
|
+
void 0 === input.defaultDisplayLinear || "boolean" == typeof input.defaultDisplayLinear || _report(_exceptionable, {
|
|
1258
|
+
path: _path + ".defaultDisplayLinear",
|
|
1259
|
+
expected: "(boolean | undefined)",
|
|
1260
|
+
value: input.defaultDisplayLinear
|
|
1261
|
+
}),
|
|
1262
|
+
void 0 === input.defaultOverflowVisible || "boolean" == typeof input.defaultOverflowVisible || _report(_exceptionable, {
|
|
1263
|
+
path: _path + ".defaultOverflowVisible",
|
|
1264
|
+
expected: "(boolean | undefined)",
|
|
1265
|
+
value: input.defaultOverflowVisible
|
|
1266
|
+
}),
|
|
1267
|
+
void 0 === input.disableMultipleCascadeCSS || "boolean" == typeof input.disableMultipleCascadeCSS || _report(_exceptionable, {
|
|
1268
|
+
path: _path + ".disableMultipleCascadeCSS",
|
|
1269
|
+
expected: "(boolean | undefined)",
|
|
1270
|
+
value: input.disableMultipleCascadeCSS
|
|
1271
|
+
}),
|
|
1272
|
+
void 0 === input.enableComponentConfig || "boolean" == typeof input.enableComponentConfig || _report(_exceptionable, {
|
|
1273
|
+
path: _path + ".enableComponentConfig",
|
|
1274
|
+
expected: "(boolean | undefined)",
|
|
1275
|
+
value: input.enableComponentConfig
|
|
1276
|
+
}),
|
|
1277
|
+
void 0 === input.enableCSSAsyncDecode || "boolean" == typeof input.enableCSSAsyncDecode || _report(_exceptionable, {
|
|
1278
|
+
path: _path + ".enableCSSAsyncDecode",
|
|
1279
|
+
expected: "(boolean | undefined)",
|
|
1280
|
+
value: input.enableCSSAsyncDecode
|
|
1281
|
+
}),
|
|
1282
|
+
void 0 === input.enableCSSClassMerge || "boolean" == typeof input.enableCSSClassMerge || _report(_exceptionable, {
|
|
1283
|
+
path: _path + ".enableCSSClassMerge",
|
|
1284
|
+
expected: "(boolean | undefined)",
|
|
1285
|
+
value: input.enableCSSClassMerge
|
|
1286
|
+
}),
|
|
1287
|
+
void 0 === input.enableCSSEngine || "boolean" == typeof input.enableCSSEngine || _report(_exceptionable, {
|
|
1288
|
+
path: _path + ".enableCSSEngine",
|
|
1289
|
+
expected: "(boolean | undefined)",
|
|
1290
|
+
value: input.enableCSSEngine
|
|
1291
|
+
}),
|
|
1292
|
+
void 0 === input.enableCSSExternalClass || "boolean" == typeof input.enableCSSExternalClass || _report(_exceptionable, {
|
|
1293
|
+
path: _path + ".enableCSSExternalClass",
|
|
1294
|
+
expected: "(boolean | undefined)",
|
|
1295
|
+
value: input.enableCSSExternalClass
|
|
1296
|
+
}),
|
|
1297
|
+
void 0 === input.enableCSSInvalidation || "boolean" == typeof input.enableCSSInvalidation || _report(_exceptionable, {
|
|
1298
|
+
path: _path + ".enableCSSInvalidation",
|
|
1299
|
+
expected: "(boolean | undefined)",
|
|
1300
|
+
value: input.enableCSSInvalidation
|
|
1301
|
+
}),
|
|
1302
|
+
void 0 === input.enableCSSLazyDecode || "boolean" == typeof input.enableCSSLazyDecode || _report(_exceptionable, {
|
|
1303
|
+
path: _path + ".enableCSSLazyDecode",
|
|
1304
|
+
expected: "(boolean | undefined)",
|
|
1305
|
+
value: input.enableCSSLazyDecode
|
|
1306
|
+
}),
|
|
1307
|
+
void 0 === input.enableCSSSelector || "boolean" == typeof input.enableCSSSelector || _report(_exceptionable, {
|
|
1308
|
+
path: _path + ".enableCSSSelector",
|
|
1309
|
+
expected: "(boolean | undefined)",
|
|
1310
|
+
value: input.enableCSSSelector
|
|
1311
|
+
}),
|
|
1312
|
+
void 0 === input.enableCSSStrictMode || "boolean" == typeof input.enableCSSStrictMode || _report(_exceptionable, {
|
|
1313
|
+
path: _path + ".enableCSSStrictMode",
|
|
1314
|
+
expected: "(boolean | undefined)",
|
|
1315
|
+
value: input.enableCSSStrictMode
|
|
1316
|
+
}),
|
|
1317
|
+
void 0 === input.enableCSSVariable || "boolean" == typeof input.enableCSSVariable || _report(_exceptionable, {
|
|
1318
|
+
path: _path + ".enableCSSVariable",
|
|
1319
|
+
expected: "(boolean | undefined)",
|
|
1320
|
+
value: input.enableCSSVariable
|
|
1321
|
+
}),
|
|
1322
|
+
void 0 === input.enableEventRefactor || "boolean" == typeof input.enableEventRefactor || _report(_exceptionable, {
|
|
1323
|
+
path: _path + ".enableEventRefactor",
|
|
1324
|
+
expected: "(boolean | undefined)",
|
|
1325
|
+
value: input.enableEventRefactor
|
|
1326
|
+
}),
|
|
1327
|
+
void 0 === input.enableFiberArch || "boolean" == typeof input.enableFiberArch || _report(_exceptionable, {
|
|
1328
|
+
path: _path + ".enableFiberArch",
|
|
1329
|
+
expected: "(boolean | undefined)",
|
|
1330
|
+
value: input.enableFiberArch
|
|
1331
|
+
}),
|
|
1332
|
+
void 0 === input.enableFlexibleTemplate || "boolean" == typeof input.enableFlexibleTemplate || _report(_exceptionable, {
|
|
1333
|
+
path: _path + ".enableFlexibleTemplate",
|
|
1334
|
+
expected: "(boolean | undefined)",
|
|
1335
|
+
value: input.enableFlexibleTemplate
|
|
1336
|
+
}),
|
|
1337
|
+
void 0 === input.enableKeepPageData || "boolean" == typeof input.enableKeepPageData || _report(_exceptionable, {
|
|
1338
|
+
path: _path + ".enableKeepPageData",
|
|
1339
|
+
expected: "(boolean | undefined)",
|
|
1340
|
+
value: input.enableKeepPageData
|
|
1341
|
+
}),
|
|
1342
|
+
void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope || _report(_exceptionable, {
|
|
1343
|
+
path: _path + ".enableRemoveCSSScope",
|
|
1344
|
+
expected: "(boolean | undefined)",
|
|
1345
|
+
value: input.enableRemoveCSSScope
|
|
1346
|
+
}),
|
|
1347
|
+
void 0 === input.enableSimpleStyling || "boolean" == typeof input.enableSimpleStyling || _report(_exceptionable, {
|
|
1348
|
+
path: _path + ".enableSimpleStyling",
|
|
1349
|
+
expected: "(boolean | undefined)",
|
|
1350
|
+
value: input.enableSimpleStyling
|
|
1351
|
+
}),
|
|
1352
|
+
void 0 === input.experimental_encodeQuickjsBytecode || "boolean" == typeof input.experimental_encodeQuickjsBytecode || _report(_exceptionable, {
|
|
1353
|
+
path: _path + ".experimental_encodeQuickjsBytecode",
|
|
1354
|
+
expected: "(boolean | undefined)",
|
|
1355
|
+
value: input.experimental_encodeQuickjsBytecode
|
|
1356
|
+
}),
|
|
1357
|
+
void 0 === input.implicitAnimation || "boolean" == typeof input.implicitAnimation || _report(_exceptionable, {
|
|
1358
|
+
path: _path + ".implicitAnimation",
|
|
1359
|
+
expected: "(boolean | undefined)",
|
|
1360
|
+
value: input.implicitAnimation
|
|
1361
|
+
}),
|
|
1362
|
+
void 0 === input.removeCSSParserLog || "boolean" == typeof input.removeCSSParserLog || _report(_exceptionable, {
|
|
1363
|
+
path: _path + ".removeCSSParserLog",
|
|
1364
|
+
expected: "(boolean | undefined)",
|
|
1365
|
+
value: input.removeCSSParserLog
|
|
1366
|
+
}),
|
|
1367
|
+
void 0 === input.targetSdkVersion || "string" == typeof input.targetSdkVersion || _report(_exceptionable, {
|
|
1368
|
+
path: _path + ".targetSdkVersion",
|
|
1369
|
+
expected: "(string | undefined)",
|
|
1370
|
+
value: input.targetSdkVersion
|
|
1371
|
+
}),
|
|
1372
|
+
void 0 === input.templateDebugUrl || "string" == typeof input.templateDebugUrl || _report(_exceptionable, {
|
|
1373
|
+
path: _path + ".templateDebugUrl",
|
|
1374
|
+
expected: "(string | undefined)",
|
|
1375
|
+
value: input.templateDebugUrl
|
|
1376
|
+
}),
|
|
1377
|
+
0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
1378
|
+
if ([
|
|
1379
|
+
"absoluteInContentBound",
|
|
1380
|
+
"asyncRedirect",
|
|
1381
|
+
"autoExpose",
|
|
1382
|
+
"CSSAlignWithLegacyW3C",
|
|
1383
|
+
"customCSSInheritanceList",
|
|
1384
|
+
"dataStrictMode",
|
|
1385
|
+
"disableLongpressAfterScroll",
|
|
1386
|
+
"disableQuickTracingGC",
|
|
1387
|
+
"enableA11y",
|
|
1388
|
+
"enableAccessibilityElement",
|
|
1389
|
+
"enableAsyncInitVideoEngine",
|
|
1390
|
+
"enableAsyncRequestImage",
|
|
1391
|
+
"enableAsyncResolveSubtree",
|
|
1392
|
+
"enableCheckExposureOptimize",
|
|
1393
|
+
"enableCheckLocalImage",
|
|
1394
|
+
"enableCircularDataCheck",
|
|
1395
|
+
"enableComponentAsyncDecode",
|
|
1396
|
+
"enableComponentNullProp",
|
|
1397
|
+
"enableCreateViewAsync",
|
|
1398
|
+
"enableCSSInheritance",
|
|
1399
|
+
"enableCSSInlineVariables",
|
|
1400
|
+
"enableCSSLazyImport",
|
|
1401
|
+
"enableDisexposureWhenLynxHidden",
|
|
1402
|
+
"enableEndGestureAtLastFingerUp",
|
|
1403
|
+
"enableEventHandleRefactor",
|
|
1404
|
+
"enableEventThrough",
|
|
1405
|
+
"enableExposureUIMargin",
|
|
1406
|
+
"enableExposureWhenLayout",
|
|
1407
|
+
"enableExposureWhenReload",
|
|
1408
|
+
"enableFixedNew",
|
|
1409
|
+
"enableHarmonyNewOverlay",
|
|
1410
|
+
"enableHarmonyVisibleAreaChangeForExposure",
|
|
1411
|
+
"enableICU",
|
|
1412
|
+
"enableImageDownsampling",
|
|
1413
|
+
"enableJsBindingApiThrowException",
|
|
1414
|
+
"enableJSDataProcessor",
|
|
1415
|
+
"enableListMoveOperation",
|
|
1416
|
+
"enableListNewArchitecture",
|
|
1417
|
+
"enableListPlug",
|
|
1418
|
+
"enableLynxScrollFluency",
|
|
1419
|
+
"enableMicrotaskPromisePolyfill",
|
|
1420
|
+
"enableMultiTouch",
|
|
1421
|
+
"enableMultiTouchParamsCompatible",
|
|
1422
|
+
"enableNativeList",
|
|
1423
|
+
"enableNewAnimator",
|
|
1424
|
+
"enableNewClipMode",
|
|
1425
|
+
"enableNewGesture",
|
|
1426
|
+
"enableNewImage",
|
|
1427
|
+
"enableNewIntersectionObserver",
|
|
1428
|
+
"enableNewListContainer",
|
|
1429
|
+
"enableNewTransformOrigin",
|
|
1430
|
+
"enablePlatformGesture",
|
|
1431
|
+
"enablePropertyBasedSimpleStyle",
|
|
1432
|
+
"enableQueryComponentSync",
|
|
1433
|
+
"enableReactOnlyPropsId",
|
|
1434
|
+
"enableReduceInitDataCopy",
|
|
1435
|
+
"enableReloadLifecycle",
|
|
1436
|
+
"enableRemoveComponentExtraData",
|
|
1437
|
+
"enableReuseLoadScriptExports",
|
|
1438
|
+
"enableSignalAPI",
|
|
1439
|
+
"enableSimultaneousTap",
|
|
1440
|
+
"enableTextBoringLayout",
|
|
1441
|
+
"enableTextGradientOpt",
|
|
1442
|
+
"enableTextLanguageAlignment",
|
|
1443
|
+
"enableTextLayerRender",
|
|
1444
|
+
"enableTextLayoutCache",
|
|
1445
|
+
"enableTextNonContiguousLayout",
|
|
1446
|
+
"enableTextOverflow",
|
|
1447
|
+
"enableTextRefactor",
|
|
1448
|
+
"enableTouchRefactor",
|
|
1449
|
+
"enableUIOperationOptimize",
|
|
1450
|
+
"enableUnifiedPipeline",
|
|
1451
|
+
"enableUseContextPool",
|
|
1452
|
+
"enableUseMapBuffer",
|
|
1453
|
+
"enableViewReceiveTouch",
|
|
1454
|
+
"enableVsyncAlignedFlush",
|
|
1455
|
+
"enableXTextLayoutReused",
|
|
1456
|
+
"extendedLayoutOnlyOpt",
|
|
1457
|
+
"extraInfo",
|
|
1458
|
+
"flatten",
|
|
1459
|
+
"fontScaleEffectiveOnlyOnSp",
|
|
1460
|
+
"implicit",
|
|
1461
|
+
"includeFontPadding",
|
|
1462
|
+
"keyboardCallbackPassRelativeHeight",
|
|
1463
|
+
"longPressDuration",
|
|
1464
|
+
"observerFrameRate",
|
|
1465
|
+
"pipelineSchedulerConfig",
|
|
1466
|
+
"preferredFps",
|
|
1467
|
+
"quirksMode",
|
|
1468
|
+
"removeDescendantSelectorScope",
|
|
1469
|
+
"strictPropType",
|
|
1470
|
+
"tapSlop",
|
|
1471
|
+
"trailNewImage",
|
|
1472
|
+
"unifyVWVHBehavior",
|
|
1473
|
+
"useImagePostProcessor",
|
|
1474
|
+
"useNewSwiper",
|
|
1475
|
+
"autoResumeAnimation",
|
|
1476
|
+
"cli",
|
|
1477
|
+
"compileRender",
|
|
1478
|
+
"customData",
|
|
1479
|
+
"enableA11yIDMutationObserver",
|
|
1480
|
+
"enableAsyncDisplay",
|
|
1481
|
+
"enableBackgroundShapeLayer",
|
|
1482
|
+
"enableCascadePseudo",
|
|
1483
|
+
"enableCheckDataWhenUpdatePage",
|
|
1484
|
+
"enableComponentLayoutOnly",
|
|
1485
|
+
"enableGlobalComponentMap",
|
|
1486
|
+
"enableNativeScheduleCreateViewAsync",
|
|
1487
|
+
"enableNewAccessibility",
|
|
1488
|
+
"enableNewLayoutOnly",
|
|
1489
|
+
"enableOptPushStyleToBundle",
|
|
1490
|
+
"enableOverlapForAccessibilityElement",
|
|
1491
|
+
"fixCSSImportRuleOrder",
|
|
1492
|
+
"forceCalcNewStyle",
|
|
1493
|
+
"reactVersion",
|
|
1494
|
+
"redBoxImageSizeWarningThreshold",
|
|
1495
|
+
"removeComponentElement",
|
|
1496
|
+
"syncImageAttach",
|
|
1497
|
+
"useNewImage",
|
|
1498
|
+
"version",
|
|
1499
|
+
"debugInfoOutside",
|
|
1500
|
+
"defaultDisplayLinear",
|
|
1501
|
+
"defaultOverflowVisible",
|
|
1502
|
+
"disableMultipleCascadeCSS",
|
|
1503
|
+
"enableComponentConfig",
|
|
1504
|
+
"enableCSSAsyncDecode",
|
|
1505
|
+
"enableCSSClassMerge",
|
|
1506
|
+
"enableCSSEngine",
|
|
1507
|
+
"enableCSSExternalClass",
|
|
1508
|
+
"enableCSSInvalidation",
|
|
1509
|
+
"enableCSSLazyDecode",
|
|
1510
|
+
"enableCSSSelector",
|
|
1511
|
+
"enableCSSStrictMode",
|
|
1512
|
+
"enableCSSVariable",
|
|
1513
|
+
"enableEventRefactor",
|
|
1514
|
+
"enableFiberArch",
|
|
1515
|
+
"enableFlexibleTemplate",
|
|
1516
|
+
"enableKeepPageData",
|
|
1517
|
+
"enableRemoveCSSScope",
|
|
1518
|
+
"enableSimpleStyling",
|
|
1519
|
+
"experimental_encodeQuickjsBytecode",
|
|
1520
|
+
"implicitAnimation",
|
|
1521
|
+
"removeCSSParserLog",
|
|
1522
|
+
"targetSdkVersion",
|
|
1523
|
+
"templateDebugUrl"
|
|
1524
|
+
].some((prop)=>key === prop)) return true;
|
|
1525
|
+
const value = input[key];
|
|
1526
|
+
if (void 0 === value) return true;
|
|
1527
|
+
return _report(_exceptionable, {
|
|
1528
|
+
path: _path + _accessExpressionAsString._accessExpressionAsString(key),
|
|
1529
|
+
expected: "undefined",
|
|
1530
|
+
value: value,
|
|
1531
|
+
description: [
|
|
1532
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
1533
|
+
"",
|
|
1534
|
+
"Please remove the property next time."
|
|
1535
|
+
].join("\n")
|
|
1536
|
+
});
|
|
1537
|
+
}).every((flag)=>flag)
|
|
1538
|
+
].every((flag)=>flag);
|
|
1539
|
+
const _vo1 = (input, _path, _exceptionable = true)=>[
|
|
1540
|
+
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
1541
|
+
input[key];
|
|
1542
|
+
return true;
|
|
1543
|
+
}).every((flag)=>flag)
|
|
1544
|
+
].every((flag)=>flag);
|
|
1545
|
+
const __is = (input, _exceptionable = true)=>"object" == typeof input && null !== input && false === Array.isArray(input) && _io0(input, true);
|
|
1546
|
+
let errors;
|
|
1547
|
+
let _report;
|
|
1548
|
+
return _createStandardSchema._createStandardSchema((input)=>{
|
|
1549
|
+
if (false === __is(input)) {
|
|
1550
|
+
errors = [];
|
|
1551
|
+
_report = _validateReport._validateReport(errors);
|
|
1552
|
+
((input, _path, _exceptionable = true)=>("object" == typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
1553
|
+
path: _path + "",
|
|
1554
|
+
expected: "Config",
|
|
1555
|
+
value: input
|
|
1556
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1557
|
+
path: _path + "",
|
|
1558
|
+
expected: "Config",
|
|
1559
|
+
value: input
|
|
1560
|
+
}))(input, "$input", true);
|
|
1561
|
+
const success = 0 === errors.length;
|
|
1562
|
+
return success ? {
|
|
1563
|
+
success,
|
|
1564
|
+
data: input
|
|
1565
|
+
} : {
|
|
1566
|
+
success,
|
|
1567
|
+
errors,
|
|
1568
|
+
data: input
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
return {
|
|
1572
|
+
success: true,
|
|
1573
|
+
data: input
|
|
1574
|
+
};
|
|
1575
|
+
});
|
|
1576
|
+
})();
|
|
1577
|
+
function validate_validate(input) {
|
|
1578
|
+
const result = validateConfig(input);
|
|
1579
|
+
if (result.success) return result.data;
|
|
1580
|
+
const messages = result.errors.flatMap(({ expected, path, value })=>{
|
|
1581
|
+
if ('undefined' === expected) return [
|
|
1582
|
+
` Unsupported configuration: \`${picocolors_default().red(path)}\``,
|
|
1583
|
+
''
|
|
1584
|
+
];
|
|
1585
|
+
return [
|
|
1586
|
+
`Invalid config on \`${picocolors_default().red(path)}\`.`,
|
|
1587
|
+
` - Expect to be ${picocolors_default().green(expected)}`,
|
|
1588
|
+
` - Got: ${picocolors_default().red(whatIs(value))}`,
|
|
1589
|
+
''
|
|
1590
|
+
];
|
|
1591
|
+
});
|
|
1592
|
+
throw new Error([
|
|
1593
|
+
'[pluginLynxConfig] Invalid configuration.',
|
|
1594
|
+
''
|
|
1595
|
+
].concat(messages).join('\n'));
|
|
1596
|
+
}
|
|
1597
|
+
function whatIs(value) {
|
|
1598
|
+
return Object.prototype.toString.call(value).replace(/^\[object\s+([a-z]+)\]$/i, '$1').toLowerCase();
|
|
1599
|
+
}
|
|
1600
|
+
const defaultDslPluginName2PkgName = {
|
|
1601
|
+
'lynx:react': '@lynx-js/react-rsbuild-plugin'
|
|
1602
|
+
};
|
|
1603
|
+
const defaultUpgradeRspeedyLink = 'https://www.npmjs.com/package/upgrade-rspeedy';
|
|
1604
|
+
function pluginLynxConfig(config, options) {
|
|
1605
|
+
const { compilerOptionsKeys = type_config_compilerOptionsKeys, configKeys = type_config_configKeys, validate = validate_validate, dslPluginName2PkgName = defaultDslPluginName2PkgName, upgradeRspeedyLink = defaultUpgradeRspeedyLink } = options ?? {};
|
|
1606
|
+
validate(config);
|
|
1607
|
+
return {
|
|
1608
|
+
name: 'lynx:config',
|
|
1609
|
+
async setup (api) {
|
|
1610
|
+
api.expose(Symbol.for('lynx.config'), {
|
|
1611
|
+
config
|
|
1612
|
+
});
|
|
1613
|
+
api.modifyBundlerChain((chain)=>{
|
|
1614
|
+
const exposed = api.useExposed(Symbol.for('LynxTemplatePlugin'));
|
|
1615
|
+
if (!exposed) {
|
|
1616
|
+
let pkgName = 'Rspeedy and plugins';
|
|
1617
|
+
Object.entries(dslPluginName2PkgName).forEach(([dslPluginName, pluginPkgName])=>{
|
|
1618
|
+
if (api.isPluginExists(dslPluginName)) pkgName = pluginPkgName;
|
|
1619
|
+
});
|
|
1620
|
+
throw new Error(`\
|
|
1621
|
+
[pluginLynxConfig] No \`LynxTemplatePlugin\` exposed to ${terminalLink('the plugin API', 'https://rsbuild.rs/plugins/dev/core#apiexpose')}.
|
|
1622
|
+
|
|
1623
|
+
Please upgrade ${pkgName} to latest version.
|
|
1624
|
+
|
|
1625
|
+
See ${terminalLink(picocolors_default().yellow('Upgrade Rspeedy'), upgradeRspeedyLink)} for more details.
|
|
1626
|
+
`);
|
|
1627
|
+
}
|
|
1628
|
+
const { LynxTemplatePlugin: LynxTemplatePluginClass } = exposed;
|
|
1629
|
+
chain.plugin('lynx:config').use(LynxConfigWebpackPlugin, [
|
|
1630
|
+
{
|
|
1631
|
+
LynxTemplatePlugin: LynxTemplatePluginClass,
|
|
1632
|
+
config,
|
|
1633
|
+
compilerOptionsKeys,
|
|
1634
|
+
configKeys
|
|
1635
|
+
}
|
|
1636
|
+
]);
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
export { pluginLynxConfig };
|