@lynx-js/react-rsbuild-plugin-canary 0.11.4-canary-20251105-a86df859 → 0.11.4-canary-20251105-d7a1d846
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 +32 -5
- package/dist/index.js +7 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,42 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
-
## 0.11.4-canary-
|
|
3
|
+
## 0.11.4-canary-20251105070649-d7a1d846d2f89aa3af9585556028adcee22e05a7
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- When engineVersion is greater than or equal to 3.1, use `__SetAttribute` to set text attribute for text node instead of creating a raw text node. ([#1880](https://github.com/lynx-family/lynx-stack/pull/1880))
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
- Add `react-compiler-runtime` to `resolve.dedupe`. ([#1269](https://github.com/lynx-family/lynx-stack/pull/1269))
|
|
10
|
+
|
|
11
|
+
With this change you can setup [React Compiler](https://react.dev/learn/react-compiler) for ReactLynx by `pluginBabel`:
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
15
|
+
import { pluginBabel } from "@rsbuild/plugin-babel";
|
|
16
|
+
|
|
17
|
+
export default defineConfig({
|
|
18
|
+
plugins: [
|
|
19
|
+
pluginBabel({
|
|
20
|
+
include: /\.(?:jsx|tsx)$/,
|
|
21
|
+
babelLoaderOptions(opts) {
|
|
22
|
+
opts.plugins?.unshift([
|
|
23
|
+
"babel-plugin-react-compiler",
|
|
24
|
+
// See https://react.dev/reference/react-compiler/configuration for config
|
|
25
|
+
{
|
|
26
|
+
// ReactLynx only supports target to version 17
|
|
27
|
+
target: "17",
|
|
28
|
+
},
|
|
29
|
+
]);
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [[`179610e`](https://github.com/lynx-family/lynx-stack/commit/179610eadaa27885b96280e937d16add750cd5f2), [`e7d186a`](https://github.com/lynx-family/lynx-stack/commit/e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3), [`0d7a4c3`](https://github.com/lynx-family/lynx-stack/commit/0d7a4c3d49d63e30d5f05c372ef99ee5cf2fcadd), [`a86df85`](https://github.com/lynx-family/lynx-stack/commit/a86df859327b435d0a0066337d4bf750c3321b45), [`d7a1d84`](https://github.com/lynx-family/lynx-stack/commit/d7a1d846d2f89aa3af9585556028adcee22e05a7)]:
|
|
37
|
+
- @lynx-js/react@0.114.4-canary-20251105070649-d7a1d846d2f89aa3af9585556028adcee22e05a7
|
|
38
|
+
- @lynx-js/react-webpack-plugin@0.7.2-canary-20251105070649-d7a1d846d2f89aa3af9585556028adcee22e05a7
|
|
39
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.11.4-canary-20251105070649-d7a1d846d2f89aa3af9585556028adcee22e05a7
|
|
13
40
|
- @lynx-js/use-sync-external-store@1.5.0
|
|
14
41
|
- @lynx-js/react-refresh-webpack-plugin@0.3.4
|
|
15
42
|
|
package/dist/index.js
CHANGED
|
@@ -1243,6 +1243,13 @@ function pluginReactLynx(userOptions) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
}, config);
|
|
1246
|
+
config = mergeRsbuildConfig({
|
|
1247
|
+
resolve: {
|
|
1248
|
+
dedupe: [
|
|
1249
|
+
'react-compiler-runtime'
|
|
1250
|
+
]
|
|
1251
|
+
}
|
|
1252
|
+
}, config);
|
|
1246
1253
|
return config;
|
|
1247
1254
|
});
|
|
1248
1255
|
if (resolvedOptions.experimental_isLazyBundle) applyLazy(api);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin-canary",
|
|
3
|
-
"version": "0.11.4-canary-20251105-
|
|
3
|
+
"version": "0.11.4-canary-20251105-d7a1d846",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
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.4-canary-20251105-
|
|
36
|
+
"@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.11.4-canary-20251105-d7a1d846",
|
|
37
37
|
"@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.4",
|
|
38
|
-
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.7.2-canary-20251105-
|
|
38
|
+
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.7.2-canary-20251105-d7a1d846",
|
|
39
39
|
"@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.3",
|
|
40
40
|
"@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.9.1",
|
|
41
41
|
"@lynx-js/use-sync-external-store": "npm:@lynx-js/use-sync-external-store-canary@1.5.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"type-fest": "^5.0.1",
|
|
55
55
|
"typia": "9.7.2",
|
|
56
56
|
"typia-rspack-plugin": "2.2.2",
|
|
57
|
-
"@lynx-js/react": "npm:@lynx-js/react-canary@0.114.4-canary-20251105-
|
|
57
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.114.4-canary-20251105-d7a1d846",
|
|
58
|
+
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.9-canary-20251105-d7a1d846",
|
|
58
59
|
"@lynx-js/react-transform": "0.2.0",
|
|
59
|
-
"@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.9-canary-20251105-a86df859",
|
|
60
60
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|