@lynx-js/react-rsbuild-plugin-canary 0.10.13 → 0.10.14-canary-20250908-c2f90bdb

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.10.14-canary-20250908042016-c2f90bdb0ce465702b0b4a46108b16e78678225f
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`c2f90bd`](https://github.com/lynx-family/lynx-stack/commit/c2f90bdb0ce465702b0b4a46108b16e78678225f)]:
8
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.14-canary-20250908042016-c2f90bdb0ce465702b0b4a46108b16e78678225f
9
+
3
10
  ## 0.10.13
4
11
 
5
12
  ### Patch Changes
@@ -121,28 +128,28 @@
121
128
 
122
129
  ```ts
123
130
  type InlineChunkTestFunction = (params: {
124
- size: number
125
- name: string
126
- }) => boolean
131
+ size: number;
132
+ name: string;
133
+ }) => boolean;
127
134
 
128
- type InlineChunkTest = RegExp | InlineChunkTestFunction
135
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
129
136
 
130
137
  type InlineChunkConfig =
131
138
  | boolean
132
139
  | InlineChunkTest
133
- | { enable?: boolean | 'auto', test: InlineChunkTest }
140
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
134
141
  ```
135
142
 
136
143
  ```ts
137
- import { defineConfig } from '@lynx-js/rspeedy'
144
+ import { defineConfig } from "@lynx-js/rspeedy";
138
145
 
139
146
  export default defineConfig({
140
147
  output: {
141
148
  inlineScripts: ({ name, size }) => {
142
- return name.includes('foo') && size < 1000
149
+ return name.includes("foo") && size < 1000;
143
150
  },
144
151
  },
145
- })
152
+ });
146
153
  ```
147
154
 
148
155
  - 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)]:
@@ -222,13 +229,13 @@
222
229
  example:
223
230
 
224
231
  ```js
225
- import { defineConfig } from '@lynx-js/rspeedy'
232
+ import { defineConfig } from "@lynx-js/rspeedy";
226
233
 
227
234
  export default defineConfig({
228
235
  output: {
229
236
  inlineScripts: false,
230
237
  },
231
- })
238
+ });
232
239
  ```
233
240
 
