@lynx-js/react-rsbuild-plugin-canary 0.11.0-canary-20250921-d0ef559f → 1.0.0-canary-20250918-b17b7cb2
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 +8 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +11 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 1.0.0-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,20 +8,16 @@
|
|
|
8
8
|
|
|
9
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
10
|
|
|
11
|
-
- **BREAKING CHANGE**: Remove the `enableICU` option. ([#1800](https://github.com/lynx-family/lynx-stack/pull/1800))
|
|
12
|
-
|
|
13
11
|
### Patch Changes
|
|
14
12
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
- @lynx-js/
|
|
19
|
-
- @lynx-js/react@0.114.0-canary-
|
|
20
|
-
- @lynx-js/react-
|
|
21
|
-
- @lynx-js/css-extract-webpack-plugin@0.6.3-canary-20250921062143-d0ef559fac383634437880681855923968b4fa65
|
|
22
|
-
- @lynx-js/react-alias-rsbuild-plugin@0.11.0-canary-20250921062143-d0ef559fac383634437880681855923968b4fa65
|
|
23
|
-
- @lynx-js/use-sync-external-store@1.5.0
|
|
13
|
+
- Updated dependencies [[`24100ab`](https://github.com/lynx-family/lynx-stack/commit/24100ab63302f8f2bc10578c70ac5cceeffe312a), [`24100ab`](https://github.com/lynx-family/lynx-stack/commit/24100ab63302f8f2bc10578c70ac5cceeffe312a), [`8b741a0`](https://github.com/lynx-family/lynx-stack/commit/8b741a09dac5218ad921dbbe2b33d1aaebff6141), [`f09e0aa`](https://github.com/lynx-family/lynx-stack/commit/f09e0aac48d5dd890d8e94c41536d6b721a968d6), [`7f46fdc`](https://github.com/lynx-family/lynx-stack/commit/7f46fdcb53b66adcd0bd74c05fda8eef00fd10e4)]:
|
|
14
|
+
- @lynx-js/template-webpack-plugin@0.9.0-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
15
|
+
- @lynx-js/react-webpack-plugin@0.7.1-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
16
|
+
- @lynx-js/css-extract-webpack-plugin@0.6.3-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
17
|
+
- @lynx-js/react@0.114.0-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
18
|
+
- @lynx-js/react-alias-rsbuild-plugin@1.0.0-canary-20250918080343-b17b7cb2bb92d1539e76276f136806eefa788258
|
|
24
19
|
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
20
|
+
- @lynx-js/use-sync-external-store@1.5.0
|
|
25
21
|
|
|
26
22
|
## 0.10.14
|
|
27
23
|
|
package/dist/index.d.ts
CHANGED
|
@@ -501,6 +501,14 @@ 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;
|
|
504
512
|
/**
|
|
505
513
|
* enableCSSInheritance enables the default inheritance properties.
|
|
506
514
|
*
|
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, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableRemoveCSSScope, firstScreenSyncTiming, enableSSR, removeDescendantSelectorScope, targetSdkVersion, extractStr: originalExtractStr, experimental_isLazyBundle } = options;
|
|
287
|
+
const { compat, customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableAccessibilityElement, enableICU, 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,6 +339,7 @@ function applyEntry(api, options) {
|
|
|
339
339
|
defaultDisplayLinear,
|
|
340
340
|
enableA11y: true,
|
|
341
341
|
enableAccessibilityElement,
|
|
342
|
+
enableICU,
|
|
342
343
|
enableCSSInheritance,
|
|
343
344
|
enableCSSInvalidation,
|
|
344
345
|
enableCSSSelector,
|
|
@@ -606,13 +607,14 @@ function applyUseSyncExternalStore(api) {
|
|
|
606
607
|
var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js");
|
|
607
608
|
var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.2_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js");
|
|
608
609
|
const validateConfig = (()=>{
|
|
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)=>{
|
|
610
|
+
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.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)=>{
|
|
610
611
|
if ([
|
|
611
612
|
"compat",
|
|
612
613
|
"customCSSInheritanceList",
|
|
613
614
|
"debugInfoOutside",
|
|
614
615
|
"defaultDisplayLinear",
|
|
615
616
|
"enableAccessibilityElement",
|
|
617
|
+
"enableICU",
|
|
616
618
|
"enableCSSInheritance",
|
|
617
619
|
"enableCSSInvalidation",
|
|
618
620
|
"enableCSSSelector",
|
|
@@ -736,6 +738,11 @@ const validateConfig = (()=>{
|
|
|
736
738
|
path: _path + ".enableAccessibilityElement",
|
|
737
739
|
expected: "(boolean | undefined)",
|
|
738
740
|
value: input.enableAccessibilityElement
|
|
741
|
+
}, _errorFactory)) && (void 0 === input.enableICU || "boolean" == typeof input.enableICU || _assertGuard._assertGuard(_exceptionable, {
|
|
742
|
+
method: "typia.createAssertEquals",
|
|
743
|
+
path: _path + ".enableICU",
|
|
744
|
+
expected: "(boolean | undefined)",
|
|
745
|
+
value: input.enableICU
|
|
739
746
|
}, _errorFactory)) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance || _assertGuard._assertGuard(_exceptionable, {
|
|
740
747
|
method: "typia.createAssertEquals",
|
|
741
748
|
path: _path + ".enableCSSInheritance",
|
|
@@ -833,6 +840,7 @@ const validateConfig = (()=>{
|
|
|
833
840
|
"debugInfoOutside",
|
|
834
841
|
"defaultDisplayLinear",
|
|
835
842
|
"enableAccessibilityElement",
|
|
843
|
+
"enableICU",
|
|
836
844
|
"enableCSSInheritance",
|
|
837
845
|
"enableCSSInvalidation",
|
|
838
846
|
"enableCSSSelector",
|
|
@@ -1169,6 +1177,7 @@ function pluginReactLynx(userOptions) {
|
|
|
1169
1177
|
debugInfoOutside: true,
|
|
1170
1178
|
defaultDisplayLinear: true,
|
|
1171
1179
|
enableAccessibilityElement: false,
|
|
1180
|
+
enableICU: false,
|
|
1172
1181
|
enableCSSInheritance: false,
|
|
1173
1182
|
enableCSSInvalidation: true,
|
|
1174
1183
|
enableCSSSelector: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin-canary",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-canary-20250918-b17b7cb2",
|
|
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": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.3-canary-
|
|
36
|
-
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.
|
|
35
|
+
"@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.3-canary-20250918-b17b7cb2",
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@1.0.0-canary-20250918-b17b7cb2",
|
|
37
37
|
"@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.4",
|
|
38
|
-
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.7.1-canary-
|
|
38
|
+
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.7.1-canary-20250918-b17b7cb2",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.3",
|
|
40
|
-
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.9.0-canary-
|
|
40
|
+
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.9.0-canary-20250918-b17b7cb2",
|
|
41
41
|
"@lynx-js/use-sync-external-store": "npm:@lynx-js/use-sync-external-store-canary@1.5.0",
|
|
42
42
|
"background-only": "npm:background-only-canary@0.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "7.52.
|
|
45
|
+
"@microsoft/api-extractor": "7.52.11",
|
|
46
46
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
47
47
|
"@rsbuild/core": "1.5.4",
|
|
48
48
|
"@rsbuild/plugin-sass": "1.4.0",
|
|
@@ -53,9 +53,9 @@
|
|
|
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": "npm:@lynx-js/react-canary@0.114.0-canary-
|
|
56
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.114.0-canary-20250918-b17b7cb2",
|
|
57
|
+
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.3-canary-20250918-b17b7cb2",
|
|
57
58
|
"@lynx-js/react-transform": "0.2.0",
|
|
58
|
-
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.3-canary-20250921-d0ef559f",
|
|
59
59
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|