@lynx-js/react-rsbuild-plugin-canary 0.10.4 → 0.10.5-canary-20250626-69fb0420

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 +41 -28
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.10.5-canary-20250626045754-69fb0420e297abf768c889769c95a207c480b3c7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`e6802d7`](https://github.com/lynx-family/lynx-stack/commit/e6802d770ab5593d88c01458351ae66440807ac1), [`69fb042`](https://github.com/lynx-family/lynx-stack/commit/69fb0420e297abf768c889769c95a207c480b3c7)]:
8
+ - @lynx-js/react@0.110.1-canary-20250626045754-69fb0420e297abf768c889769c95a207c480b3c7
9
+ - @lynx-js/template-webpack-plugin@0.8.1-canary-20250626045754-69fb0420e297abf768c889769c95a207c480b3c7
10
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.5-canary-20250626045754-69fb0420e297abf768c889769c95a207c480b3c7
11
+ - @lynx-js/use-sync-external-store@1.5.0
12
+ - @lynx-js/react-refresh-webpack-plugin@0.3.3
13
+ - @lynx-js/react-webpack-plugin@0.6.16
14
+ - @lynx-js/css-extract-webpack-plugin@0.6.0
15
+
3
16
  ## 0.10.4
4
17
 
5
18
  ### Patch Changes
@@ -68,13 +81,13 @@
68
81
  example:
69
82
 
70
83
  ```js
71
- import { defineConfig } from '@lynx-js/rspeedy'
84
+ import { defineConfig } from "@lynx-js/rspeedy";
72
85
 
73
86
  export default defineConfig({
74
87
  output: {
75
88
  inlineScripts: false,
76
89
  },
77
- })
90
+ });
78
91
  ```
79
92
 
80
93
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -161,7 +174,7 @@
161
174
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
162
175
 
163
176
  ```js
164
- import { defineConfig } from '@lynx-js/rspeedy'
177
+ import { defineConfig } from "@lynx-js/rspeedy";
165
178
 
166
179
  export default defineConfig({
167
180
  tools: {
@@ -173,7 +186,7 @@
173
186
  },
174
187
  },
175
188
  },
176
- })
189
+ });
177
190
  ```
178
191
 
179
192
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -349,7 +362,7 @@
349
362
  You may turn it off using `output.minify.css: false`:
350
363
 
351
364
  ```js
352
- import { defineConfig } from '@lynx-js/rspeedy'
365
+ import { defineConfig } from "@lynx-js/rspeedy";
353
366
 
354
367
  export default defineConfig({
355
368
  output: {
@@ -357,18 +370,18 @@
357
370
  css: false,
358
371
  },
359
372
  },
360
- })
373
+ });
361
374
  ```
362
375
 
363
376
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
364
377
 
365
378
  ```js
366
- import { defineConfig } from '@lynx-js/rspeedy'
367
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
379
+ import { defineConfig } from "@lynx-js/rspeedy";
380
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
368
381
 
369
382
  export default defineConfig({
370
383
  plugins: [pluginCssMinimizer()],
371
- })
384
+ });
372
385
  ```
373
386
 
374
387
  ### Patch Changes
@@ -448,18 +461,18 @@
448
461
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
449
462
 
450
463
  ```js
451
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
452
- import { defineConfig } from '@lynx-js/rspeedy'
464
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
465
+ import { defineConfig } from "@lynx-js/rspeedy";
453
466
 
454
467
  export default defineConfig({
455
468
  plugins: [
456
469
  pluginReactLynx({
457
470
  defineDCE: {
458
- __SOME_FALSE_DEFINE__: 'false',
471
+ __SOME_FALSE_DEFINE__: "false",
459
472
  },
460
473
  }),
461
474
  ],
462
- })
475
+ });
463
476
  ```
464
477
 
465
478
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -467,20 +480,20 @@
467
480
  For example, `import` initialized by dead code will be removed:
468
481
 
469
482
  ```js
470
- import { foo } from 'bar'
483
+ import { foo } from "bar";
471
484
 
472
485
  if (__SOME_FALSE_DEFINE__) {
473
- foo()
474
- console.log('dead code')
486
+ foo();
487
+ console.log("dead code");
475
488
  } else {
476
- console.log('reachable code')
489
+ console.log("reachable code");
477
490
  }
478
491
  ```
479
492
 
480
493
  will be transformed to:
481
494
 
482
495
  ```js
483
- console.log('reachable code')
496
+ console.log("reachable code");
484
497
  ```
485
498
 
486
499
  - Updated dependencies [8dd6cca]
@@ -523,18 +536,18 @@
523
536
  - a30c83d: Add `compat.removeComponentAttrRegex`.
524
537
 
525
538
  ```js
526
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
527
- import { defineConfig } from '@lynx-js/rspeedy'
539
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
540
+ import { defineConfig } from "@lynx-js/rspeedy";
528
541
 
529
542
  export default defineConfig({
530
543
  plugins: [
531
544
  pluginReactLynx({
532
545
  compat: {
533
- removeComponentAttrRegex: 'YOUR REGEX',
546
+ removeComponentAttrRegex: "YOUR REGEX",
534
547
  },
535
548
  }),
536
549
  ],
537
- })
550
+ });
538
551
  ```
539
552
 
540
553
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -553,11 +566,11 @@
553
566
 
554
567
  ```javascript
555
568
  // bar.ts
556
- import 'background-only'
569
+ import "background-only";
557
570
 
558
571
  export const bar = () => {
559
- return 'bar'
560
- }
572
+ return "bar";
573
+ };
561
574
  ```
562
575
 
563
576
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -566,15 +579,15 @@
566
579
 
567
580
  ```tsx
568
581
  // App.tsx
569
- import { bar } from './bar.js'
582
+ import { bar } from "./bar.js";
570
583
 
571
584
  function App() {
572
- bar()
585
+ bar();
573
586
  return (
574
587
  <view>
575
588
  <text>Hello, Lynx x rspeedy</text>
576
589
  </view>
577
- )
590
+ );
578
591
  }
579
592
  ```
580
593
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.4",
3
+ "version": "0.10.5-canary-20250626-69fb0420",
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.4",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.5-canary-20250626-69fb0420",
37
37
  "@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.3",
38
38
  "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.16",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.1",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.0",
40
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.1-canary-20250626-69fb0420",
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,7 +54,7 @@
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.110.0",
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.110.1-canary-20250626-69fb0420",
58
58
  "@lynx-js/react-transform": "0.2.0",
59
59
  "@lynx-js/vitest-setup": "0.0.0",
60
60
  "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.9.10"