234
241
  - Support `@lynx-js/react` v0.109.0. ([#840](https://github.com/lynx-family/lynx-stack/pull/840))
@@ -315,7 +322,7 @@
315
322
  Now you can override configuration like `useDefineForClassFields` using `tools.swc`.
316
323
 
317
324
  ```js
318
- import { defineConfig } from '@lynx-js/rspeedy'
325
+ import { defineConfig } from "@lynx-js/rspeedy";
319
326
 
320
327
  export default defineConfig({
321
328
  tools: {
@@ -327,7 +334,7 @@
327
334
  },
328
335
  },
329
336
  },
330
- })
337
+ });
331
338
  ```
332
339
 
333
340
  - Updated dependencies [[`f1ca29b`](https://github.com/lynx-family/lynx-stack/commit/f1ca29bd766377dd46583f15e1e75bca447699cd)]:
@@ -503,7 +510,7 @@
503
510
  You may turn it off using `output.minify.css: false`:
504
511
 
505
512
  ```js
506
- import { defineConfig } from '@lynx-js/rspeedy'
513
+ import { defineConfig } from "@lynx-js/rspeedy";
507
514
 
508
515
  export default defineConfig({
509
516
  output: {
@@ -511,18 +518,18 @@
511
518
  css: false,
512
519
  },
513
520
  },
514
- })
521
+ });
515
522
  ```
516
523
 
517
524
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
518
525
 
519
526
  ```js
520
- import { defineConfig } from '@lynx-js/rspeedy'
521
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
527
+ import { defineConfig } from "@lynx-js/rspeedy";
528
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
522
529
 
523
530
  export default defineConfig({
524
531
  plugins: [pluginCssMinimizer()],
525
- })
532
+ });
526
533
  ```
527
534
 
528
535
  ### Patch Changes
@@ -602,18 +609,18 @@
602
609
  - e8039f2: Add `defineDCE` in plugin options. Often used to define custom macros.
603
610
 
604
611
  ```js
605
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
606
- import { defineConfig } from '@lynx-js/rspeedy'
612
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
613
+ import { defineConfig } from "@lynx-js/rspeedy";
607
614
 
608
615
  export default defineConfig({
609
616
  plugins: [
610
617
  pluginReactLynx({
611
618
  defineDCE: {
612
- __SOME_FALSE_DEFINE__: 'false',
619
+ __SOME_FALSE_DEFINE__: "false",
613
620
  },
614
621
  }),
615
622
  ],
616
- })
623
+ });
617
624
  ```
618
625
 
619
626
  Different from `define` provided by bundlers like webpack, `defineDCE` works at transform time and a extra DCE (Dead Code Elimination) pass will be performed.
@@ -621,20 +628,20 @@
621
628
  For example, `import` initialized by dead code will be removed:
622
629
 
623
630
  ```js
624
- import { foo } from 'bar'
631
+ import { foo } from "bar";
625
632
 
626
633
  if (__SOME_FALSE_DEFINE__) {
627
- foo()
628
- console.log('dead code')
634
+ foo();
635
+ console.log("dead code");
629
636
  } else {
630
- console.log('reachable code')
637
+ console.log("reachable code");
631
638
  }
632
639
  ```
633
640
 
634
641
  will be transformed to:
635
642
 
636
643
  ```js
637
- console.log('reachable code')
644
+ console.log("reachable code");
638
645
  ```
639
646
 
640
647
  - Updated dependencies [8dd6cca]
@@ -677,18 +684,18 @@
677
684
  - a30c83d: Add `compat.removeComponentAttrRegex`.
678
685
 
679
686
  ```js
680
- import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
681
- import { defineConfig } from '@lynx-js/rspeedy'
687
+ import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
688
+ import { defineConfig } from "@lynx-js/rspeedy";
682
689
 
683
690
  export default defineConfig({
684
691
  plugins: [
685
692
  pluginReactLynx({
686
693
  compat: {
687
- removeComponentAttrRegex: 'YOUR REGEX',
694
+ removeComponentAttrRegex: "YOUR REGEX",
688
695
  },
689
696
  }),
690
697
  ],
691
- })
698
+ });
692
699
  ```
693
700
 
694
701
  NOTE: This feature is deprecated and will be removed in the future. Use CodeMod instead.
@@ -707,11 +714,11 @@
707
714
 
708
715
  ```javascript
709
716
  // bar.ts
710
- import 'background-only'
717
+ import "background-only";
711
718
 
712
719
  export const bar = () => {
713
- return 'bar'
714
- }
720
+ return "bar";
721
+ };
715
722
  ```
716
723
 
717
724
  If `bar` is called in `main-thread`, build time error will be triggered.
@@ -720,15 +727,15 @@
720
727
 
721
728
  ```tsx
722
729
  // App.tsx
723
- import { bar } from './bar.js'
730
+ import { bar } from "./bar.js";
724
731
 
725
732
  function App() {
726
- bar()
733
+ bar();
727
734
  return (
728
735
  <view>
729
736
  <text>Hello, Lynx x rspeedy</text>
730
737
  </view>
731
- )
738
+ );
732
739
  }
733
740
  ```
734
741
 
@@ -1,5 +1,6 @@
1
+ export const __webpack_id__ = "74";
1
2
  export const __webpack_ids__ = [
2
- "860"
3
+ "74"
3
4
  ];
4
5
  export const __webpack_modules__ = {
5
6
  "./src/resolve.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
package/dist/index.js CHANGED
@@ -139,7 +139,7 @@ __webpack_require__.m = __webpack_modules__;
139
139
  })();
140
140
  (()=>{
141
141
  var installedChunks = {
142
- 980: 0
142
+ 410: 0
143
143
  };
144
144
  var installChunk = (data)=>{
145
145
  var __webpack_ids__ = data.__webpack_ids__;
@@ -183,7 +183,7 @@ const ALIAS_BACKGROUND_ONLY_BACKGROUND = 'react:alias-background-only-background
183
183
  function applyBackgroundOnly(api) {
184
184
  api.modifyBundlerChain(async (chain)=>{
185
185
  const __dirname = external_node_path_["default"].dirname((0, external_node_url_.fileURLToPath)(import.meta.url));
186
- const { resolve, resolveMainThread } = await __webpack_require__.e("860").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
186
+ const { resolve, resolveMainThread } = await __webpack_require__.e("74").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
187
187
  const [backgroundOnly, backgroundOnlyMainThread] = await Promise.all([
188
188
  resolve('background-only'),
189
189
  resolveMainThread('background-only')
@@ -587,7 +587,7 @@ function applySWC(api) {
587
587
  }
588
588
  function applyUseSyncExternalStore(api) {
589
589
  api.modifyBundlerChain(async (chain)=>{
590
- const { resolve } = await __webpack_require__.e("860").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
590
+ const { resolve } = await __webpack_require__.e("74").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
591
591
  const useSyncExternalStoreEntries = [
592
592
  'use-sync-external-store',
593
593
  'use-sync-external-store/with-selector',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.13",
3
+ "version": "0.10.14-canary-20250908-c2f90bdb",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.2",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.13",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.14-canary-20250908-c2f90bdb",
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.20",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.3",
@@ -44,8 +44,8 @@
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "7.52.11",
46
46
  "@rollup/plugin-typescript": "^12.1.4",
47
- "@rsbuild/core": "1.4.15",
48
- "@rsbuild/plugin-sass": "1.3.5",
47
+ "@rsbuild/core": "1.5.2",
48
+ "@rsbuild/plugin-sass": "1.4.0",
49
49
  "@rsbuild/plugin-typed-css-modules": "1.0.3",
50
50
  "rsbuild-plugin-arethetypeswrong": "0.1.1",
51
51
  "rsbuild-plugin-publint": "0.3.3",
@@ -54,8 +54,8 @@
54
54
  "typia": "9.7.1",
55
55
  "typia-rspack-plugin": "2.2.1",
56
56
  "@lynx-js/react-transform": "0.2.0",
57
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.4",
58
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.8",
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.6",
58
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.1",
59
59
  "@lynx-js/vitest-setup": "0.0.0"
60
60
  },
61
61
  "peerDependencies": {