@lynx-js/react-rsbuild-plugin-canary 0.10.11 → 0.10.12-canary-20250812-62775494

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.10.12-canary-20250812160747-627754949da8adf1cf0aafe263e3c3437935d78f
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b391ef5`](https://github.com/lynx-family/lynx-stack/commit/b391ef5c6dd0a0945e68b38f40807df7e1ef672e), [`6277549`](https://github.com/lynx-family/lynx-stack/commit/627754949da8adf1cf0aafe263e3c3437935d78f)]:
8
+ - @lynx-js/css-extract-webpack-plugin@0.6.2-canary-20250812160747-627754949da8adf1cf0aafe263e3c3437935d78f
9
+ - @lynx-js/react@0.112.3-canary-20250812160747-627754949da8adf1cf0aafe263e3c3437935d78f
10
+ - @lynx-js/react-webpack-plugin@0.6.19
11
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.12-canary-20250812160747-627754949da8adf1cf0aafe263e3c3437935d78f
12
+ - @lynx-js/use-sync-external-store@1.5.0
13
+ - @lynx-js/react-refresh-webpack-plugin@0.3.4
14
+
3
15
  ## 0.10.11
4
16
 
5
17
  ### Patch Changes
@@ -88,28 +100,28 @@
88
100
 
89
101
  ```ts
90
102
  type InlineChunkTestFunction = (params: {
91
- size: number
92
- name: string
93
- }) => boolean
103
+ size: number;
104
+ name: string;
105
+ }) => boolean;
94
106
 
95
- type InlineChunkTest = RegExp | InlineChunkTestFunction
107
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
96
108
 
97
109
  type InlineChunkConfig =
98
110
  | boolean
99
111
  | InlineChunkTest
100
- | { enable?: boolean | 'auto', test: InlineChunkTest }
112
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
101
113
  ```
102
114
 
103
115
  ```ts
104
- import { defineConfig } from '@lynx-js/rspeedy'
116
+ import { defineConfig } from "@lynx-js/rspeedy";
105
117
 
106
118
  export default defineConfig({
107
119
  output: {
108
120
  inlineScripts: ({ name, size }) => {
109
- return name.includes('foo') && size < 1000
121
+ return name.includes("foo") && size < 1000;
110
122
  },
111
123
  },
112
- })
124
+ });
113
125
  ```
114
126
 
115
127
  - Updated dependencies [[`51cb73d`](https://github.com/lynx-family/lynx-stack/commit/51cb73dd0b77d35540644cdd2e6c37db856f0e8a), [`69fb042`](https://github.com/lynx-family/lynx-stack/commit/69fb0420e297abf768c889769c95a207c480b3c7), [`a7e8b5b`](https://github.com/lynx-family/lynx-stack/commit/a7e8b5bbbab0490e7cf6f47581130e7b32739abb)]:
@@ -189,13 +201,13 @@
189
201
  example:
190
202
 
191
203
  ```js
192
- import { defineConfig } from '@lynx-js/rspeedy'
204
+ import { defineConfig } from "@lynx-js/rspeedy";
193
205
 
194
206
  export default defineConfig({
195
207
  output: {
196
208
  inlineScripts: false,
197
209
  },
198
- })
210
+ });
199
211
  ```
200
212
 
201
213
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -282,7 +294,7 @@
282
294
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
283
295
 
284
296
  ```js
285
- import { defineConfig } from '@lynx-js/rspeedy'
297
+ import { defineConfig } from "@lynx-js/rspeedy";
286
298
 
287
299
  export default defineConfig({
288
300
  tools: {
@@ -294,7 +306,7 @@
294
306
  },
295
307
  },
296
308
  },
297
- })
309
+ });
298
310
  ```
299
311
 
300
312
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -470,7 +482,7 @@
470
482
  You may turn it off using `output.minify.css: false`:
471
483
 
472
484
  ```js
473
- import { defineConfig } from '@lynx-js/rspeedy'
485
+ import { defineConfig } from "@lynx-js/rspeedy";
474
486
 
475
487
  export default defineConfig({
476
488
  output: {
@@ -478,18 +490,18 @@
478
490
  css: false,
479
491
  },
480
492
  },
481
- })
493
+ });
482
494
  ```
483
495
 
484
496
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
485
497
 
486
498
  ```js
487
- import { defineConfig } from '@lynx-js/rspeedy'
488
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
499
+ import { defineConfig } from "@lynx-js/rspeedy";
500
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
489
501
 
490
502
  export default defineConfig({
491
503
  plugins: [pluginCssMinimizer()],
492
- })
504
+ });
493
505
  ```
494
506
 
495
507
  ### Patch Changes
@@ -569,18 +581,18 @@
569
581
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
570
582
 
571
583
  ```js
572
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
573
- import { defineConfig } from '@lynx-js/rspeedy'
584
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
585
+ import { defineConfig } from "@lynx-js/rspeedy";
574
586
 
575
587
  export default defineConfig({
576
588
  plugins: [
577
589
  pluginReactLynx({
578
590
  defineDCE: {
579
- __SOME_FALSE_DEFINE__: 'false',
591
+ __SOME_FALSE_DEFINE__: "false",
580
592
  },
581
593
  }),
582
594
  ],
583
- })
595
+ });
584
596
  ```
585
597
 
586
598
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -588,20 +600,20 @@
588
600
  For example, `import` initialized by dead code will be removed:
589
601
 
590
602
  ```js
591
- import { foo } from 'bar'
603
+ import { foo } from "bar";
592
604
 
593
605
  if (__SOME_FALSE_DEFINE__) {
594
- foo()
595
- console.log('dead code')
606
+ foo();
607
+ console.log("dead code");
596
608
  } else {
597
- console.log('reachable code')
609
+ console.log("reachable code");
598
610
  }
599
611
  ```
600
612
 
601
613
  will be transformed to:
602
614
 
603
615
  ```js
604
- console.log('reachable code')
616
+ console.log("reachable code");
605
617
  ```
606
618
 
607
619
  - Updated dependencies [8dd6cca]
@@ -644,18 +656,18 @@
644
656
  - a30c83d: Add `compat.removeComponentAttrRegex`.
645
657
 
646
658
  ```js
647
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
648
- import { defineConfig } from '@lynx-js/rspeedy'
659
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
660
+ import { defineConfig } from "@lynx-js/rspeedy";
649
661
 
650
662
  export default defineConfig({
651
663
  plugins: [
652
664
  pluginReactLynx({
653
665
  compat: {
654
- removeComponentAttrRegex: 'YOUR REGEX',
666
+ removeComponentAttrRegex: "YOUR REGEX",
655
667
  },
656
668
  }),
657
669
  ],
658
- })
670
+ });
659
671
  ```
660
672
 
661
673
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -674,11 +686,11 @@
674
686
 
675
687
  ```javascript
676
688
  // bar.ts
677
- import 'background-only'
689
+ import "background-only";
678
690
 
679
691
  export const bar = () => {
680
- return 'bar'
681
- }
692
+ return "bar";
693
+ };
682
694
  ```
683
695
 
684
696
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -687,15 +699,15 @@
687
699
 
688
700
  ```tsx
689
701
  // App.tsx
690
- import { bar } from './bar.js'
702
+ import { bar } from "./bar.js";
691
703
 
692
704
  function App() {
693
- bar()
705
+ bar();
694
706
  return (
695
707
  <view>
696
708
  <text>Hello, Lynx x rspeedy</text>
697
709
  </view>
698
- )
710
+ );
699
711
  }
