@lynx-js/react-rsbuild-plugin-canary 0.11.1-canary-20251001-4e011e08 → 0.11.1

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 +6 -6
package/CHANGELOG.md CHANGED
@@ -1,13 +1,12 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.11.1-canary-20251001091711-4e011e08e092843aea57d625a5faaa7686b7b791
3
+ ## 0.11.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`3202c88`](https://github.com/lynx-family/lynx-stack/commit/3202c88e06f04c7fa2947065314d636ffbaac996), [`19f823a`](https://github.com/lynx-family/lynx-stack/commit/19f823aae4ce6d99c173d28d157b7514ae8453cf), [`2576ac9`](https://github.com/lynx-family/lynx-stack/commit/2576ac9e2e04a669ff95362cb0e9cac8c5b56bc3), [`7a554e2`](https://github.com/lynx-family/lynx-stack/commit/7a554e210308f0ffbc5a8dfc9ad4d17fbb9556ff)]:
8
- - @lynx-js/react@0.114.1-canary-20251001091711-4e011e08e092843aea57d625a5faaa7686b7b791
9
- - @lynx-js/css-extract-webpack-plugin@0.6.4-canary-20251001091711-4e011e08e092843aea57d625a5faaa7686b7b791
10
- - @lynx-js/react-alias-rsbuild-plugin@0.11.1-canary-20251001091711-4e011e08e092843aea57d625a5faaa7686b7b791
7
+ - Updated dependencies [[`19f823a`](https://github.com/lynx-family/lynx-stack/commit/19f823aae4ce6d99c173d28d157b7514ae8453cf)]:
8
+ - @lynx-js/css-extract-webpack-plugin@0.6.4
9
+ - @lynx-js/react-alias-rsbuild-plugin@0.11.1
11
10
  - @lynx-js/use-sync-external-store@1.5.0
12
11
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
13
12
  - @lynx-js/react-webpack-plugin@0.7.1
@@ -173,28 +172,28 @@
173
172
 
174
173
  ```ts
175
174
  type InlineChunkTestFunction = (params: {
176
- size: number;
177
- name: string;
178
- }) => boolean;
175
+ size: number
176
+ name: string
177
+ }) => boolean
179
178
 
180
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
179
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
181
180
 
182
181
  type InlineChunkConfig =
183
182
  | boolean
184
183
  | InlineChunkTest
185
- | { enable?: boolean | "auto"; test: InlineChunkTest };
184
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
186
185
  ```
187
186
 
188
187
  ```ts
189
- import { defineConfig } from "@lynx-js/rspeedy";
188
+ import { defineConfig } from '@lynx-js/rspeedy'
190
189
 
191
190
  export default defineConfig({
192
191
  output: {
193
192
  inlineScripts: ({ name, size }) => {
194
- return name.includes("foo") && size < 1000;
193
+ return name.includes('foo') && size < 1000
195
194
  },
196
195
  },
197
- });
196
+ })
198
197
  ```
199
198
 
200
199
  - 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)]:
@@ -274,13 +273,13 @@
274
273
  example:
275
274
 
276
275
  ```js
277
- import { defineConfig } from "@lynx-js/rspeedy";
276
+ import { defineConfig } from '@lynx-js/rspeedy'
278
277
 
279
278
  export default defineConfig({
280
279
  output: {
281
280
  inlineScripts: false,
282
281
  },
283
- });
282
+ })
284
283
  ```
285
284
 
286
285
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -367,7 +366,7 @@
367
366
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
368
367
 
369
368
  ```js
370
- import { defineConfig } from "@lynx-js/rspeedy";
369
+ import { defineConfig } from '@lynx-js/rspeedy'
371
370
 
372
371
  export default defineConfig({
373
372
  tools: {
@@ -379,7 +378,7 @@
379
378
  },
380
379
  },
381
380
  },
382
- });
381
+ })
383
382
  ```
384
383
 
385
384
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -555,7 +554,7 @@
555
554
  You may turn it off using `output.minify.css: false`:
556
555
 
557
556
  ```js
558
- import { defineConfig } from "@lynx-js/rspeedy";
557
+ import { defineConfig } from '@lynx-js/rspeedy'
559
558
 
560
559
  export default defineConfig({
561
560
  output: {
@@ -563,18 +562,18 @@
563
562
  css: false,
564
563
  },
565
564
  },
566
- });
565
+ })
567
566
  ```
568
567
 
569
568
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
570
569
 
