@lynx-js/react-rsbuild-plugin-canary 0.10.8-canary-20250719-fb2ed8d0 → 0.10.8

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.8-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
3
+ ## 0.10.8
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -10,10 +10,9 @@
10
10
 
11
11
  - Change `extractStr` to `false` when `performance.chunkSplit.strategy` is not `all-in-one`. ([#1251](https://github.com/lynx-family/lynx-stack/pull/1251))
12
12
 
13
- - Updated dependencies [[`4134760`](https://github.com/lynx-family/lynx-stack/commit/4134760890cdec2e258b49cd816175e450867e69), [`6ad7295`](https://github.com/lynx-family/lynx-stack/commit/6ad72951a89e1d00b713f560e10f85761ed66204), [`cb7feb6`](https://github.com/lynx-family/lynx-stack/commit/cb7feb6e8cc9f4b83ac3147bd3e5a82059caa06a), [`c13a1bb`](https://github.com/lynx-family/lynx-stack/commit/c13a1bb64bfb534a00530323fcc3321fc034b734), [`ec7228f`](https://github.com/lynx-family/lynx-stack/commit/ec7228fadfb917a1f6149aca4775386badae73fa), [`ec7228f`](https://github.com/lynx-family/lynx-stack/commit/ec7228fadfb917a1f6149aca4775386badae73fa), [`1be21a5`](https://github.com/lynx-family/lynx-stack/commit/1be21a58603e53b80b34d01f9c6da4d025f16ab8), [`df1b58d`](https://github.com/lynx-family/lynx-stack/commit/df1b58ddf083c3a6ae5625e8959a297c00afb069)]:
14
- - @lynx-js/react@0.111.2-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
15
- - @lynx-js/template-webpack-plugin@0.8.2-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
16
- - @lynx-js/react-alias-rsbuild-plugin@0.10.8-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
13
+ - Updated dependencies [[`cb7feb6`](https://github.com/lynx-family/lynx-stack/commit/cb7feb6e8cc9f4b83ac3147bd3e5a82059caa06a), [`ec7228f`](https://github.com/lynx-family/lynx-stack/commit/ec7228fadfb917a1f6149aca4775386badae73fa)]:
14
+ - @lynx-js/template-webpack-plugin@0.8.2
15
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.8
17
16
  - @lynx-js/use-sync-external-store@1.5.0
18
17
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
19
18
  - @lynx-js/react-webpack-plugin@0.6.18
@@ -53,28 +52,28 @@
53
52
 
54
53
  ```ts
55
54
  type InlineChunkTestFunction = (params: {
56
- size: number;
57
- name: string;
58
- }) => boolean;
55
+ size: number
56
+ name: string
57
+ }) => boolean
59
58
 
60
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
59
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
61
60
 
62
61
  type InlineChunkConfig =
63
62
  | boolean
64
63
  | InlineChunkTest
65
- | { enable?: boolean | "auto"; test: InlineChunkTest };
64
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
66
65
  ```
67
66
 
68
67
  ```ts
69
- import { defineConfig } from "@lynx-js/rspeedy";
68
+ import { defineConfig } from '@lynx-js/rspeedy'
70
69
 
71
70
  export default defineConfig({
72
71
  output: {
73
72
  inlineScripts: ({ name, size }) => {
74
- return name.includes("foo") && size < 1000;
73
+ return name.includes('foo') && size < 1000
75
74
  },
76
75
  },
77
- });
76
+ })
78
77
  ```
79
78
 
80
79
  - 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)]:
@@ -154,13 +153,13 @@
154
153
  example:
155
154
 
156
155
  ```js
157
- import { defineConfig } from "@lynx-js/rspeedy";
156
+ import { defineConfig } from '@lynx-js/rspeedy'
158
157
 
159
158
  export default defineConfig({
160
159
  output: {
161
160
  inlineScripts: false,
162
161
  },
163
- });
162
+ })
164
163
  ```
165
164
 
166
165
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -247,7 +246,7 @@
247
246
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
248
247
 
249
248
  ```js
250
- import { defineConfig } from "@lynx-js/rspeedy";
249
+ import { defineConfig } from '@lynx-js/rspeedy'
251
250
 
252
251
  export default defineConfig({
253
252
  tools: {
@@ -259,7 +258,7 @@
259
258
  },
260
259
  },
261
260
  },
262
- });
261
+ })
263
262
  ```
264
263
 
265
264
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -435,7 +434,7 @@
435
434
  You may turn it off using `output.minify.css: false`:
436
435
 
437
436
  ```js
438
- import { defineConfig } from "@lynx-js/rspeedy";
437
+ import { defineConfig } from '@lynx-js/rspeedy'
439
438
 
440
439
  export default defineConfig({
441
440
  output: {
@@ -443,18 +442,18 @@
443
442
  css: false,
444
443
  },
445
444
  },
446
- });
445
+ })
447
446
  ```
448
447
 
449
448
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
450
449
 
451
450
  ```js
452
- import { defineConfig } from "@lynx-js/rspeedy";
453
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
451
+ import { defineConfig } from '@lynx-js/rspeedy'
452
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
454
453
 
455
454
  export default defineConfig({
456
455
  plugins: [pluginCssMinimizer()],
457
- });
456
+ })
458
457
  ```
459
458
 
460
459
  ### Patch Changes
@@ -534,18 +533,18 @@
534
533
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
535
534
 
536
535
  ```js
537
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
538
- import { defineConfig } from "@lynx-js/rspeedy";
536
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
537
+ import { defineConfig } from '@lynx-js/rspeedy'
539
538
 
540
539
  export default defineConfig({
541
540
  plugins: [
542
541
  pluginReactLynx({
543
542
  defineDCE: {
544
- __SOME_FALSE_DEFINE__: "false",
543
+ __SOME_FALSE_DEFINE__: 'false',
545
544
  },
546
545
  }),
547
546
  ],
548
- });
547
+ })
549
548
  ```
550
549
 
551
550
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -553,20 +552,20 @@
553
552
  For example, `import` initialized by dead code will be removed:
554
553
 
555
554
  ```js
556
- import { foo } from "bar";
555
+ import { foo } from 'bar'
557
556
 
558
557
  if (__SOME_FALSE_DEFINE__) {
559
- foo();
560
- console.log("dead code");
558
+ foo()
559
+ console.log('dead code')
561
560
  } else {
562
- console.log("reachable code");
561
+ console.log('reachable code')
563
562
  }
564
563
  ```
565
564
 
566
565
  will be transformed to:
567
566
 
568
567
  ```js
569
- console.log("reachable code");
568
+ console.log('reachable code')
570
569
  ```
571
570
 
572
571
  - Updated dependencies [8dd6cca]
@@ -609,18 +608,18 @@
609
608
  - a30c83d: Add `compat.removeComponentAttrRegex`.
610
609
 
611
610
  ```js
612
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
613
- import { defineConfig } from "@lynx-js/rspeedy";
611
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
612
+ import { defineConfig } from '@lynx-js/rspeedy'
614
613
 
615
614
  export default defineConfig({
616
615
  plugins: [
617
616
  pluginReactLynx({
618
617
  compat: {
619
- removeComponentAttrRegex: "YOUR REGEX",
618
+ removeComponentAttrRegex: 'YOUR REGEX',
620
619
  },
621
620
  }),
622
621
  ],
623
- });
622
+ })
624
623
  ```
625
624
 
626
625
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -639,11 +638,11 @@
639
638
 
640
639
  ```javascript
641
640
  // bar.ts
642
- import "background-only";
641
+ import 'background-only'
643
642
 
644
643
  export const bar = () => {
645
- return "bar";
646
- };
644
+ return 'bar'
645
+ }
647
646
  ```
648
647
 
649
648
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -652,15 +651,15 @@
652
651
 
653
652
  ```tsx
654
653
  // App.tsx
655
- import { bar } from "./bar.js";
654
+ import { bar } from './bar.js'
656
655
 
657
656
  function App() {
658
- bar();
657
+ bar()
659
658
  return (
660
659
  <view>
661
660
  <text>Hello, Lynx x rspeedy</text>
662
661
  </view>
663
- );
662
+ )
664
663
  }
665
664
  ```
666
665
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.8-canary-20250719-fb2ed8d0",
3
+ "version": "0.10.8",
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.0",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.8-canary-20250719-fb2ed8d0",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.8",
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.18",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.2",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.2-canary-20250719-fb2ed8d0",
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",
42
42
  "background-only": "npm:background-only-canary@0.0.1"
43
43
  },
@@ -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/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.2-canary-20250719-fb2ed8d0",
58
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.111.2-canary-20250719-fb2ed8d0",
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.111.2",
58
+ "@lynx-js/react-transform": "0.2.0",
59
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.2",
60
+ "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@lynx-js/react": "*"