@lynx-js/react-rsbuild-plugin 0.9.0 → 0.9.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 +19 -0
- package/README.md +1 -1
- package/dist/index.js +63 -29
- package/package.json +21 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))
|
|
8
|
+
|
|
9
|
+
- fix(rspeedy/plugin-react): mkdir main:background fails in windows ([#76](https://github.com/lynx-family/lynx-stack/pull/76))
|
|
10
|
+
|
|
11
|
+
- fix(rspeedy/plugin-react): use path.posix.join for backgroundName to ensure consistent path separators across platforms. ([#122](https://github.com/lynx-family/lynx-stack/pull/122))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb), [`870106f`](https://github.com/lynx-family/lynx-stack/commit/870106fcb00d54a9f952be14c9bdcc592099863c), [`ea82ef6`](https://github.com/lynx-family/lynx-stack/commit/ea82ef63e367c6bb87e4205b6014cc5e1f6896a2)]:
|
|
14
|
+
- @lynx-js/runtime-wrapper-webpack-plugin@0.0.8
|
|
15
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.2
|
|
16
|
+
- @lynx-js/css-extract-webpack-plugin@0.5.1
|
|
17
|
+
- @lynx-js/template-webpack-plugin@0.6.4
|
|
18
|
+
- @lynx-js/react-webpack-plugin@0.6.7
|
|
19
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.9.1
|
|
20
|
+
- @lynx-js/web-webpack-plugin@0.6.2
|
|
21
|
+
|
|
3
22
|
## 0.9.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://lynxjs.org/rspeedy" target="blank"><img src="https://
|
|
2
|
+
<a href="https://lynxjs.org/rspeedy" target="blank"><img src="https://lf-lynx.tiktok-cdns.com/obj/lynx-artifacts-oss-sg/lynx-website/assets/rspeedy-banner.png" alt="Rspeedy Logo" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p>
|
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ function __webpack_require__(moduleId) {
|
|
|
100
100
|
return module.exports;
|
|
101
101
|
}
|
|
102
102
|
(()=>{
|
|
103
|
-
__webpack_require__.d =
|
|
103
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
104
104
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
105
105
|
enumerable: true,
|
|
106
106
|
get: definition[key]
|
|
@@ -108,9 +108,7 @@ function __webpack_require__(moduleId) {
|
|
|
108
108
|
};
|
|
109
109
|
})();
|
|
110
110
|
(()=>{
|
|
111
|
-
__webpack_require__.o =
|
|
112
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
113
|
-
};
|
|
111
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
114
112
|
})();
|
|
115
113
|
(()=>{
|
|
116
114
|
__webpack_require__.r = function(exports) {
|
|
@@ -225,10 +223,10 @@ function applyEntry(api, options) {
|
|
|
225
223
|
Object.entries(entries).forEach(([entryName, entryPoint])=>{
|
|
226
224
|
const { imports } = getChunks(entryName, entryPoint.values());
|
|
227
225
|
const templateFilename = ('object' == typeof config.output?.filename ? config.output.filename.bundle ?? config.output.filename.template : config.output?.filename) ?? '[name].[platform].bundle';
|
|
228
|
-
const
|
|
229
|
-
const
|
|
230
|
-
const backgroundName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(isLynx ? DEFAULT_DIST_PATH_INTERMEDIATE : '', getBackgroundFilename(entryName, environment.config, isProd));
|
|
231
|
-
const backgroundEntry =
|
|
226
|
+
const mainThreadEntry = `${entryName}__main-thread`;
|
|
227
|
+
const mainThreadName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].posix.join(isLynx ? DEFAULT_DIST_PATH_INTERMEDIATE : '', `${mainThreadEntry}/main-thread.js`);
|
|
228
|
+
const backgroundName = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].posix.join(isLynx ? DEFAULT_DIST_PATH_INTERMEDIATE : '', getBackgroundFilename(entryName, environment.config, isProd));
|
|
229
|
+
const backgroundEntry = entryName;
|
|
232
230
|
mainThreadChunks.push(mainThreadName);
|
|
233
231
|
chain.entry(mainThreadEntry).add({
|
|
234
232
|
layer: __WEBPACK_EXTERNAL_MODULE__lynx_js_react_webpack_plugin_1806f3f7__.LAYERS.MAIN_THREAD,
|
|
@@ -263,7 +261,7 @@ function applyEntry(api, options) {
|
|
|
263
261
|
backgroundEntry
|
|
264
262
|
],
|
|
265
263
|
filename: templateFilename.replaceAll('[name]', entryName).replaceAll('[platform]', environment.name),
|
|
266
|
-
intermediate: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(DEFAULT_DIST_PATH_INTERMEDIATE, entryName),
|
|
264
|
+
intermediate: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].posix.join(DEFAULT_DIST_PATH_INTERMEDIATE, entryName),
|
|
267
265
|
customCSSInheritanceList,
|
|
268
266
|
debugInfoOutside,
|
|
269
267
|
defaultDisplayLinear,
|
|
@@ -453,7 +451,7 @@ const applySplitChunksRule = (api)=>{
|
|
|
453
451
|
if (!rspackConfig.optimization) return rspackConfig;
|
|
454
452
|
if (!rspackConfig.optimization.splitChunks) return rspackConfig;
|
|
455
453
|
rspackConfig.optimization.splitChunks.chunks = function(chunk) {
|
|
456
|
-
return
|
|
454
|
+
return !chunk.name?.includes('__main-thread');
|
|
457
455
|
};
|
|
458
456
|
return rspackConfig;
|
|
459
457
|
});
|
|
@@ -482,7 +480,7 @@ function applySWC(api) {
|
|
|
482
480
|
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@7.6.4_@samchon+openapi@2.4.2_typescript@5.7.3/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
483
481
|
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@7.6.4_@samchon+openapi@2.4.2_typescript@5.7.3/node_modules/typia/lib/internal/_assertGuard.js");
|
|
484
482
|
const validateConfig = (()=>{
|
|
485
|
-
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.jsx || "object" == typeof input.jsx && null !== input.jsx && false === Array.isArray(input.jsx) &&
|
|
483
|
+
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.jsx || "object" == typeof input.jsx && null !== input.jsx && false === Array.isArray(input.jsx) && _io4(input.jsx, _exceptionable)) && (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) && _io5(input.shake, _exceptionable)) && (void 0 === input.defineDCE || "object" == typeof input.defineDCE && null !== input.defineDCE && false === Array.isArray(input.defineDCE) && _io6(input.defineDCE, _exceptionable)) && (void 0 === input.engineVersion || "string" == typeof input.engineVersion) && (void 0 === input.targetSdkVersion || "string" == typeof input.targetSdkVersion) && (void 0 === input.experimental_isLazyBundle || "boolean" == typeof input.experimental_isLazyBundle) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
486
484
|
if ([
|
|
487
485
|
"compat",
|
|
488
486
|
"customCSSInheritanceList",
|
|
@@ -510,7 +508,7 @@ const validateConfig = (()=>{
|
|
|
510
508
|
if (void 0 === value) return true;
|
|
511
509
|
return false;
|
|
512
510
|
}));
|
|
513
|
-
const _io1 = (input, _exceptionable = true)=>(void 0 === input.componentsPkg || Array.isArray(input.componentsPkg) && input.componentsPkg.every((elem, _index2)=>"string" == typeof elem)) && (void 0 === input.oldRuntimePkg || Array.isArray(input.oldRuntimePkg) && input.oldRuntimePkg.every((elem, _index3)=>"string" == typeof elem)) && (void 0 === input.newRuntimePkg || "string" == typeof input.newRuntimePkg) && (void 0 === input.additionalComponentAttributes || Array.isArray(input.additionalComponentAttributes) && input.additionalComponentAttributes.every((elem, _index4)=>"string" == typeof elem)) && (void 0 === input.addComponentElement || "boolean" == typeof input.addComponentElement) && (void 0 === input.simplifyCtorLikeReactLynx2 || "boolean" == typeof input.simplifyCtorLikeReactLynx2) && (void 0 === input.removeComponentAttrRegex || "string" == typeof input.removeComponentAttrRegex) && (void 0 === input.disableDeprecatedWarning || "boolean" == typeof input.disableDeprecatedWarning) && null !== input.darkMode && (void 0 === input.darkMode || "boolean" == typeof input.darkMode || "object" == typeof input.darkMode && null !== input.darkMode &&
|
|
511
|
+
const _io1 = (input, _exceptionable = true)=>(void 0 === input.componentsPkg || Array.isArray(input.componentsPkg) && input.componentsPkg.every((elem, _index2)=>"string" == typeof elem)) && (void 0 === input.oldRuntimePkg || Array.isArray(input.oldRuntimePkg) && input.oldRuntimePkg.every((elem, _index3)=>"string" == typeof elem)) && (void 0 === input.newRuntimePkg || "string" == typeof input.newRuntimePkg) && (void 0 === input.additionalComponentAttributes || Array.isArray(input.additionalComponentAttributes) && input.additionalComponentAttributes.every((elem, _index4)=>"string" == typeof elem)) && null !== input.addComponentElement && (void 0 === input.addComponentElement || "boolean" == typeof input.addComponentElement || "object" == typeof input.addComponentElement && null !== input.addComponentElement && _io2(input.addComponentElement, _exceptionable)) && (void 0 === input.simplifyCtorLikeReactLynx2 || "boolean" == typeof input.simplifyCtorLikeReactLynx2) && (void 0 === input.removeComponentAttrRegex || "string" == typeof input.removeComponentAttrRegex) && (void 0 === input.disableDeprecatedWarning || "boolean" == typeof input.disableDeprecatedWarning) && null !== input.darkMode && (void 0 === input.darkMode || "boolean" == typeof input.darkMode || "object" == typeof input.darkMode && null !== input.darkMode && _io3(input.darkMode, _exceptionable)) && (void 0 === input.disableCreateSelectorQueryIncompatibleWarning || "boolean" == typeof input.disableCreateSelectorQueryIncompatibleWarning) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
514
512
|
if ([
|
|
515
513
|
"componentsPkg",
|
|
516
514
|
"oldRuntimePkg",
|
|
@@ -527,7 +525,15 @@ const validateConfig = (()=>{
|
|
|
527
525
|
if (void 0 === value) return true;
|
|
528
526
|
return false;
|
|
529
527
|
}));
|
|
530
|
-
const _io2 = (input, _exceptionable = true)=>"
|
|
528
|
+
const _io2 = (input, _exceptionable = true)=>"boolean" == typeof input.compilerOnly && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
529
|
+
if ([
|
|
530
|
+
"compilerOnly"
|
|
531
|
+
].some((prop)=>key === prop)) return true;
|
|
532
|
+
const value = input[key];
|
|
533
|
+
if (void 0 === value) return true;
|
|
534
|
+
return false;
|
|
535
|
+
}));
|
|
536
|
+
const _io3 = (input, _exceptionable = true)=>"string" == typeof input.themeExpr && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
531
537
|
if ([
|
|
532
538
|
"themeExpr"
|
|
533
539
|
].some((prop)=>key === prop)) return true;
|
|
@@ -535,7 +541,7 @@ const validateConfig = (()=>{
|
|
|
535
541
|
if (void 0 === value) return true;
|
|
536
542
|
return false;
|
|
537
543
|
}));
|
|
538
|
-
const
|
|
544
|
+
const _io4 = (input, _exceptionable = true)=>(void 0 === input.preserveJsx || "boolean" == typeof input.preserveJsx) && (void 0 === input.runtimePkg || "string" == typeof input.runtimePkg) && (void 0 === input.jsxImportSource || "string" == typeof input.jsxImportSource) && (void 0 === input.filename || "string" == typeof input.filename) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
539
545
|
if ([
|
|
540
546
|
"preserveJsx",
|
|
541
547
|
"runtimePkg",
|
|
@@ -546,7 +552,7 @@ const validateConfig = (()=>{
|
|
|
546
552
|
if (void 0 === value) return true;
|
|
547
553
|
return false;
|
|
548
554
|
}));
|
|
549
|
-
const
|
|
555
|
+
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)=>{
|
|
550
556
|
if ([
|
|
551
557
|
"pkgName",
|
|
552
558
|
"retainProp",
|
|
@@ -556,7 +562,7 @@ const validateConfig = (()=>{
|
|
|
556
562
|
if (void 0 === value) return true;
|
|
557
563
|
return false;
|
|
558
564
|
}));
|
|
559
|
-
const
|
|
565
|
+
const _io6 = (input, _exceptionable = true)=>(void 0 === input.define || "object" == typeof input.define && null !== input.define && false === Array.isArray(input.define) && _io7(input.define, _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
560
566
|
if ([
|
|
561
567
|
"define"
|
|
562
568
|
].some((prop)=>key === prop)) return true;
|
|
@@ -564,7 +570,7 @@ const validateConfig = (()=>{
|
|
|
564
570
|
if (void 0 === value) return true;
|
|
565
571
|
return false;
|
|
566
572
|
}));
|
|
567
|
-
const
|
|
573
|
+
const _io7 = (input, _exceptionable = true)=>Object.keys(input).every((key)=>{
|
|
568
574
|
const value = input[key];
|
|
569
575
|
if (void 0 === value) return true;
|
|
570
576
|
return "string" == typeof value;
|
|
@@ -654,7 +660,7 @@ const validateConfig = (()=>{
|
|
|
654
660
|
path: _path + ".jsx",
|
|
655
661
|
expected: "(Partial<JsxTransformerConfig> | undefined)",
|
|
656
662
|
value: input.jsx
|
|
657
|
-
}, _errorFactory)) &&
|
|
663
|
+
}, _errorFactory)) && _ao4(input.jsx, _path + ".jsx", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
658
664
|
method: "typia.createAssertEquals",
|
|
659
665
|
path: _path + ".jsx",
|
|
660
666
|
expected: "(Partial<JsxTransformerConfig> | undefined)",
|
|
@@ -674,7 +680,7 @@ const validateConfig = (()=>{
|
|
|
674
680
|
path: _path + ".shake",
|
|
675
681
|
expected: "(Partial<ShakeVisitorConfig> | undefined)",
|
|
676
682
|
value: input.shake
|
|
677
|
-
}, _errorFactory)) &&
|
|
683
|
+
}, _errorFactory)) && _ao5(input.shake, _path + ".shake", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
678
684
|
method: "typia.createAssertEquals",
|
|
679
685
|
path: _path + ".shake",
|
|
680
686
|
expected: "(Partial<ShakeVisitorConfig> | undefined)",
|
|
@@ -684,7 +690,7 @@ const validateConfig = (()=>{
|
|
|
684
690
|
path: _path + ".defineDCE",
|
|
685
691
|
expected: "(Partial<DefineDceVisitorConfig> | undefined)",
|
|
686
692
|
value: input.defineDCE
|
|
687
|
-
}, _errorFactory)) &&
|
|
693
|
+
}, _errorFactory)) && _ao6(input.defineDCE, _path + ".defineDCE", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
688
694
|
method: "typia.createAssertEquals",
|
|
689
695
|
path: _path + ".defineDCE",
|
|
690
696
|
expected: "(Partial<DefineDceVisitorConfig> | undefined)",
|
|
@@ -787,10 +793,20 @@ const validateConfig = (()=>{
|
|
|
787
793
|
path: _path + ".additionalComponentAttributes",
|
|
788
794
|
expected: "(Array<string> | undefined)",
|
|
789
795
|
value: input.additionalComponentAttributes
|
|
790
|
-
}, _errorFactory)) && (
|
|
796
|
+
}, _errorFactory)) && (null !== input.addComponentElement || _assertGuard._assertGuard(_exceptionable, {
|
|
791
797
|
method: "typia.createAssertEquals",
|
|
792
798
|
path: _path + ".addComponentElement",
|
|
793
|
-
expected: "(boolean | undefined)",
|
|
799
|
+
expected: "(AddComponentElementConfig | boolean | undefined)",
|
|
800
|
+
value: input.addComponentElement
|
|
801
|
+
}, _errorFactory)) && (void 0 === input.addComponentElement || "boolean" == typeof input.addComponentElement || ("object" == typeof input.addComponentElement && null !== input.addComponentElement || _assertGuard._assertGuard(_exceptionable, {
|
|
802
|
+
method: "typia.createAssertEquals",
|
|
803
|
+
path: _path + ".addComponentElement",
|
|
804
|
+
expected: "(AddComponentElementConfig | boolean | undefined)",
|
|
805
|
+
value: input.addComponentElement
|
|
806
|
+
}, _errorFactory)) && _ao2(input.addComponentElement, _path + ".addComponentElement", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
807
|
+
method: "typia.createAssertEquals",
|
|
808
|
+
path: _path + ".addComponentElement",
|
|
809
|
+
expected: "(AddComponentElementConfig | boolean | undefined)",
|
|
794
810
|
value: input.addComponentElement
|
|
795
811
|
}, _errorFactory)) && (void 0 === input.simplifyCtorLikeReactLynx2 || "boolean" == typeof input.simplifyCtorLikeReactLynx2 || _assertGuard._assertGuard(_exceptionable, {
|
|
796
812
|
method: "typia.createAssertEquals",
|
|
@@ -817,7 +833,7 @@ const validateConfig = (()=>{
|
|
|
817
833
|
path: _path + ".darkMode",
|
|
818
834
|
expected: "(DarkModeConfig | boolean | undefined)",
|
|
819
835
|
value: input.darkMode
|
|
820
|
-
}, _errorFactory)) &&
|
|
836
|
+
}, _errorFactory)) && _ao3(input.darkMode, _path + ".darkMode", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
821
837
|
method: "typia.createAssertEquals",
|
|
822
838
|
path: _path + ".darkMode",
|
|
823
839
|
expected: "(DarkModeConfig | boolean | undefined)",
|
|
@@ -849,7 +865,25 @@ const validateConfig = (()=>{
|
|
|
849
865
|
value: value
|
|
850
866
|
}, _errorFactory);
|
|
851
867
|
}));
|
|
852
|
-
const _ao2 = (input, _path, _exceptionable = true)=>("
|
|
868
|
+
const _ao2 = (input, _path, _exceptionable = true)=>("boolean" == typeof input.compilerOnly || _assertGuard._assertGuard(_exceptionable, {
|
|
869
|
+
method: "typia.createAssertEquals",
|
|
870
|
+
path: _path + ".compilerOnly",
|
|
871
|
+
expected: "boolean",
|
|
872
|
+
value: input.compilerOnly
|
|
873
|
+
}, _errorFactory)) && (1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).every((key)=>{
|
|
874
|
+
if ([
|
|
875
|
+
"compilerOnly"
|
|
876
|
+
].some((prop)=>key === prop)) return true;
|
|
877
|
+
const value = input[key];
|
|
878
|
+
if (void 0 === value) return true;
|
|
879
|
+
return _assertGuard._assertGuard(_exceptionable, {
|
|
880
|
+
method: "typia.createAssertEquals",
|
|
881
|
+
path: _path + _accessExpressionAsString._accessExpressionAsString(key),
|
|
882
|
+
expected: "undefined",
|
|
883
|
+
value: value
|
|
884
|
+
}, _errorFactory);
|
|
885
|
+
}));
|
|
886
|
+
const _ao3 = (input, _path, _exceptionable = true)=>("string" == typeof input.themeExpr || _assertGuard._assertGuard(_exceptionable, {
|
|
853
887
|
method: "typia.createAssertEquals",
|
|
854
888
|
path: _path + ".themeExpr",
|
|
855
889
|
expected: "string",
|
|
@@ -867,7 +901,7 @@ const validateConfig = (()=>{
|
|
|
867
901
|
value: value
|
|
868
902
|
}, _errorFactory);
|
|
869
903
|
}));
|
|
870
|
-
const
|
|
904
|
+
const _ao4 = (input, _path, _exceptionable = true)=>(void 0 === input.preserveJsx || "boolean" == typeof input.preserveJsx || _assertGuard._assertGuard(_exceptionable, {
|
|
871
905
|
method: "typia.createAssertEquals",
|
|
872
906
|
path: _path + ".preserveJsx",
|
|
873
907
|
expected: "(boolean | undefined)",
|
|
@@ -903,7 +937,7 @@ const validateConfig = (()=>{
|
|
|
903
937
|
value: value
|
|
904
938
|
}, _errorFactory);
|
|
905
939
|
}));
|
|
906
|
-
const
|
|
940
|
+
const _ao5 = (input, _path, _exceptionable = true)=>(void 0 === input.pkgName || (Array.isArray(input.pkgName) || _assertGuard._assertGuard(_exceptionable, {
|
|
907
941
|
method: "typia.createAssertEquals",
|
|
908
942
|
path: _path + ".pkgName",
|
|
909
943
|
expected: "(Array<string> | undefined)",
|
|
@@ -963,12 +997,12 @@ const validateConfig = (()=>{
|
|
|
963
997
|
value: value
|
|
964
998
|
}, _errorFactory);
|
|
965
999
|
}));
|
|
966
|
-
const
|
|
1000
|
+
const _ao6 = (input, _path, _exceptionable = true)=>(void 0 === input.define || ("object" == typeof input.define && null !== input.define && false === Array.isArray(input.define) || _assertGuard._assertGuard(_exceptionable, {
|
|
967
1001
|
method: "typia.createAssertEquals",
|
|
968
1002
|
path: _path + ".define",
|
|
969
1003
|
expected: "(Record<string, string> | undefined)",
|
|
970
1004
|
value: input.define
|
|
971
|
-
}, _errorFactory)) &&
|
|
1005
|
+
}, _errorFactory)) && _ao7(input.define, _path + ".define", _exceptionable) || _assertGuard._assertGuard(_exceptionable, {
|
|
972
1006
|
method: "typia.createAssertEquals",
|
|
973
1007
|
path: _path + ".define",
|
|
974
1008
|
expected: "(Record<string, string> | undefined)",
|
|
@@ -986,7 +1020,7 @@ const validateConfig = (()=>{
|
|
|
986
1020
|
value: value
|
|
987
1021
|
}, _errorFactory);
|
|
988
1022
|
}));
|
|
989
|
-
const
|
|
1023
|
+
const _ao7 = (input, _path, _exceptionable = true)=>false === _exceptionable || Object.keys(input).every((key)=>{
|
|
990
1024
|
const value = input[key];
|
|
991
1025
|
if (void 0 === value) return true;
|
|
992
1026
|
return "string" == typeof value || _assertGuard._assertGuard(_exceptionable, {
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
7
7
|
"Lynx",
|
|
8
8
|
"ReactLynx"
|
|
9
9
|
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/lynx-family/lynx-stack.git",
|
|
13
|
+
"directory": "packages/rspeedy/plugin-react"
|
|
14
|
+
},
|
|
10
15
|
"license": "Apache-2.0",
|
|
11
16
|
"author": {
|
|
12
17
|
"name": "Qingyu Wang",
|
|
@@ -27,29 +32,29 @@
|
|
|
27
32
|
"README.md"
|
|
28
33
|
],
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@lynx-js/css-extract-webpack-plugin": "0.5.
|
|
31
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.9.
|
|
32
|
-
"@lynx-js/react-refresh-webpack-plugin": "0.3.
|
|
33
|
-
"@lynx-js/react-webpack-plugin": "0.6.
|
|
34
|
-
"@lynx-js/runtime-wrapper-webpack-plugin": "0.0.
|
|
35
|
-
"@lynx-js/template-webpack-plugin": "0.6.
|
|
36
|
-
"@lynx-js/web-webpack-plugin": "0.6.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "0.5.1",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.9.1",
|
|
37
|
+
"@lynx-js/react-refresh-webpack-plugin": "0.3.2",
|
|
38
|
+
"@lynx-js/react-webpack-plugin": "0.6.7",
|
|
39
|
+
"@lynx-js/runtime-wrapper-webpack-plugin": "0.0.8",
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "0.6.4",
|
|
41
|
+
"@lynx-js/web-webpack-plugin": "0.6.2"
|
|
37
42
|
},
|
|
38
43
|
"devDependencies": {
|
|
39
|
-
"@microsoft/api-extractor": "7.51.
|
|
44
|
+
"@microsoft/api-extractor": "7.51.1",
|
|
40
45
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
41
|
-
"@rsbuild/core": "1.2.
|
|
46
|
+
"@rsbuild/core": "1.2.15",
|
|
42
47
|
"@rsbuild/plugin-sass": "1.2.2",
|
|
43
48
|
"@rsbuild/plugin-typed-css-modules": "1.0.2",
|
|
44
|
-
"@rsbuild/plugin-webpack-swc": "1.0.
|
|
49
|
+
"@rsbuild/plugin-webpack-swc": "1.0.11",
|
|
45
50
|
"@rsbuild/webpack": "1.2.3",
|
|
46
51
|
"tailwindcss": "^3.4.17",
|
|
47
|
-
"type-fest": "^4.
|
|
52
|
+
"type-fest": "^4.37.0",
|
|
48
53
|
"typia": "7.6.4",
|
|
49
|
-
"typia-rspack-plugin": "^1.0.
|
|
50
|
-
"@lynx-js/react": "0.105.
|
|
51
|
-
"@lynx-js/
|
|
52
|
-
"@lynx-js/
|
|
54
|
+
"typia-rspack-plugin": "^1.0.2",
|
|
55
|
+
"@lynx-js/react": "0.105.1",
|
|
56
|
+
"@lynx-js/vitest-setup": "0.0.0",
|
|
57
|
+
"@lynx-js/rspeedy": "0.8.3"
|
|
53
58
|
},
|
|
54
59
|
"peerDependencies": {
|
|
55
60
|
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0"
|