@lynx-js/react-alias-rsbuild-plugin 0.9.2 → 0.9.4

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,13 @@
1
1
  # @lynx-js/react-alias-rsbuild-plugin
2
2
 
3
+ ## 0.9.4
4
+
5
+ ## 0.9.3
6
+
7
+ ### Patch Changes
8
+
9
+ - Fix the issue where the canary version of React was not included in the `rule.include` configuration. ([#275](https://github.com/lynx-family/lynx-stack/pull/275))
10
+
3
11
  ## 0.9.2
4
12
 
5
13
  ## 0.9.1
package/dist/index.js CHANGED
@@ -21,6 +21,13 @@ function pluginReactAlias(options) {
21
21
  ] : [
22
22
  'import'
23
23
  ]);
24
+ api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig(config, {
25
+ source: {
26
+ include: [
27
+ reactLynxDir
28
+ ]
29
+ }
30
+ }));
24
31
  api.modifyBundlerChain(async (chain)=>{
25
32
  const jsxRuntime = {
26
33
  background: await resolve('@lynx-js/react/jsx-runtime'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-alias-rsbuild-plugin",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "A rsbuild plugin for making alias in ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -37,8 +37,9 @@
37
37
  "devDependencies": {
38
38
  "@microsoft/api-extractor": "7.51.1",
39
39
  "@rsbuild/core": "1.2.19",
40
- "@lynx-js/react": "0.105.2",
41
- "@lynx-js/react-webpack-plugin": "0.6.8"
40
+ "@lynx-js/react": "0.106.2",
41
+ "@lynx-js/react-webpack-plugin": "0.6.10",
42
+ "@lynx-js/vitest-setup": "0.0.0"
42
43
  },
43
44
  "engines": {
44
45
  "node": ">=18"
@@ -49,6 +50,6 @@
49
50
  "scripts": {
50
51
  "api-extractor": "api-extractor run --verbose",
51
52
  "build": "rslib build",
52
- "test": "vitest"
53
+ "test": "pnpm -w run test --project rspeedy/react-alias"
53
54
  }
54
55
  }