@lynx-js/react-rsbuild-plugin-canary 0.10.9-canary-20250728-fcafd541 → 0.10.9

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 +40 -41
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.9-canary-20250728132211-fcafd541c535f354476cf439b8ba97b00530aa52
3
+ ## 0.10.9
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,10 +8,9 @@
8
8
 
9
9
  - Fix not having profile in development by default. ([#1306](https://github.com/lynx-family/lynx-stack/pull/1306))
10
10
 
11
- - Updated dependencies [[`fcafd54`](https://github.com/lynx-family/lynx-stack/commit/fcafd541c535f354476cf439b8ba97b00530aa52), [`e156e76`](https://github.com/lynx-family/lynx-stack/commit/e156e76ee9cd12f091f56ae62074628973bf50c7), [`fe38de5`](https://github.com/lynx-family/lynx-stack/commit/fe38de505b87b768035e3a833bdf8415dc4023ac), [`fe38de5`](https://github.com/lynx-family/lynx-stack/commit/fe38de505b87b768035e3a833bdf8415dc4023ac), [`7cd5ea2`](https://github.com/lynx-family/lynx-stack/commit/7cd5ea2cebf12aa982ddc048dec4c5c7ed6bc1d6), [`629d422`](https://github.com/lynx-family/lynx-stack/commit/629d4229ad2994eba85cba9b82989704f5860652), [`2d58759`](https://github.com/lynx-family/lynx-stack/commit/2d58759310296de48085909d46264acbf25b7f97), [`fcafd54`](https://github.com/lynx-family/lynx-stack/commit/fcafd541c535f354476cf439b8ba97b00530aa52)]:
12
- - @lynx-js/react-alias-rsbuild-plugin@0.10.9-canary-20250728132211-fcafd541c535f354476cf439b8ba97b00530aa52
13
- - @lynx-js/react@0.112.0-canary-20250728132211-fcafd541c535f354476cf439b8ba97b00530aa52
14
- - @lynx-js/react-webpack-plugin@0.6.19-canary-20250728132211-fcafd541c535f354476cf439b8ba97b00530aa52
11
+ - Updated dependencies [[`fcafd54`](https://github.com/lynx-family/lynx-stack/commit/fcafd541c535f354476cf439b8ba97b00530aa52), [`fe38de5`](https://github.com/lynx-family/lynx-stack/commit/fe38de505b87b768035e3a833bdf8415dc4023ac), [`7cd5ea2`](https://github.com/lynx-family/lynx-stack/commit/7cd5ea2cebf12aa982ddc048dec4c5c7ed6bc1d6)]:
12
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.9
13
+ - @lynx-js/react-webpack-plugin@0.6.19
15
14
  - @lynx-js/use-sync-external-store@1.5.0
16
15
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
17
16
 
@@ -67,28 +66,28 @@
67
66
 
68
67
  ```ts
69
68
  type InlineChunkTestFunction = (params: {
70
- size: number;
71
- name: string;
72
- }) => boolean;
69
+ size: number
70
+ name: string
71
+ }) => boolean
73
72
 
74
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
73
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
75
74
 
76
75
  type InlineChunkConfig =
77
76
  | boolean
78
77
  | InlineChunkTest
79
- | { enable?: boolean | "auto"; test: InlineChunkTest };
78
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
80
79
  ```
81
80
 
82
81
  ```ts
83
- import { defineConfig } from "@lynx-js/rspeedy";
82
+ import { defineConfig } from '@lynx-js/rspeedy'
84
83
 
85
84
  export default defineConfig({
86
85
  output: {
87
86
  inlineScripts: ({ name, size }) => {
88
- return name.includes("foo") && size < 1000;
87
+ return name.includes('foo') && size < 1000
89
88
  },
90
89
  },
91
- });
90
+ })
92
91
  ```
93
92
 
94
93
  - 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)]:
@@ -168,13 +167,13 @@
168
167
  example:
169
168
 
170
169
  ```js
171
- import { defineConfig } from "@lynx-js/rspeedy";
170
+ import { defineConfig } from '@lynx-js/rspeedy'
172
171
 
173
172
  export default defineConfig({
174
173
  output: {
175
174
  inlineScripts: false,
176
175
  },
177
- });
176
+ })
178
177
  ```
179
178
 
180
179
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -261,7 +260,7 @@
261
260
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
262
261
 
263
262
  ```js
264
- import { defineConfig } from "@lynx-js/rspeedy";
263
+ import { defineConfig } from '@lynx-js/rspeedy'
265
264
 
266
265
  export default defineConfig({
267
266
  tools: {
@@ -273,7 +272,7 @@
273
272
  },
274
273
  },
275
274
  },
276
- });
275
+ })
277
276
  ```
278
277
 
279
278
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -449,7 +448,7 @@
449
448
  You may turn it off using `output.minify.css: false`:
450
449
 
451
450
  ```js
452
- import { defineConfig } from "@lynx-js/rspeedy";
451
+ import { defineConfig } from '@lynx-js/rspeedy'
453
452
 
454
453
  export default defineConfig({
455
454
  output: {
@@ -457,18 +456,18 @@
457
456
  css: false,
458
457
  },
459
458
  },
460
- });
459
+ })
461
460
  ```
462
461
 
463
462
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
464
463
 
465
464
  ```js
466
- import { defineConfig } from "@lynx-js/rspeedy";
467
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
465
+ import { defineConfig } from '@lynx-js/rspeedy'
466
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
468
467
 
469
468
  export default defineConfig({
470
469
  plugins: [pluginCssMinimizer()],
471
- });
470
+ })
472
471
  ```
473
472
 
474
473
  ### Patch Changes
@@ -548,18 +547,18 @@
548
547
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
549
548
 
550
549
  ```js
551
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
552
- import { defineConfig } from "@lynx-js/rspeedy";
550
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
551
+ import { defineConfig } from '@lynx-js/rspeedy'
553
552
 
554
553
  export default defineConfig({
555
554
  plugins: [
556
555
  pluginReactLynx({
557
556
  defineDCE: {
558
- __SOME_FALSE_DEFINE__: "false",
557
+ __SOME_FALSE_DEFINE__: 'false',
559
558
  },
560
559
  }),
561
560
  ],
562
- });
561
+ })
563
562
  ```
564
563
 
565
564
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -567,20 +566,20 @@
567
566
  For example, `import` initialized by dead code will be removed:
568
567
 
569
568
  ```js
570
- import { foo } from "bar";
569
+ import { foo } from 'bar'
571
570
 
572
571
  if (__SOME_FALSE_DEFINE__) {
573
- foo();
574
- console.log("dead code");
572
+ foo()
573
+ console.log('dead code')
575
574
  } else {
576
- console.log("reachable code");
575
+ console.log('reachable code')
577
576
  }
578
577
  ```
579
578
 
580
579
  will be transformed to:
581
580
 
582
581
  ```js
583
- console.log("reachable code");
582
+ console.log('reachable code')
584
583
  ```
585
584
 
586
585
  - Updated dependencies [8dd6cca]
@@ -623,18 +622,18 @@
623
622
  - a30c83d: Add `compat.removeComponentAttrRegex`.
624
623
 
625
624
  ```js
626
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
627
- import { defineConfig } from "@lynx-js/rspeedy";
625
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
626
+ import { defineConfig } from '@lynx-js/rspeedy'
628
627
 
629
628
  export default defineConfig({
630
629
  plugins: [
631
630
  pluginReactLynx({
632
631
  compat: {
633
- removeComponentAttrRegex: "YOUR REGEX",
632
+ removeComponentAttrRegex: 'YOUR REGEX',
634
633
  },
635
634
  }),
636
635
  ],
637
- });
636
+ })
638
637
  ```
639
638
 
640
639
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -653,11 +652,11 @@
653
652
 
654
653
  ```javascript
655
654
  // bar.ts
656
- import "background-only";
655
+ import 'background-only'
657
656
 
658
657
  export const bar = () => {
659
- return "bar";
660
- };
658
+ return 'bar'
659
+ }
661
660
  ```
662
661
 
663
662
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -666,15 +665,15 @@
666
665
 
667
666
  ```tsx
668
667
  // App.tsx
669
- import { bar } from "./bar.js";
668
+ import { bar } from './bar.js'
670
669
 
671
670
  function App() {
672
- bar();
671
+ bar()
673
672
  return (
674
673
  <view>
675
674
  <text>Hello, Lynx x rspeedy</text>
676
675
  </view>
677
- );
676
+ )
678
677
  }
679
678
  ```
680
679
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.9-canary-20250728-fcafd541",
3
+ "version": "0.10.9",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.0",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.9-canary-20250728-fcafd541",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.9",
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.19-canary-20250728-fcafd541",
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",
40
40
  "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.2",
41
41
  "@lynx-js/use-sync-external-store": "npm:@lynx-js/use-sync-external-store-canary@1.5.0",
@@ -54,10 +54,10 @@
54
54
  "type-fest": "^4.41.0",
55
55
  "typia": "9.3.1",
56
56
  "typia-rspack-plugin": "2.1.0",
57
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.0-canary-20250728-fcafd541",
58
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.3-canary-20250728-fcafd541",
59
- "@lynx-js/vitest-setup": "0.0.0",
60
- "@lynx-js/react-transform": "0.2.0"
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.0",
58
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.3",
59
+ "@lynx-js/react-transform": "0.2.0",
60
+ "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@lynx-js/react": "*"