@lynx-js/react-rsbuild-plugin 0.10.14 → 0.11.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 +22 -0
- package/dist/index.d.ts +0 -40
- package/dist/index.js +2 -29
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **BREAKING CHANGE:** Remove the `enableParallelElement` and `pipelineSchedulerConfig` options. ([#1705](https://github.com/lynx-family/lynx-stack/pull/1705))
|
|
8
|
+
|
|
9
|
+
Since the thread element resolution is still in experimental stage and may have stability risks, it will be disabled by default after this change.
|
|
10
|
+
|
|
11
|
+
- **BREAKING CHANGE**: Remove the `enableICU` option. ([#1800](https://github.com/lynx-family/lynx-stack/pull/1800))
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Be compat with `@lynx-js/react` v0.114.0 ([#1781](https://github.com/lynx-family/lynx-stack/pull/1781))
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`24100ab`](https://github.com/lynx-family/lynx-stack/commit/24100ab63302f8f2bc10578c70ac5cceeffe312a), [`24100ab`](https://github.com/lynx-family/lynx-stack/commit/24100ab63302f8f2bc10578c70ac5cceeffe312a), [`d0ef559`](https://github.com/lynx-family/lynx-stack/commit/d0ef559fac383634437880681855923968b4fa65)]:
|
|
18
|
+
- @lynx-js/template-webpack-plugin@0.9.0
|
|
19
|
+
- @lynx-js/react-webpack-plugin@0.7.1
|
|
20
|
+
- @lynx-js/css-extract-webpack-plugin@0.6.3
|
|
21
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.11.0
|
|
22
|
+
- @lynx-js/use-sync-external-store@1.5.0
|
|
23
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
24
|
+
|
|
3
25
|
## 0.10.14
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -501,14 +501,6 @@ export declare interface PluginReactLynxOptions {
|
|
|
501
501
|
* enableAccessibilityElement set the default value of `accessibility-element` for all `<view />` elements.
|
|
502
502
|
*/
|
|
503
503
|
enableAccessibilityElement?: boolean;
|
|
504
|
-
/**
|
|
505
|
-
* enableICU enables the Intl API to be enabled globally.
|
|
506
|
-
*
|
|
507
|
-
* If enabled, please double check the compatibility with Lynx Share Context feature to avoid using shared Intl API from other destroyed card.
|
|
508
|
-
*
|
|
509
|
-
* @defaultValue `false`
|
|
510
|
-
*/
|
|
511
|
-
enableICU?: boolean;
|
|
512
504
|
/**
|
|
513
505
|
* enableCSSInheritance enables the default inheritance properties.
|
|
514
506
|
*
|
|
@@ -570,14 +562,6 @@ export declare interface PluginReactLynxOptions {
|
|
|
570
562
|
* @defaultValue `false`
|
|
571
563
|
*/
|
|
572
564
|
enableNewGesture?: boolean;
|
|
573
|
-
/**
|
|
574
|
-
* enableParallelElement enables Threaded Element Resolution.
|
|
575
|
-
*
|
|
576
|
-
* @defaultValue `true`
|
|
577
|
-
*
|
|
578
|
-
* @public
|
|
579
|
-
*/
|
|
580
|
-
enableParallelElement?: boolean;
|
|
581
565
|
/**
|
|
582
566
|
* enableRemoveCSSScope controls whether CSS is restrict to use in the component scope.
|
|
583
567
|
*
|
|
@@ -615,30 +599,6 @@ export declare interface PluginReactLynxOptions {
|
|
|
615
599
|
* @public
|
|
616
600
|
*/
|
|
617
601
|
enableSSR?: boolean;
|
|
618
|
-
/**
|
|
619
|
-
* Composite configuration representing pipeline scheduling strategies, including {@link PluginReactLynxOptions.enableParallelElement} and list batch-rendering. All newly introduced scheduling strategies will be managed by this uint64 configuration.
|
|
620
|
-
*
|
|
621
|
-
* @remarks
|
|
622
|
-
*
|
|
623
|
-
* Preallocate 64 bit unsigned integer for pipeline scheduler config.
|
|
624
|
-
*
|
|
625
|
-
* - 0 ~ 7 bit: Reserved for parsing binary bundle into C++ bundle.
|
|
626
|
-
*
|
|
627
|
-
* - 8 ~ 15 bit: Reserved for MTS Render.
|
|
628
|
-
*
|
|
629
|
-
* - 16 ~ 23 bit: Reserved for resolve stage in Pixel Pipeline.
|
|
630
|
-
*
|
|
631
|
-
* - 24 ~ 31 bit: Reserved for layout stage in Pixel Pipeline.
|
|
632
|
-
*
|
|
633
|
-
* - 32 ~ 39 bit: Reserved for execute UI OP stage in Pixel Pipeline.
|
|
634
|
-
*
|
|
635
|
-
* - 40 ~ 47 bit: Reserved for paint stage in Pixel Pipeline.
|
|
636
|
-
*
|
|
637
|
-
* - 48 ~ 63 bit: Flexible bits for extensibility.
|
|
638
|
-
*
|
|
639
|
-
* @defaultValue `0x00010000`
|
|
640
|
-
*/
|
|
641
|
-
pipelineSchedulerConfig?: number;
|
|
642
602
|
/**
|
|
643
603
|
* removeDescendantSelectorScope is used to remove the scope of descendant selectors.
|
|
644
604
|
*/
|
package/dist/index.js
CHANGED
|
@@ -284,7 +284,7 @@ const DEFAULT_DIST_PATH_INTERMEDIATE = '.rspeedy';
|
|
|
284
284
|
const DEFAULT_FILENAME_HASH = '.[contenthash:8]';
|
|
285
285
|
const EMPTY_HASH = '';
|
|
286
286
|
function applyEntry(api, options) {
|
|
287
|
-
const { compat, customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableAccessibilityElement,
|
|
287
|
+
const { compat, customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableRemoveCSSScope, firstScreenSyncTiming, enableSSR, removeDescendantSelectorScope, targetSdkVersion, extractStr: originalExtractStr, experimental_isLazyBundle } = options;
|
|
288
288
|
const { config, logger } = api.useExposed(Symbol.for('rspeedy.api'));
|
|
289
289
|
api.modifyBundlerChain(async (chain, { environment, isDev, isProd })=>{
|
|
290
290
|
const entries = chain.entryPoints.entries() ?? {};
|
|
@@ -339,14 +339,11 @@ function applyEntry(api, options) {
|
|
|
339
339
|
defaultDisplayLinear,
|
|
340
340
|
enableA11y: true,
|
|
341
341
|
enableAccessibilityElement,
|
|
342
|
-
enableICU,
|
|
343
342
|
enableCSSInheritance,
|
|
344
343
|
enableCSSInvalidation,
|
|
345
344
|
enableCSSSelector,
|
|
346
345
|
enableNewGesture,
|
|
347
|
-
enableParallelElement,
|
|
348
346
|
enableRemoveCSSScope: enableRemoveCSSScope ?? true,
|
|
349
|
-
pipelineSchedulerConfig,
|
|
350
347
|
removeDescendantSelectorScope,
|
|
351
348
|
targetSdkVersion,
|
|
352
349
|
experimental_isLazyBundle,
|
|
@@ -609,23 +606,20 @@ function applyUseSyncExternalStore(api) {
|
|
|
609
606
|
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
610
607
|
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js");
|
|
611
608
|
const validateConfig = (()=>{
|
|
612
|
-
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.
|
|
609
|
+
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.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.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.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)=>{
|
|
613
610
|
if ([
|
|
614
611
|
"compat",
|
|
615
612
|
"customCSSInheritanceList",
|
|
616
613
|
"debugInfoOutside",
|
|
617
614
|
"defaultDisplayLinear",
|
|
618
615
|
"enableAccessibilityElement",
|
|
619
|
-
"enableICU",
|
|
620
616
|
"enableCSSInheritance",
|
|
621
617
|
"enableCSSInvalidation",
|
|
622
618
|
"enableCSSSelector",
|
|
623
619
|
"enableNewGesture",
|
|
624
|
-
"enableParallelElement",
|
|
625
620
|
"enableRemoveCSSScope",
|
|
626
621
|
"firstScreenSyncTiming",
|
|
627
622
|
"enableSSR",
|
|
628
|
-
"pipelineSchedulerConfig",
|
|
629
623
|
"removeDescendantSelectorScope",
|
|
630
624
|
"shake",
|
|
631
625
|
"defineDCE",
|
|
@@ -742,11 +736,6 @@ const validateConfig = (()=>{
|
|
|
742
736
|
path: _path + ".enableAccessibilityElement",
|
|
743
737
|
expected: "(boolean | undefined)",
|
|
744
738
|
value: input.enableAccessibilityElement
|
|
745
|
-
}, _errorFactory)) && (void 0 === input.enableICU || "boolean" == typeof input.enableICU || _assertGuard._assertGuard(_exceptionable, {
|
|
746
|
-
method: "typia.createAssertEquals",
|
|
747
|
-
path: _path + ".enableICU",
|
|
748
|
-
expected: "(boolean | undefined)",
|
|
749
|
-
value: input.enableICU
|
|
750
739
|
}, _errorFactory)) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance || _assertGuard._assertGuard(_exceptionable, {
|
|
751
740
|
method: "typia.createAssertEquals",
|
|
752
741
|
path: _path + ".enableCSSInheritance",
|
|
@@ -767,11 +756,6 @@ const validateConfig = (()=>{
|
|
|
767
756
|
path: _path + ".enableNewGesture",
|
|
768
757
|
expected: "(boolean | undefined)",
|
|
769
758
|
value: input.enableNewGesture
|
|
770
|
-
}, _errorFactory)) && (void 0 === input.enableParallelElement || "boolean" == typeof input.enableParallelElement || _assertGuard._assertGuard(_exceptionable, {
|
|
771
|
-
method: "typia.createAssertEquals",
|
|
772
|
-
path: _path + ".enableParallelElement",
|
|
773
|
-
expected: "(boolean | undefined)",
|
|
774
|
-
value: input.enableParallelElement
|
|
775
759
|
}, _errorFactory)) && (void 0 === input.enableRemoveCSSScope || "boolean" == typeof input.enableRemoveCSSScope || _assertGuard._assertGuard(_exceptionable, {
|
|
776
760
|
method: "typia.createAssertEquals",
|
|
777
761
|
path: _path + ".enableRemoveCSSScope",
|
|
@@ -787,11 +771,6 @@ const validateConfig = (()=>{
|
|
|
787
771
|
path: _path + ".enableSSR",
|
|
788
772
|
expected: "(boolean | undefined)",
|
|
789
773
|
value: input.enableSSR
|
|
790
|
-
}, _errorFactory)) && (void 0 === input.pipelineSchedulerConfig || "number" == typeof input.pipelineSchedulerConfig || _assertGuard._assertGuard(_exceptionable, {
|
|
791
|
-
method: "typia.createAssertEquals",
|
|
792
|
-
path: _path + ".pipelineSchedulerConfig",
|
|
793
|
-
expected: "(number | undefined)",
|
|
794
|
-
value: input.pipelineSchedulerConfig
|
|
795
774
|
}, _errorFactory)) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope || _assertGuard._assertGuard(_exceptionable, {
|
|
796
775
|
method: "typia.createAssertEquals",
|
|
797
776
|
path: _path + ".removeDescendantSelectorScope",
|
|
@@ -854,16 +833,13 @@ const validateConfig = (()=>{
|
|
|
854
833
|
"debugInfoOutside",
|
|
855
834
|
"defaultDisplayLinear",
|
|
856
835
|
"enableAccessibilityElement",
|
|
857
|
-
"enableICU",
|
|
858
836
|
"enableCSSInheritance",
|
|
859
837
|
"enableCSSInvalidation",
|
|
860
838
|
"enableCSSSelector",
|
|
861
839
|
"enableNewGesture",
|
|
862
|
-
"enableParallelElement",
|
|
863
840
|
"enableRemoveCSSScope",
|
|
864
841
|
"firstScreenSyncTiming",
|
|
865
842
|
"enableSSR",
|
|
866
|
-
"pipelineSchedulerConfig",
|
|
867
843
|
"removeDescendantSelectorScope",
|
|
868
844
|
"shake",
|
|
869
845
|
"defineDCE",
|
|
@@ -1193,16 +1169,13 @@ function pluginReactLynx(userOptions) {
|
|
|
1193
1169
|
debugInfoOutside: true,
|
|
1194
1170
|
defaultDisplayLinear: true,
|
|
1195
1171
|
enableAccessibilityElement: false,
|
|
1196
|
-
enableICU: false,
|
|
1197
1172
|
enableCSSInheritance: false,
|
|
1198
1173
|
enableCSSInvalidation: true,
|
|
1199
1174
|
enableCSSSelector: true,
|
|
1200
1175
|
enableNewGesture: false,
|
|
1201
|
-
enableParallelElement: true,
|
|
1202
1176
|
enableRemoveCSSScope: true,
|
|
1203
1177
|
firstScreenSyncTiming: 'immediately',
|
|
1204
1178
|
enableSSR: false,
|
|
1205
|
-
pipelineSchedulerConfig: 0x00010000,
|
|
1206
1179
|
removeDescendantSelectorScope: true,
|
|
1207
1180
|
shake: void 0,
|
|
1208
1181
|
defineDCE: void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/css-extract-webpack-plugin": "0.6.
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "0.6.3",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.11.0",
|
|
37
37
|
"@lynx-js/react-refresh-webpack-plugin": "0.3.4",
|
|
38
|
-
"@lynx-js/react-webpack-plugin": "0.7.
|
|
38
|
+
"@lynx-js/react-webpack-plugin": "0.7.1",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "0.1.3",
|
|
40
|
-
"@lynx-js/template-webpack-plugin": "0.
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "0.9.0",
|
|
41
41
|
"@lynx-js/use-sync-external-store": "1.5.0",
|
|
42
42
|
"background-only": "^0.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "7.52.
|
|
45
|
+
"@microsoft/api-extractor": "7.52.13",
|
|
46
46
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
47
47
|
"@rsbuild/core": "1.5.4",
|
|
48
48
|
"@rsbuild/plugin-sass": "1.4.0",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"type-fest": "^4.41.0",
|
|
54
54
|
"typia": "9.7.2",
|
|
55
55
|
"typia-rspack-plugin": "2.2.2",
|
|
56
|
-
"@lynx-js/react": "0.
|
|
56
|
+
"@lynx-js/react": "0.114.0",
|
|
57
57
|
"@lynx-js/react-transform": "0.2.0",
|
|
58
|
-
"@lynx-js/rspeedy": "0.11.
|
|
58
|
+
"@lynx-js/rspeedy": "0.11.3",
|
|
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 || ^0.109.0 || ^0.110.0 || ^0.111.0 || ^0.112.0 || ^0.113.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 || ^0.110.0 || ^0.111.0 || ^0.112.0 || ^0.113.0 || ^0.114.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@lynx-js/react": {
|