@lynx-js/react-rsbuild-plugin 0.9.10 → 0.10.0
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 +35 -0
- package/dist/index.d.ts +766 -8
- package/dist/index.js +47 -105
- package/dist/loaders/ignore-css-loader.d.ts +6 -2
- package/dist/loaders/invalid-import-error-loader.d.ts +8 -4
- package/package.json +15 -15
- package/dist/alias.d.ts +0 -2
- package/dist/backgroundOnly.d.ts +0 -2
- package/dist/css.d.ts +0 -4
- package/dist/entry.d.ts +0 -3
- package/dist/generator.d.ts +0 -2
- package/dist/lazy.d.ts +0 -2
- package/dist/loaders.d.ts +0 -3
- package/dist/pluginReactLynx.d.ts +0 -272
- package/dist/refresh.d.ts +0 -2
- package/dist/splitChunks.d.ts +0 -2
- package/dist/swc.d.ts +0 -2
- package/dist/validate.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -5,10 +5,9 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_template_webpack_plugin_e98d2f08__ from "@lynx-js/template-webpack-plugin";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_runtime_wrapper_webpack_plugin_27793081__ from "@lynx-js/runtime-wrapper-webpack-plugin";
|
|
8
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_web_webpack_plugin_6ba19e5a__ from "@lynx-js/web-webpack-plugin";
|
|
9
8
|
import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_react_refresh_webpack_plugin_a01c5e97__ from "@lynx-js/react-refresh-webpack-plugin";
|
|
10
9
|
var __webpack_modules__ = {
|
|
11
|
-
"../../../node_modules/.pnpm/typia@9.3.
|
|
10
|
+
"../../../node_modules/.pnpm/typia@9.3.1_@samchon+openapi@4.3.2_typescript@5.8.3/node_modules/typia/lib/internal/_accessExpressionAsString.js": function(__unused_webpack_module, exports) {
|
|
12
11
|
exports._accessExpressionAsString = void 0;
|
|
13
12
|
const _accessExpressionAsString = (str)=>variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
|
|
14
13
|
exports._accessExpressionAsString = _accessExpressionAsString;
|
|
@@ -53,9 +52,9 @@ var __webpack_modules__ = {
|
|
|
53
52
|
"with"
|
|
54
53
|
]);
|
|
55
54
|
},
|
|
56
|
-
"../../../node_modules/.pnpm/typia@9.3.
|
|
55
|
+
"../../../node_modules/.pnpm/typia@9.3.1_@samchon+openapi@4.3.2_typescript@5.8.3/node_modules/typia/lib/internal/_assertGuard.js": function(__unused_webpack_module, exports, __webpack_require__) {
|
|
57
56
|
exports._assertGuard = void 0;
|
|
58
|
-
const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.3.
|
|
57
|
+
const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.3.1_@samchon+openapi@4.3.2_typescript@5.8.3/node_modules/typia/lib/TypeGuardError.mjs");
|
|
59
58
|
const _assertGuard = (exceptionable, props, factory)=>{
|
|
60
59
|
if (true === exceptionable) if (factory) throw factory(props);
|
|
61
60
|
else throw new TypeGuardError_1.TypeGuardError(props);
|
|
@@ -63,7 +62,7 @@ var __webpack_modules__ = {
|
|
|
63
62
|
};
|
|
64
63
|
exports._assertGuard = _assertGuard;
|
|
65
64
|
},
|
|
66
|
-
"../../../node_modules/.pnpm/typia@9.3.
|
|
65
|
+
"../../../node_modules/.pnpm/typia@9.3.1_@samchon+openapi@4.3.2_typescript@5.8.3/node_modules/typia/lib/TypeGuardError.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
67
66
|
__webpack_require__.r(__webpack_exports__);
|
|
68
67
|
__webpack_require__.d(__webpack_exports__, {
|
|
69
68
|
TypeGuardError: ()=>TypeGuardError
|
|
@@ -305,28 +304,33 @@ function applyEntry(api, options) {
|
|
|
305
304
|
}
|
|
306
305
|
]).end();
|
|
307
306
|
});
|
|
308
|
-
if (isLynx)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return name
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
307
|
+
if (isLynx) {
|
|
308
|
+
const inlineScripts = 'boolean' == typeof environment.config.output?.inlineScripts ? environment.config.output.inlineScripts : true;
|
|
309
|
+
chain.plugin(PLUGIN_NAME_RUNTIME_WRAPPER).use(__WEBPACK_EXTERNAL_MODULE__lynx_js_runtime_wrapper_webpack_plugin_27793081__.RuntimeWrapperWebpackPlugin, [
|
|
310
|
+
{
|
|
311
|
+
injectVars (vars) {
|
|
312
|
+
const UNUSED_VARS = new Set([
|
|
313
|
+
'Card',
|
|
314
|
+
'Component',
|
|
315
|
+
'ReactLynx',
|
|
316
|
+
'Behavior'
|
|
317
|
+
]);
|
|
318
|
+
return vars.map((name)=>{
|
|
319
|
+
if (UNUSED_VARS.has(name)) return `__${name}`;
|
|
320
|
+
return name;
|
|
321
|
+
});
|
|
322
|
+
},
|
|
323
|
+
targetSdkVersion,
|
|
324
|
+
test: /^(?!.*main-thread(?:\.[A-Fa-f0-9]*)?\.js$).*\.js$/,
|
|
325
|
+
experimental_isLazyBundle
|
|
326
|
+
}
|
|
327
|
+
]).end().plugin(`${__WEBPACK_EXTERNAL_MODULE__lynx_js_template_webpack_plugin_e98d2f08__.LynxEncodePlugin.name}`).use(__WEBPACK_EXTERNAL_MODULE__lynx_js_template_webpack_plugin_e98d2f08__.LynxEncodePlugin, [
|
|
328
|
+
{
|
|
329
|
+
inlineScripts
|
|
330
|
+
}
|
|
331
|
+
]).end();
|
|
332
|
+
}
|
|
333
|
+
if (isWeb) chain.plugin(PLUGIN_NAME_WEB).use(__WEBPACK_EXTERNAL_MODULE__lynx_js_template_webpack_plugin_e98d2f08__.WebEncodePlugin, []).end();
|
|
330
334
|
const rsbuildConfig = api.getRsbuildConfig();
|
|
331
335
|
chain.plugin(PLUGIN_NAME_REACT).after(PLUGIN_NAME_TEMPLATE).use(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.ReactWebpackPlugin, [
|
|
332
336
|
{
|
|
@@ -395,7 +399,7 @@ function applyLazy(api) {
|
|
|
395
399
|
});
|
|
396
400
|
}
|
|
397
401
|
function applyLoaders(api, options) {
|
|
398
|
-
const { compat, enableRemoveCSSScope,
|
|
402
|
+
const { compat, enableRemoveCSSScope, shake, defineDCE, experimental_isLazyBundle } = options;
|
|
399
403
|
api.modifyBundlerChain((chain, { CHAIN_ID })=>{
|
|
400
404
|
const experiments = chain.get('experiments');
|
|
401
405
|
chain.experiments({
|
|
@@ -410,7 +414,6 @@ function applyLoaders(api, options) {
|
|
|
410
414
|
backgroundRule.issuerLayer(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.BACKGROUND).uses.merge(uses).end().use(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.BACKGROUND).loader(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.ReactWebpackPlugin.loaders.BACKGROUND).options({
|
|
411
415
|
compat,
|
|
412
416
|
enableRemoveCSSScope,
|
|
413
|
-
jsx,
|
|
414
417
|
isDynamicComponent: experimental_isLazyBundle,
|
|
415
418
|
inlineSourcesContent,
|
|
416
419
|
defineDCE
|
|
@@ -430,7 +433,6 @@ function applyLoaders(api, options) {
|
|
|
430
433
|
}).use(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.MAIN_THREAD).loader(__WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.ReactWebpackPlugin.loaders.MAIN_THREAD).options({
|
|
431
434
|
compat,
|
|
432
435
|
enableRemoveCSSScope,
|
|
433
|
-
jsx,
|
|
434
436
|
inlineSourcesContent,
|
|
435
437
|
isDynamicComponent: experimental_isLazyBundle,
|
|
436
438
|
shake,
|
|
@@ -518,10 +520,10 @@ function applySWC(api) {
|
|
|
518
520
|
}
|
|
519
521
|
}, config));
|
|
520
522
|
}
|
|
521
|
-
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.3.
|
|
522
|
-
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.3.
|
|
523
|
+
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.3.1_@samchon+openapi@4.3.2_typescript@5.8.3/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
524
|
+
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.3.1_@samchon+openapi@4.3.2_typescript@5.8.3/node_modules/typia/lib/internal/_assertGuard.js");
|
|
523
525
|
const validateConfig = (()=>{
|
|
524
|
-
const _io0 = (input, _exceptionable = true)=>(void 0 === input.compat || "object" == typeof input.compat && null !== input.compat && false === Array.isArray(input.compat) && _io1(input.compat, _exceptionable)) && (void 0 === input.customCSSInheritanceList || Array.isArray(input.customCSSInheritanceList) && input.customCSSInheritanceList.every((elem, _index1)=>"string" == typeof elem)) && (void 0 === input.debugInfoOutside || "boolean" == typeof input.debugInfoOutside) && (void 0 === input.defaultDisplayLinear || "boolean" == typeof input.defaultDisplayLinear) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableICU || "boolean" == typeof input.enableICU) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInvalidation || "boolean" == typeof input.enableCSSInvalidation) && (void 0 === input.enableCSSSelector || "boolean" == typeof input.enableCSSSelector) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableParallelElement || "boolean" == typeof input.enableParallelElement) && (void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope) && (void 0 === input.firstScreenSyncTiming || "immediately" === input.firstScreenSyncTiming || "jsReady" === input.firstScreenSyncTiming) && (void 0 === input.enableSSR || "boolean" == typeof input.enableSSR) && (void 0 === input.
|
|
526
|
+
const _io0 = (input, _exceptionable = true)=>(void 0 === input.compat || "object" == typeof input.compat && null !== input.compat && false === Array.isArray(input.compat) && _io1(input.compat, _exceptionable)) && (void 0 === input.customCSSInheritanceList || Array.isArray(input.customCSSInheritanceList) && input.customCSSInheritanceList.every((elem, _index1)=>"string" == typeof elem)) && (void 0 === input.debugInfoOutside || "boolean" == typeof input.debugInfoOutside) && (void 0 === input.defaultDisplayLinear || "boolean" == typeof input.defaultDisplayLinear) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableICU || "boolean" == typeof input.enableICU) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInvalidation || "boolean" == typeof input.enableCSSInvalidation) && (void 0 === input.enableCSSSelector || "boolean" == typeof input.enableCSSSelector) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableParallelElement || "boolean" == typeof input.enableParallelElement) && (void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope) && (void 0 === input.firstScreenSyncTiming || "immediately" === input.firstScreenSyncTiming || "jsReady" === input.firstScreenSyncTiming) && (void 0 === input.enableSSR || "boolean" == typeof input.enableSSR) && (void 0 === input.pipelineSchedulerConfig || "number" == typeof input.pipelineSchedulerConfig) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope) && (void 0 === input.shake || "object" == typeof input.shake && null !== input.shake && false === Array.isArray(input.shake) && _io4(input.shake, _exceptionable)) && (void 0 === input.defineDCE || "object" == typeof input.defineDCE && null !== input.defineDCE && false === Array.isArray(input.defineDCE) && _io5(input.defineDCE, _exceptionable)) && (void 0 === input.engineVersion || "string" == typeof input.engineVersion) && (void 0 === input.targetSdkVersion || "string" == typeof input.targetSdkVersion) && null !== input.extractStr && (void 0 === input.extractStr || "boolean" == typeof input.extractStr || "object" == typeof input.extractStr && null !== input.extractStr && false === Array.isArray(input.extractStr) && _io7(input.extractStr, _exceptionable)) && (void 0 === input.experimental_isLazyBundle || "boolean" == typeof input.experimental_isLazyBundle) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
525
527
|
if ([
|
|
526
528
|
"compat",
|
|
527
529
|
"customCSSInheritanceList",
|
|
@@ -537,7 +539,6 @@ const validateConfig = (()=>{
|
|
|
537
539
|
"enableRemoveCSSScope",
|
|
538
540
|
"firstScreenSyncTiming",
|
|
539
541
|
"enableSSR",
|
|
540
|
-
"jsx",
|
|
541
542
|
"pipelineSchedulerConfig",
|
|
542
543
|
"removeDescendantSelectorScope",
|
|
543
544
|
"shake",
|
|
@@ -584,18 +585,7 @@ const validateConfig = (()=>{
|
|
|
584
585
|
if (void 0 === value) return true;
|
|
585
586
|
return false;
|
|
586
587
|
}));
|
|
587
|
-
const _io4 = (input, _exceptionable = true)=>(void 0 === input.
|
|
588
|
-
if ([
|
|
589
|
-
"preserveJsx",
|
|
590
|
-
"runtimePkg",
|
|
591
|
-
"jsxImportSource",
|
|
592
|
-
"filename"
|
|
593
|
-
].some((prop)=>key === prop)) return true;
|
|
594
|
-
const value = input[key];
|
|
595
|
-
if (void 0 === value) return true;
|
|
596
|
-
return false;
|
|
597
|
-
}));
|
|
598
|
-
const _io5 = (input, _exceptionable = true)=>(void 0 === input.pkgName || Array.isArray(input.pkgName) && input.pkgName.every((elem, _index5)=>"string" == typeof elem)) && (void 0 === input.retainProp || Array.isArray(input.retainProp) && input.retainProp.every((elem, _index6)=>"string" == typeof elem)) && (void 0 === input.removeCallParams || Array.isArray(input.removeCallParams) && input.removeCallParams.every((elem, _index7)=>"string" == typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
588
|
+
const _io4 = (input, _exceptionable = true)=>(void 0 === input.pkgName || Array.isArray(input.pkgName) && input.pkgName.every((elem, _index5)=>"string" == typeof elem)) && (void 0 === input.retainProp || Array.isArray(input.retainProp) && input.retainProp.every((elem, _index6)=>"string" == typeof elem)) && (void 0 === input.removeCallParams || Array.isArray(input.removeCallParams) && input.removeCallParams.every((elem, _index7)=>"string" == typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
599
589
|
if ([
|
|
600
590
|
"pkgName",
|
|
601
591
|
"retainProp",
|
|
@@ -605,7 +595,7 @@ const validateConfig = (()=>{
|
|
|
605
595
|
if (void 0 === value) return true;
|
|
606
596
|
return false;
|
|
607
597
|
}));
|
|
608
|
-
const
|
|
598
|
+
const _io5 = (input, _exceptionable = true)=>(void 0 === input.define || "object" == typeof input.define && null !== input.define && false === Array.isArray(input.define) && _io6(input.define, _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
609
599
|
if ([
|
|
610
600
|
"define"
|
|
611
601
|
].some((prop)=>key === prop)) return true;
|
|
@@ -613,12 +603,12 @@ const validateConfig = (()=>{
|
|
|
613
603
|
if (void 0 === value) return true;
|
|
614
604
|
return false;
|
|
615
605
|
}));
|
|
616
|
-
const
|
|
606
|
+
const _io6 = (input, _exceptionable = true)=>Object.keys(input).every((key)=>{
|
|
617
607
|
const value = input[key];
|
|
618
608
|
if (void 0 === value) return true;
|
|
619
609
|
return "string" == typeof value;
|
|
620
610
|
});
|
|
621
|
-
const
|
|
611
|
+
const _io7 = (input, _exceptionable = true)=>(void 0 === input.strLength || "number" == typeof input.strLength) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
622
612
|
if ([
|
|
623
613
|
"strLength"
|
|
624
614
|
].some((prop)=>key === prop)) return true;
|
|
@@ -711,16 +701,6 @@ const validateConfig = (()=>{
|
|
|
711
701
|
path: _path + ".enableSSR",
|
|
712
702
|
expected: "(boolean | undefined)",
|
|
713
703
|
value: input.enableSSR
|
|
714
|
-
}, _errorFactory)) && (void 0 === input.jsx || ("object" == typeof input.jsx && null !== input.jsx && false === Array.isArray(input.jsx) || _assertGuard._assertGuard(_exceptionable, {
|
|
715
|
-
method: "typia.createAssertEquals",
|
|
716
|
-
path: _path + ".jsx",
|
|
717
|
-
expected: "(Partial<JsxTransformerConfig> | undefined)",
|
|
718
|
-
value: input.jsx
|
|
719
|
-
}, _errorFactory)) && _ao4(input.jsx, _path + ".jsx", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
720
|
-
method: "typia.createAssertEquals",
|
|
721
|
-
path: _path + ".jsx",
|
|
722
|
-
expected: "(Partial<JsxTransformerConfig> | undefined)",
|
|
723
|
-
value: input.jsx
|
|
724
704
|
}, _errorFactory)) && (void 0 === input.pipelineSchedulerConfig || "number" == typeof input.pipelineSchedulerConfig || _assertGuard._assertGuard(_exceptionable, {
|
|
725
705
|
method: "typia.createAssertEquals",
|
|
726
706
|
path: _path + ".pipelineSchedulerConfig",
|
|
@@ -736,7 +716,7 @@ const validateConfig = (()=>{
|
|
|
736
716
|
path: _path + ".shake",
|
|
737
717
|
expected: "(Partial<ShakeVisitorConfig> | undefined)",
|
|
738
718
|
value: input.shake
|
|
739
|
-
}, _errorFactory)) &&
|
|
719
|
+
}, _errorFactory)) && _ao4(input.shake, _path + ".shake", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
740
720
|
method: "typia.createAssertEquals",
|
|
741
721
|
path: _path + ".shake",
|
|
742
722
|
expected: "(Partial<ShakeVisitorConfig> | undefined)",
|
|
@@ -746,7 +726,7 @@ const validateConfig = (()=>{
|
|
|
746
726
|
path: _path + ".defineDCE",
|
|
747
727
|
expected: "(Partial<DefineDceVisitorConfig> | undefined)",
|
|
748
728
|
value: input.defineDCE
|
|
749
|
-
}, _errorFactory)) &&
|
|
729
|
+
}, _errorFactory)) && _ao5(input.defineDCE, _path + ".defineDCE", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
750
730
|
method: "typia.createAssertEquals",
|
|
751
731
|
path: _path + ".defineDCE",
|
|
752
732
|
expected: "(Partial<DefineDceVisitorConfig> | undefined)",
|
|
@@ -771,7 +751,7 @@ const validateConfig = (()=>{
|
|
|
771
751
|
path: _path + ".extractStr",
|
|
772
752
|
expected: "(Partial<ExtractStrConfig> | boolean | undefined)",
|
|
773
753
|
value: input.extractStr
|
|
774
|
-
}, _errorFactory)) &&
|
|
754
|
+
}, _errorFactory)) && _ao7(input.extractStr, _path + ".extractStr", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
775
755
|
method: "typia.createAssertEquals",
|
|
776
756
|
path: _path + ".extractStr",
|
|
777
757
|
expected: "(Partial<ExtractStrConfig> | boolean | undefined)",
|
|
@@ -797,7 +777,6 @@ const validateConfig = (()=>{
|
|
|
797
777
|
"enableRemoveCSSScope",
|
|
798
778
|
"firstScreenSyncTiming",
|
|
799
779
|
"enableSSR",
|
|
800
|
-
"jsx",
|
|
801
780
|
"pipelineSchedulerConfig",
|
|
802
781
|
"removeDescendantSelectorScope",
|
|
803
782
|
"shake",
|
|
@@ -974,43 +953,7 @@ const validateConfig = (()=>{
|
|
|
974
953
|
value: value
|
|
975
954
|
}, _errorFactory);
|
|
976
955
|
}));
|
|
977
|
-
const _ao4 = (input, _path, _exceptionable = true)=>(void 0 === input.
|
|
978
|
-
method: "typia.createAssertEquals",
|
|
979
|
-
path: _path + ".preserveJsx",
|
|
980
|
-
expected: "(boolean | undefined)",
|
|
981
|
-
value: input.preserveJsx
|
|
982
|
-
}, _errorFactory)) && (void 0 === input.runtimePkg || "string" == typeof input.runtimePkg || _assertGuard._assertGuard(_exceptionable, {
|
|
983
|
-
method: "typia.createAssertEquals",
|
|
984
|
-
path: _path + ".runtimePkg",
|
|
985
|
-
expected: "(string | undefined)",
|
|
986
|
-
value: input.runtimePkg
|
|
987
|
-
}, _errorFactory)) && (void 0 === input.jsxImportSource || "string" == typeof input.jsxImportSource || _assertGuard._assertGuard(_exceptionable, {
|
|
988
|
-
method: "typia.createAssertEquals",
|
|
989
|
-
path: _path + ".jsxImportSource",
|
|
990
|
-
expected: "(string | undefined)",
|
|
991
|
-
value: input.jsxImportSource
|
|
992
|
-
}, _errorFactory)) && (void 0 === input.filename || "string" == typeof input.filename || _assertGuard._assertGuard(_exceptionable, {
|
|
993
|
-
method: "typia.createAssertEquals",
|
|
994
|
-
path: _path + ".filename",
|
|
995
|
-
expected: "(string | undefined)",
|
|
996
|
-
value: input.filename
|
|
997
|
-
}, _errorFactory)) && (0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).every((key)=>{
|
|
998
|
-
if ([
|
|
999
|
-
"preserveJsx",
|
|
1000
|
-
"runtimePkg",
|
|
1001
|
-
"jsxImportSource",
|
|
1002
|
-
"filename"
|
|
1003
|
-
].some((prop)=>key === prop)) return true;
|
|
1004
|
-
const value = input[key];
|
|
1005
|
-
if (void 0 === value) return true;
|
|
1006
|
-
return _assertGuard._assertGuard(_exceptionable, {
|
|
1007
|
-
method: "typia.createAssertEquals",
|
|
1008
|
-
path: _path + _accessExpressionAsString._accessExpressionAsString(key),
|
|
1009
|
-
expected: "undefined",
|
|
1010
|
-
value: value
|
|
1011
|
-
}, _errorFactory);
|
|
1012
|
-
}));
|
|
1013
|
-
const _ao5 = (input, _path, _exceptionable = true)=>(void 0 === input.pkgName || (Array.isArray(input.pkgName) || _assertGuard._assertGuard(_exceptionable, {
|
|
956
|
+
const _ao4 = (input, _path, _exceptionable = true)=>(void 0 === input.pkgName || (Array.isArray(input.pkgName) || _assertGuard._assertGuard(_exceptionable, {
|
|
1014
957
|
method: "typia.createAssertEquals",
|
|
1015
958
|
path: _path + ".pkgName",
|
|
1016
959
|
expected: "(Array<string> | undefined)",
|
|
@@ -1070,12 +1013,12 @@ const validateConfig = (()=>{
|
|
|
1070
1013
|
value: value
|
|
1071
1014
|
}, _errorFactory);
|
|
1072
1015
|
}));
|
|
1073
|
-
const
|
|
1016
|
+
const _ao5 = (input, _path, _exceptionable = true)=>(void 0 === input.define || ("object" == typeof input.define && null !== input.define && false === Array.isArray(input.define) || _assertGuard._assertGuard(_exceptionable, {
|
|
1074
1017
|
method: "typia.createAssertEquals",
|
|
1075
1018
|
path: _path + ".define",
|
|
1076
1019
|
expected: "(Record<string, string> | undefined)",
|
|
1077
1020
|
value: input.define
|
|
1078
|
-
}, _errorFactory)) &&
|
|
1021
|
+
}, _errorFactory)) && _ao6(input.define, _path + ".define", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
1079
1022
|
method: "typia.createAssertEquals",
|
|
1080
1023
|
path: _path + ".define",
|
|
1081
1024
|
expected: "(Record<string, string> | undefined)",
|
|
@@ -1093,7 +1036,7 @@ const validateConfig = (()=>{
|
|
|
1093
1036
|
value: value
|
|
1094
1037
|
}, _errorFactory);
|
|
1095
1038
|
}));
|
|
1096
|
-
const
|
|
1039
|
+
const _ao6 = (input, _path, _exceptionable = true)=>false === _exceptionable || Object.keys(input).every((key)=>{
|
|
1097
1040
|
const value = input[key];
|
|
1098
1041
|
if (void 0 === value) return true;
|
|
1099
1042
|
return "string" == typeof value || _assertGuard._assertGuard(_exceptionable, {
|
|
@@ -1103,7 +1046,7 @@ const validateConfig = (()=>{
|
|
|
1103
1046
|
value: value
|
|
1104
1047
|
}, _errorFactory);
|
|
1105
1048
|
});
|
|
1106
|
-
const
|
|
1049
|
+
const _ao7 = (input, _path, _exceptionable = true)=>(void 0 === input.strLength || "number" == typeof input.strLength || _assertGuard._assertGuard(_exceptionable, {
|
|
1107
1050
|
method: "typia.createAssertEquals",
|
|
1108
1051
|
path: _path + ".strLength",
|
|
1109
1052
|
expected: "(number | undefined)",
|
|
@@ -1173,7 +1116,6 @@ function pluginReactLynx(userOptions) {
|
|
|
1173
1116
|
enableRemoveCSSScope: true,
|
|
1174
1117
|
firstScreenSyncTiming: 'immediately',
|
|
1175
1118
|
enableSSR: false,
|
|
1176
|
-
jsx: void 0,
|
|
1177
1119
|
pipelineSchedulerConfig: 0x00010000,
|
|
1178
1120
|
removeDescendantSelectorScope: true,
|
|
1179
1121
|
shake: void 0,
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import type { Rspack } from '@rsbuild/core';
|
|
2
|
-
|
|
1
|
+
import type { Rspack } from '@rsbuild/core';
|
|
2
|
+
|
|
3
|
+
declare function ignoreCssLoader(this: Rspack.LoaderContext, source: string): string;
|
|
4
|
+
export default ignoreCssLoader;
|
|
5
|
+
|
|
6
|
+
export { }
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type { Rspack } from '@rsbuild/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { Rspack } from '@rsbuild/core';
|
|
2
|
+
|
|
3
|
+
declare function invalidImportErrorLoader(this: Rspack.LoaderContext<{
|
|
4
|
+
message: string;
|
|
5
|
+
}>): void;
|
|
6
|
+
export default invalidImportErrorLoader;
|
|
7
|
+
|
|
8
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -32,34 +32,34 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/css-extract-webpack-plugin": "0.5.
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.
|
|
37
|
-
"@lynx-js/react-refresh-webpack-plugin": "0.3.
|
|
38
|
-
"@lynx-js/react-webpack-plugin": "0.6.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "0.5.4",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.10.0",
|
|
37
|
+
"@lynx-js/react-refresh-webpack-plugin": "0.3.3",
|
|
38
|
+
"@lynx-js/react-webpack-plugin": "0.6.14",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "0.1.0",
|
|
40
|
-
"@lynx-js/template-webpack-plugin": "0.
|
|
41
|
-
"@lynx-js/web-webpack-plugin": "0.6.7",
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "0.7.0",
|
|
42
41
|
"background-only": "^0.0.1"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@microsoft/api-extractor": "7.52.8",
|
|
46
45
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
47
|
-
"@rsbuild/core": "1.3.
|
|
46
|
+
"@rsbuild/core": "1.3.21",
|
|
48
47
|
"@rsbuild/plugin-sass": "1.3.1",
|
|
49
48
|
"@rsbuild/plugin-typed-css-modules": "1.0.2",
|
|
50
49
|
"@rsbuild/plugin-webpack-swc": "1.1.1",
|
|
51
|
-
"@rsbuild/webpack": "1.3.
|
|
52
|
-
"@samchon/openapi": "4.3.
|
|
50
|
+
"@rsbuild/webpack": "1.3.2",
|
|
51
|
+
"@samchon/openapi": "4.3.2",
|
|
53
52
|
"tailwindcss": "^3.4.17",
|
|
54
53
|
"type-fest": "^4.41.0",
|
|
55
|
-
"typia": "9.3.
|
|
56
|
-
"typia-rspack-plugin": "2.0
|
|
57
|
-
"@lynx-js/react": "0.
|
|
58
|
-
"@lynx-js/
|
|
54
|
+
"typia": "9.3.1",
|
|
55
|
+
"typia-rspack-plugin": "2.1.0",
|
|
56
|
+
"@lynx-js/react": "0.109.0",
|
|
57
|
+
"@lynx-js/react-transform": "0.2.0",
|
|
58
|
+
"@lynx-js/rspeedy": "0.9.6",
|
|
59
59
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0"
|
|
62
|
+
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0 || ^0.109.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@lynx-js/react": {
|
package/dist/alias.d.ts
DELETED
package/dist/backgroundOnly.d.ts
DELETED
package/dist/css.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { CSSLoaderOptions, RsbuildPluginAPI } from '@rsbuild/core';
|
|
2
|
-
import type { PluginReactLynxOptions } from './pluginReactLynx.js';
|
|
3
|
-
export declare function applyCSS(api: RsbuildPluginAPI, options: Required<PluginReactLynxOptions>): void;
|
|
4
|
-
export declare const normalizeCssLoaderOptions: (options: CSSLoaderOptions, exportOnlyLocals: boolean) => CSSLoaderOptions;
|
package/dist/entry.d.ts
DELETED
package/dist/generator.d.ts
DELETED
package/dist/lazy.d.ts
DELETED
package/dist/loaders.d.ts
DELETED