700
712
  ```
701
713
 
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { CSSPlugins, LynxEncodePlugin, LynxTemplatePlugin, WebEncodePlugin } fro
7
7
  import { RuntimeWrapperWebpackPlugin } from "@lynx-js/runtime-wrapper-webpack-plugin";
8
8
  import { ReactRefreshRspackPlugin, ReactRefreshWebpackPlugin } from "@lynx-js/react-refresh-webpack-plugin";
9
9
  var __webpack_modules__ = {
10
- "../../../node_modules/.pnpm/typia@9.6.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js": function(__unused_webpack_module, exports) {
10
+ "../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js": function(__unused_webpack_module, exports) {
11
11
  exports._accessExpressionAsString = void 0;
12
12
  const _accessExpressionAsString = (str)=>variable(str) ? `.${str}` : `[${JSON.stringify(str)}]`;
13
13
  exports._accessExpressionAsString = _accessExpressionAsString;
@@ -52,9 +52,9 @@ var __webpack_modules__ = {
52
52
  "with"
53
53
  ]);
54
54
  },
55
- "../../../node_modules/.pnpm/typia@9.6.1_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js": function(__unused_webpack_module, exports, __webpack_require__) {
55
+ "../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js": function(__unused_webpack_module, exports, __webpack_require__) {
56
56
  exports._assertGuard = void 0;
57
- const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.6.1_typescript@5.9.2/node_modules/typia/lib/TypeGuardError.mjs");
57
+ const TypeGuardError_1 = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/TypeGuardError.mjs");
58
58
  const _assertGuard = (exceptionable, props, factory)=>{
59
59
  if (true === exceptionable) if (factory) throw factory(props);
60
60
  else throw new TypeGuardError_1.TypeGuardError(props);
@@ -71,7 +71,7 @@ var __webpack_modules__ = {
71
71
  "node:url": function(module) {
72
72
  module.exports = __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__;
73
73
  },
74
- "../../../node_modules/.pnpm/typia@9.6.1_typescript@5.9.2/node_modules/typia/lib/TypeGuardError.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
74
+ "../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/TypeGuardError.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75
75
  __webpack_require__.r(__webpack_exports__);
76
76
  __webpack_require__.d(__webpack_exports__, {
77
77
  TypeGuardError: ()=>TypeGuardError
@@ -611,8 +611,8 @@ function applyUseSyncExternalStore(api) {
611
611
  })));
612
612
  });
613
613
  }
614
- var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.6.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js");
615
- var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.6.1_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js");
614
+ var _accessExpressionAsString = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_accessExpressionAsString.js");
615
+ var _assertGuard = __webpack_require__("../../../node_modules/.pnpm/typia@9.7.1_typescript@5.9.2/node_modules/typia/lib/internal/_assertGuard.js");
616
616
  const validateConfig = (()=>{
617
617
  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)=>{
618
618
  if ([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.11",
3
+ "version": "0.10.12-canary-20250812-62775494",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -32,8 +32,8 @@
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.1",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.11",
35
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.2-canary-20250812-62775494",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.12-canary-20250812-62775494",
37
37
  "@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.4",
38
38
  "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.19",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.2",
@@ -45,14 +45,13 @@
45
45
  "@microsoft/api-extractor": "7.52.10",
46
46
  "@rollup/plugin-typescript": "^12.1.4",
47
47
  "@rsbuild/core": "1.4.15",
48
- "@rsbuild/plugin-sass": "1.3.3",
49
- "@rsbuild/plugin-typed-css-modules": "1.0.2",
50
- "@rsbuild/plugin-webpack-swc": "1.1.1",
48
+ "@rsbuild/plugin-sass": "1.3.5",
49
+ "@rsbuild/plugin-typed-css-modules": "1.0.3",
51
50
  "tailwindcss": "^3.4.17",
52
51
  "type-fest": "^4.41.0",
53
- "typia": "9.6.1",
54
- "typia-rspack-plugin": "2.2.0",
55
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.2",
52
+ "typia": "9.7.1",
53
+ "typia-rspack-plugin": "2.2.1",
54
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.3-canary-20250812-62775494",
56
55
  "@lynx-js/react-transform": "0.2.0",
57
56
  "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.6",
58
57
  "@lynx-js/vitest-setup": "0.0.0"