571
570
  ```js
572
- import { defineConfig } from "@lynx-js/rspeedy";
573
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
571
+ import { defineConfig } from '@lynx-js/rspeedy'
572
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
574
573
 
575
574
  export default defineConfig({
576
575
  plugins: [pluginCssMinimizer()],
577
- });
576
+ })
578
577
  ```
579
578
 
580
579
  ### Patch Changes
@@ -654,18 +653,18 @@
654
653
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
655
654
 
656
655
  ```js
657
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
658
- import { defineConfig } from "@lynx-js/rspeedy";
656
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
657
+ import { defineConfig } from '@lynx-js/rspeedy'
659
658
 
660
659
  export default defineConfig({
661
660
  plugins: [
662
661
  pluginReactLynx({
663
662
  defineDCE: {
664
- __SOME_FALSE_DEFINE__: "false",
663
+ __SOME_FALSE_DEFINE__: 'false',
665
664
  },
666
665
  }),
667
666
  ],
668
- });
667
+ })
669
668
  ```
670
669
 
671
670
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -673,20 +672,20 @@
673
672
  For example, `import` initialized by dead code will be removed:
674
673
 
675
674
  ```js
676
- import { foo } from "bar";
675
+ import { foo } from 'bar'
677
676
 
678
677
  if (__SOME_FALSE_DEFINE__) {
679
- foo();
680
- console.log("dead code");
678
+ foo()
679
+ console.log('dead code')
681
680
  } else {
682
- console.log("reachable code");
681
+ console.log('reachable code')
683
682
  }
684
683
  ```
685
684
 
686
685
  will be transformed to:
687
686
 
688
687
  ```js
689
- console.log("reachable code");
688
+ console.log('reachable code')
690
689
  ```
691
690
 
692
691
  - Updated dependencies [8dd6cca]
@@ -729,18 +728,18 @@
729
728
  - a30c83d: Add `compat.removeComponentAttrRegex`.
730
729
 
731
730
  ```js
732
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
733
- import { defineConfig } from "@lynx-js/rspeedy";
731
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
732
+ import { defineConfig } from '@lynx-js/rspeedy'
734
733
 
735
734
  export default defineConfig({
736
735
  plugins: [
737
736
  pluginReactLynx({
738
737
  compat: {
739
- removeComponentAttrRegex: "YOUR REGEX",
738
+ removeComponentAttrRegex: 'YOUR REGEX',
740
739
  },
741
740
  }),
742
741
  ],
743
- });
742
+ })
744
743
  ```
745
744
 
746
745
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -759,11 +758,11 @@
759
758
 
760
759
  ```javascript
761
760
  // bar.ts
762
- import "background-only";
761
+ import 'background-only'
763
762
 
764
763
  export const bar = () => {
765
- return "bar";
766
- };
764
+ return 'bar'
765
+ }
767
766
  ```
768
767
 
769
768
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -772,15 +771,15 @@
772
771
 
773
772
  ```tsx
774
773
  // App.tsx
775
- import { bar } from "./bar.js";
774
+ import { bar } from './bar.js'
776
775
 
777
776
  function App() {
778
- bar();
777
+ bar()
779
778
  return (
780
779
  <view>
781
780
  <text>Hello, Lynx x rspeedy</text>
782
781
  </view>
783
- );
782
+ )
784
783
  }
785
784
  ```
786
785
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.11.1-canary-20251001-4e011e08",
3
+ "version": "0.11.1",
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.4-canary-20251001-4e011e08",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.11.1-canary-20251001-4e011e08",
35
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.4",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.11.1",
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.7.1",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.3",
@@ -42,7 +42,7 @@
42
42
  "background-only": "npm:background-only-canary@0.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "7.52.13",
45
+ "@microsoft/api-extractor": "7.52.15",
46
46
  "@rollup/plugin-typescript": "^12.1.4",
47
47
  "@rsbuild/core": "1.5.13",
48
48
  "@rsbuild/plugin-sass": "1.4.0",
@@ -53,9 +53,9 @@
53
53
  "type-fest": "^4.41.0",
54
54
  "typia": "9.7.2",
55
55
  "typia-rspack-plugin": "2.2.2",
56
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.114.1-canary-20251001-4e011e08",
56
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.114.1",
57
57
  "@lynx-js/react-transform": "0.2.0",
58
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.5-canary-20251001-4e011e08",
58
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.5",
59
59
  "@lynx-js/vitest-setup": "0.0.0"
60
60
  },
61
61
  "peerDependencies": {