@lynx-js/react-rsbuild-plugin-canary 0.10.3-canary-20250606-f2706bfb → 0.10.3

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 +33 -34
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.3-canary-20250606121302-f2706bfb6ad1a6bd37c21b30e6bb10c242e4e4f4
3
+ ## 0.10.3
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,15 +8,14 @@
8
8
 
9
9
  See [lynx-family/lynx-stack#893](https://github.com/lynx-family/lynx-stack/issues/893) for more details.
10
10
 
11
- - Updated dependencies [[`acc0d80`](https://github.com/lynx-family/lynx-stack/commit/acc0d80ae45cb5d9b54acec13baf88086b7ba798), [`fb83a10`](https://github.com/lynx-family/lynx-stack/commit/fb83a10d777836455b0502951af0b41233d79081), [`33f7aa4`](https://github.com/lynx-family/lynx-stack/commit/33f7aa4eb4bb257484b58c4307005193b0ae8f08)]:
12
- - @lynx-js/runtime-wrapper-webpack-plugin@0.1.1-canary-20250606121302-f2706bfb6ad1a6bd37c21b30e6bb10c242e4e4f4
13
- - @lynx-js/react@0.109.2-canary-20250606121302-f2706bfb6ad1a6bd37c21b30e6bb10c242e4e4f4
14
- - @lynx-js/react-alias-rsbuild-plugin@0.10.3-canary-20250606121302-f2706bfb6ad1a6bd37c21b30e6bb10c242e4e4f4
11
+ - Updated dependencies [[`acc0d80`](https://github.com/lynx-family/lynx-stack/commit/acc0d80ae45cb5d9b54acec13baf88086b7ba798)]:
12
+ - @lynx-js/runtime-wrapper-webpack-plugin@0.1.1
13
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.3
15
14
  - @lynx-js/use-sync-external-store@1.5.0
16
15
  - @lynx-js/react-refresh-webpack-plugin@0.3.3
17
16
  - @lynx-js/react-webpack-plugin@0.6.15
18
17
  - @lynx-js/css-extract-webpack-plugin@0.5.4
19
- - @lynx-js/template-webpack-plugin@0.7.2-canary-20250606121302-f2706bfb6ad1a6bd37c21b30e6bb10c242e4e4f4
18
+ - @lynx-js/template-webpack-plugin@0.7.2
20
19
 
21
20
  ## 0.10.2
22
21
 
@@ -55,13 +54,13 @@
55
54
  example:
56
55
 
57
56
  ```js
58
- import { defineConfig } from "@lynx-js/rspeedy";
57
+ import { defineConfig } from '@lynx-js/rspeedy'
59
58
 
60
59
  export default defineConfig({
61
60
  output: {
62
61
  inlineScripts: false,
63
62
  },
64
- });
63
+ })
65
64
  ```
66
65
 
67
66
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -148,7 +147,7 @@
148
147
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
149
148
 
150
149
  ```js
151
- import { defineConfig } from "@lynx-js/rspeedy";
150
+ import { defineConfig } from '@lynx-js/rspeedy'
152
151
 
153
152
  export default defineConfig({
154
153
  tools: {
@@ -160,7 +159,7 @@
160
159
  },
161
160
  },
162
161
  },
163
- });
162
+ })
164
163
  ```
165
164
 
166
165
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -336,7 +335,7 @@
336
335
  You may turn it off using `output.minify.css: false`:
337
336
 
338
337
  ```js
339
- import { defineConfig } from "@lynx-js/rspeedy";
338
+ import { defineConfig } from '@lynx-js/rspeedy'
340
339
 
341
340
  export default defineConfig({
342
341
  output: {
@@ -344,18 +343,18 @@
344
343
  css: false,
345
344
  },
346
345
  },
347
- });
346
+ })
348
347
  ```
349
348
 
350
349
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
351
350
 
352
351
  ```js
353
- import { defineConfig } from "@lynx-js/rspeedy";
354
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
352
+ import { defineConfig } from '@lynx-js/rspeedy'
353
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
355
354
 
356
355
  export default defineConfig({
357
356
  plugins: [pluginCssMinimizer()],
358
- });
357
+ })
359
358
  ```
360
359
 
361
360
  ### Patch Changes
@@ -435,18 +434,18 @@
435
434
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
436
435
 
437
436
  ```js
438
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
439
- import { defineConfig } from "@lynx-js/rspeedy";
437
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
438
+ import { defineConfig } from '@lynx-js/rspeedy'
440
439
 
441
440
  export default defineConfig({
442
441
  plugins: [
443
442
  pluginReactLynx({
444
443
  defineDCE: {
445
- __SOME_FALSE_DEFINE__: "false",
444
+ __SOME_FALSE_DEFINE__: 'false',
446
445
  },
447
446
  }),
448
447
  ],
449
- });
448
+ })
450
449
  ```
451
450
 
452
451
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -454,20 +453,20 @@
454
453
  For example, `import` initialized by dead code will be removed:
455
454
 
456
455
  ```js
457
- import { foo } from "bar";
456
+ import { foo } from 'bar'
458
457
 
459
458
  if (__SOME_FALSE_DEFINE__) {
460
- foo();
461
- console.log("dead code");
459
+ foo()
460
+ console.log('dead code')
462
461
  } else {
463
- console.log("reachable code");
462
+ console.log('reachable code')
464
463
  }
465
464
  ```
466
465
 
467
466
  will be transformed to:
468
467
 
469
468
  ```js
470
- console.log("reachable code");
469
+ console.log('reachable code')
471
470
  ```
472
471
 
473
472
  - Updated dependencies [8dd6cca]
@@ -510,18 +509,18 @@
510
509
  - a30c83d: Add `compat.removeComponentAttrRegex`.
511
510
 
512
511
  ```js
513
- import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
514
- import { defineConfig } from "@lynx-js/rspeedy";
512
+ import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
513
+ import { defineConfig } from '@lynx-js/rspeedy'
515
514
 
516
515
  export default defineConfig({
517
516
  plugins: [
518
517
  pluginReactLynx({
519
518
  compat: {
520
- removeComponentAttrRegex: "YOUR REGEX",
519
+ removeComponentAttrRegex: 'YOUR REGEX',
521
520
  },
522
521
  }),
523
522
  ],
524
- });
523
+ })
525
524
  ```
526
525
 
527
526
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -540,11 +539,11 @@
540
539
 
541
540
  ```javascript
542
541
  // bar.ts
543
- import "background-only";
542
+ import 'background-only'
544
543
 
545
544
  export const bar = () => {
546
- return "bar";
547
- };
545
+ return 'bar'
546
+ }
548
547
  ```
549
548
 
550
549
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -553,15 +552,15 @@
553
552
 
554
553
  ```tsx
555
554
  // App.tsx
556
- import { bar } from "./bar.js";
555
+ import { bar } from './bar.js'
557
556
 
558
557
  function App() {
559
- bar();
558
+ bar()
560
559
  return (
561
560
  <view>
562
561
  <text>Hello, Lynx x rspeedy</text>
563
562
  </view>
564
- );
563
+ )
565
564
  }
566
565
  ```
567
566
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.3-canary-20250606-f2706bfb",
3
+ "version": "0.10.3",
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.5.4",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.3-canary-20250606-f2706bfb",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.3",
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.15",
39
- "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.1-canary-20250606-f2706bfb",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.7.2-canary-20250606-f2706bfb",
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.7.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,9 +54,9 @@
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.109.2-canary-20250606-f2706bfb",
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.109.2",
58
58
  "@lynx-js/react-transform": "0.2.0",
59
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.9.9-canary-20250606-f2706bfb",
59
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.9.9",
60
60
  "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {