@lynx-js/react-rsbuild-plugin-canary 0.10.7-canary-20250711-7b75469d → 0.10.7

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,15 +1,14 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.7-canary-20250711054456-7b75469d05dd2ec78bf6e1e54b94c8dff938eb40
3
+ ## 0.10.7
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Support [`experiments.typeReexportsPresence`](https://rspack.rs/config/experiments#experimentstypereexportspresence). ([#1246](https://github.com/lynx-family/lynx-stack/pull/1246))
8
8
 
9
- - Updated dependencies [[`d513dd9`](https://github.com/lynx-family/lynx-stack/commit/d513dd9fb7ee950f36aaaee0d62ede8072f7b031), [`4bdd47a`](https://github.com/lynx-family/lynx-stack/commit/4bdd47ab1f8e3cb9e689fd091dd4a33bdc0a87a9)]:
10
- - @lynx-js/react-refresh-webpack-plugin@0.3.4-canary-20250711054456-7b75469d05dd2ec78bf6e1e54b94c8dff938eb40
11
- - @lynx-js/react@0.111.1-canary-20250711054456-7b75469d05dd2ec78bf6e1e54b94c8dff938eb40
12
- - @lynx-js/react-alias-rsbuild-plugin@0.10.7-canary-20250711054456-7b75469d05dd2ec78bf6e1e54b94c8dff938eb40
9
+ - Updated dependencies [[`d513dd9`](https://github.com/lynx-family/lynx-stack/commit/d513dd9fb7ee950f36aaaee0d62ede8072f7b031)]:
10
+ - @lynx-js/react-refresh-webpack-plugin@0.3.4
11
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.7
13
12
  - @lynx-js/use-sync-external-store@1.5.0
14
13
  - @lynx-js/react-webpack-plugin@0.6.18
15
14
 
@@ -35,28 +34,28 @@
35
34
 
36
35
  ```ts
37
36
  type InlineChunkTestFunction = (params: {
38
- size: number;
39
- name: string;
40
- }) => boolean;
37
+ size: number
38
+ name: string
39
+ }) => boolean
41
40
 
42
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
41
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
43
42
 
44
43
  type InlineChunkConfig =
45
44
  | boolean
46
45
  | InlineChunkTest
47
- | { enable?: boolean | "auto"; test: InlineChunkTest };
46
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
48
47
  ```
49
48
 
50
49
  ```ts
51
- import { defineConfig } from "@lynx-js/rspeedy";
50
+ import { defineConfig } from '@lynx-js/rspeedy'
52
51
 
53
52
  export default defineConfig({
54
53
  output: {
55
54
  inlineScripts: ({ name, size }) => {
56
- return name.includes("foo") && size < 1000;
55
+ return name.includes('foo') && size < 1000
57
56
  },
58
57
  },
59
- });
58
+ })
60
59
  ```
61
60
 
62
61
  - 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)]:
@@ -136,13 +135,13 @@
136
135
  example:
137
136
 
138
137
  ```js
139
- import { defineConfig } from "@lynx-js/rspeedy";
138
+ import { defineConfig } from '@lynx-js/rspeedy'
140
139
 
141
140
  export default defineConfig({
142
141
  output: {
143
142
  inlineScripts: false,
144
143
  },
145
- });
144
+ })
146
145
  ```
147
146
 
148
147
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -229,7 +228,7 @@
229
228
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
230
229
 
231
230
  ```js
232
- import { defineConfig } from "@lynx-js/rspeedy";
231
+ import { defineConfig } from '@lynx-js/rspeedy'
233
232
 
234
233
  export default defineConfig({
235
234
  tools: {
@@ -241,7 +240,7 @@
241
240
  },
242
241
  },
243
242
  },
244
- });
243
+ })
245
244
  ```
246
245
 
247
246
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -417,7 +416,7 @@
417
416
  You may turn it off using `output.minify.css: false`:
418
417
 
419
418
  ```js
420
- import { defineConfig } from "@lynx-js/rspeedy";
419
+ import { defineConfig } from '@lynx-js/rspeedy'
421
420
 
422
421
  export default defineConfig({
423
422
  output: {
@@ -425,18 +424,18 @@
425
424
  css: false,
426
425
  },
427
426
  },
428
- });
427
+ })
429
428
  ```
430
429
 
431
430
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
432
431
 
433
432
  ```js
434
- import { defineConfig } from "@lynx-js/rspeedy";
435
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
433
+ import { defineConfig } from '@lynx-js/rspeedy'
434
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
436
435
 
437
436
  export default defineConfig({
438
437
  plugins: [pluginCssMinimizer()],
439
- });
438
+ })
440
439
  ```
441
440
 
442
441
  ### Patch Changes
@@ -516,18 +515,18 @@
516
515
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
517
516
 
518
517
  ```js
519
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
520
- import { defineConfig } from "@lynx-js/rspeedy";
518
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
519
+ import { defineConfig } from '@lynx-js/rspeedy'
521
520
 
522
521
  export default defineConfig({
523
522
  plugins: [
524
523
  pluginReactLynx({
525
524
  defineDCE: {
526
- __SOME_FALSE_DEFINE__: "false",
525
+ __SOME_FALSE_DEFINE__: 'false',
527
526
  },
528
527
  }),
529
528
  ],
530
- });
529
+ })
531
530
  ```
532
531
 
533
532
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -535,20 +534,20 @@
535
534
  For example, `import` initialized by dead code will be removed:
536
535
 
537
536
  ```js
538
- import { foo } from "bar";
537
+ import { foo } from 'bar'
539
538
 
540
539
  if (__SOME_FALSE_DEFINE__) {
541
- foo();
542
- console.log("dead code");
540
+ foo()
541
+ console.log('dead code')
543
542
  } else {
544
- console.log("reachable code");
543
+ console.log('reachable code')
545
544
  }
546
545
  ```
547
546
 
548
547
  will be transformed to:
549
548
 
550
549
  ```js
551
- console.log("reachable code");
550
+ console.log('reachable code')
552
551
  ```
553
552
 
554
553
  - Updated dependencies [8dd6cca]
@@ -591,18 +590,18 @@
591
590
  - a30c83d: Add `compat.removeComponentAttrRegex`.
592
591
 
593
592
  ```js
594
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
595
- import { defineConfig } from "@lynx-js/rspeedy";
593
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
594
+ import { defineConfig } from '@lynx-js/rspeedy'
596
595
 
597
596
  export default defineConfig({
598
597
  plugins: [
599
598
  pluginReactLynx({
600
599
  compat: {
601
- removeComponentAttrRegex: "YOUR REGEX",
600
+ removeComponentAttrRegex: 'YOUR REGEX',
602
601
  },
603
602
  }),
604
603
  ],
605
- });
604
+ })
606
605
  ```
607
606
 
608
607
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -621,11 +620,11 @@
621
620
 
622
621
  ```javascript
623
622
  // bar.ts
624
- import "background-only";
623
+ import 'background-only'
625
624
 
626
625
  export const bar = () => {
627
- return "bar";
628
- };
626
+ return 'bar'
627
+ }
629
628
  ```
630
629
 
631
630
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -634,15 +633,15 @@
634
633
 
635
634
  ```tsx
636
635
  // App.tsx
637
- import { bar } from "./bar.js";
636
+ import { bar } from './bar.js'
638
637
 
639
638
  function App() {
640
- bar();
639
+ bar()
641
640
  return (
642
641
  <view>
643
642
  <text>Hello, Lynx x rspeedy</text>
644
643
  </view>
645
- );
644
+ )
646
645
  }
647
646
  ```
648
647
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.7-canary-20250711-7b75469d",
3
+ "version": "0.10.7",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,8 +33,8 @@
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.7-canary-20250711-7b75469d",
37
- "@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.4-canary-20250711-7b75469d",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.7",
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
40
  "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.1",
@@ -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-transform": "0.2.0",
58
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.1-canary-20250711-7b75469d",
59
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.111.1-canary-20250711-7b75469d",
60
- "@lynx-js/vitest-setup": "0.0.0"
57
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.1",
58
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.111.1",
59
+ "@lynx-js/vitest-setup": "0.0.0",
60
+ "@lynx-js/react-transform": "0.2.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@lynx-js/react": "*"