@lynx-js/react-rsbuild-plugin-canary 0.10.13-canary-20250826-bc7f532b → 0.10.13

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +42 -43
  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.10.13-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
3
+ ## 0.10.13
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -10,12 +10,11 @@
10
10
 
11
11
  When `performance.chunkSplit.strategy` is not `all-in-one`, Lynx native events are cached until the BTS chunk is fully loaded and are replayed when that chunk is ready. The `firstScreenSyncTiming` flag will no longer change to `jsReady` anymore.
12
12
 
13
- - Updated dependencies [[`f0d483c`](https://github.com/lynx-family/lynx-stack/commit/f0d483ca2d3e208a618727590061b0babc075737), [`52db511`](https://github.com/lynx-family/lynx-stack/commit/52db511fe59430667228dee43c635839ad2a5c18), [`839e949`](https://github.com/lynx-family/lynx-stack/commit/839e9492a3ee7b0ae2f5981dc7f8acb0116cddf4), [`a753712`](https://github.com/lynx-family/lynx-stack/commit/a7537125cf7a9bd25ba2d94872496f8783310079), [`e4d116b`](https://github.com/lynx-family/lynx-stack/commit/e4d116b6e5eaf49ced08c505c99f7e878a58dfb1), [`6095aa8`](https://github.com/lynx-family/lynx-stack/commit/6095aa88f33a502027ede270b182275af4101d0e), [`d33c1d2`](https://github.com/lynx-family/lynx-stack/commit/d33c1d27827f5e1ebc553447dabe5080671de94a), [`e0c0b3a`](https://github.com/lynx-family/lynx-stack/commit/e0c0b3a0109d90f3a8cee6825d70c59e36f968be)]:
14
- - @lynx-js/react-alias-rsbuild-plugin@0.10.13-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
15
- - @lynx-js/react@0.112.4-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
16
- - @lynx-js/template-webpack-plugin@0.8.5-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
17
- - @lynx-js/react-webpack-plugin@0.6.20-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
18
- - @lynx-js/runtime-wrapper-webpack-plugin@0.1.3-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
13
+ - Updated dependencies [[`f0d483c`](https://github.com/lynx-family/lynx-stack/commit/f0d483ca2d3e208a618727590061b0babc075737), [`e4d116b`](https://github.com/lynx-family/lynx-stack/commit/e4d116b6e5eaf49ced08c505c99f7e878a58dfb1), [`d33c1d2`](https://github.com/lynx-family/lynx-stack/commit/d33c1d27827f5e1ebc553447dabe5080671de94a)]:
14
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.13
15
+ - @lynx-js/template-webpack-plugin@0.8.5
16
+ - @lynx-js/react-webpack-plugin@0.6.20
17
+ - @lynx-js/runtime-wrapper-webpack-plugin@0.1.3
19
18
  - @lynx-js/use-sync-external-store@1.5.0
20
19
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
21
20
  - @lynx-js/css-extract-webpack-plugin@0.6.2
@@ -122,28 +121,28 @@
122
121
 
123
122
  ```ts
124
123
  type InlineChunkTestFunction = (params: {
125
- size: number;
126
- name: string;
127
- }) => boolean;
124
+ size: number
125
+ name: string
126
+ }) => boolean
128
127
 
129
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
128
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
130
129
 
131
130
  type InlineChunkConfig =
132
131
  | boolean
133
132
  | InlineChunkTest
134
- | { enable?: boolean | "auto"; test: InlineChunkTest };
133
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
135
134
  ```
136
135
 
137
136
  ```ts
138
- import { defineConfig } from "@lynx-js/rspeedy";
137
+ import { defineConfig } from '@lynx-js/rspeedy'
139
138
 
140
139
  export default defineConfig({
141
140
  output: {
142
141
  inlineScripts: ({ name, size }) => {
143
- return name.includes("foo") && size < 1000;
142
+ return name.includes('foo') && size < 1000
144
143
  },
145
144
  },
146
- });
145
+ })
147
146
  ```
148
147
 
149
148
  - 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)]:
@@ -223,13 +222,13 @@
223
222
  example:
224
223
 
225
224
  ```js
226
- import { defineConfig } from "@lynx-js/rspeedy";
225
+ import { defineConfig } from '@lynx-js/rspeedy'
227
226
 
228
227
  export default defineConfig({
229
228
  output: {
230
229
  inlineScripts: false,
231
230
  },
232
- });
231
+ })
233
232
  ```
234
233
 
235
234
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -316,7 +315,7 @@
316
315
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
317
316
 
318
317
  ```js
319
- import { defineConfig } from "@lynx-js/rspeedy";
318
+ import { defineConfig } from '@lynx-js/rspeedy'
320
319
 
321
320
  export default defineConfig({
322
321
  tools: {
@@ -328,7 +327,7 @@
328
327
  },
329
328
  },
330
329
  },
331
- });
330
+ })
332
331
  ```
333
332
 
334
333
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -504,7 +503,7 @@
504
503
  You may turn it off using `output.minify.css: false`:
505
504
 
506
505
  ```js
507
- import { defineConfig } from "@lynx-js/rspeedy";
506
+ import { defineConfig } from '@lynx-js/rspeedy'
508
507
 
509
508
  export default defineConfig({
510
509
  output: {
@@ -512,18 +511,18 @@
512
511
  css: false,
513
512
  },
514
513
  },
515
- });
514
+ })
516
515
  ```
517
516
 
518
517
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
519
518
 
520
519
  ```js
521
- import { defineConfig } from "@lynx-js/rspeedy";
522
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
520
+ import { defineConfig } from '@lynx-js/rspeedy'
521
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
523
522
 
524
523
  export default defineConfig({
525
524
  plugins: [pluginCssMinimizer()],
526
- });
525
+ })
527
526
  ```
528
527
 
529
528
  ### Patch Changes
@@ -603,18 +602,18 @@
603
602
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
604
603
 
605
604
  ```js
606
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
607
- import { defineConfig } from "@lynx-js/rspeedy";
605
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
606
+ import { defineConfig } from '@lynx-js/rspeedy'
608
607
 
609
608
  export default defineConfig({
610
609
  plugins: [
611
610
  pluginReactLynx({
612
611
  defineDCE: {
613
- __SOME_FALSE_DEFINE__: "false",
612
+ __SOME_FALSE_DEFINE__: 'false',
614
613
  },
615
614
  }),
616
615
  ],
617
- });
616
+ })
618
617
  ```
619
618
 
620
619
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -622,20 +621,20 @@
622
621
  For example, `import` initialized by dead code will be removed:
623
622
 
624
623
  ```js
625
- import { foo } from "bar";
624
+ import { foo } from 'bar'
626
625
 
627
626
  if (__SOME_FALSE_DEFINE__) {
628
- foo();
629
- console.log("dead code");
627
+ foo()
628
+ console.log('dead code')
630
629
  } else {
631
- console.log("reachable code");
630
+ console.log('reachable code')
632
631
  }
633
632
  ```
634
633
 
635
634
  will be transformed to:
636
635
 
637
636
  ```js
638
- console.log("reachable code");
637
+ console.log('reachable code')
639
638
  ```
640
639
 
641
640
  - Updated dependencies [8dd6cca]
@@ -678,18 +677,18 @@
678
677
  - a30c83d: Add `compat.removeComponentAttrRegex`.
679
678
 
680
679
  ```js
681
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
682
- import { defineConfig } from "@lynx-js/rspeedy";
680
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
681
+ import { defineConfig } from '@lynx-js/rspeedy'
683
682
 
684
683
  export default defineConfig({
685
684
  plugins: [
686
685
  pluginReactLynx({
687
686
  compat: {
688
- removeComponentAttrRegex: "YOUR REGEX",
687
+ removeComponentAttrRegex: 'YOUR REGEX',
689
688
  },
690
689
  }),
691
690
  ],
692
- });
691
+ })
693
692
  ```
694
693
 
695
694
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -708,11 +707,11 @@
708
707
 
709
708
  ```javascript
710
709
  // bar.ts
711
- import "background-only";
710
+ import 'background-only'
712
711
 
713
712
  export const bar = () => {
714
- return "bar";
715
- };
713
+ return 'bar'
714
+ }
716
715
  ```
717
716
 
718
717
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -721,15 +720,15 @@
721
720
 
722
721
  ```tsx
723
722
  // App.tsx
724
- import { bar } from "./bar.js";
723
+ import { bar } from './bar.js'
725
724
 
726
725
  function App() {
727
- bar();
726
+ bar()
728
727
  return (
729
728
  <view>
730
729
  <text>Hello, Lynx x rspeedy</text>
731
730
  </view>
732
- );
731
+ )
733
732
  }
734
733
  ```
735
734
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.13-canary-20250826-bc7f532b",
3
+ "version": "0.10.13",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,11 +33,11 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.2",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.13-canary-20250826-bc7f532b",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.13",
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.6.20-canary-20250826-bc7f532b",
39
- "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.3-canary-20250826-bc7f532b",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.5-canary-20250826-bc7f532b",
38
+ "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.20",
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.8.5",
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
  },
@@ -53,10 +53,10 @@
53
53
  "type-fest": "^4.41.0",
54
54
  "typia": "9.7.1",
55
55
  "typia-rspack-plugin": "2.2.1",
56
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.4-canary-20250826-bc7f532b",
57
56
  "@lynx-js/react-transform": "0.2.0",
58
- "@lynx-js/vitest-setup": "0.0.0",
59
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.8-canary-20250826-bc7f532b"
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.4",
58
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.8",
59
+ "@lynx-js/vitest-setup": "0.0.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@lynx-js/react": "*"