@lynx-js/react-alias-rsbuild-plugin 0.9.7 → 0.9.9

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,20 @@
1
1
  # @lynx-js/react-alias-rsbuild-plugin
2
2
 
3
+ ## 0.9.9
4
+
5
+ ## 0.9.8
6
+
7
+ ### Patch Changes
8
+
9
+ - Refactor: Replace built-in `background-only` implementation with npm package ([#602](https://github.com/lynx-family/lynx-stack/pull/602))
10
+
11
+ Previously we maintained custom files:
12
+
13
+ - `empty.ts` for background thread
14
+ - `error.ts` for main thread validation
15
+
16
+ Now adopting the standard `background-only` npm package
17
+
3
18
  ## 0.9.7
4
19
 
5
20
  ## 0.9.6
package/dist/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export interface Options {
8
8
  rootPath?: string | undefined;
9
9
  }
10
10
  export declare function pluginReactAlias(options: Options): RsbuildPlugin;
11
+ export declare function createLazyResolver(context: string, conditionNames: string[]): (request: string) => Promise<string>;
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ function pluginReactAlias(options) {
43
43
  };
44
44
  chain.module.rule('react:jsx-runtime:main-thread').issuerLayer(LAYERS.MAIN_THREAD).resolve.alias.set('react/jsx-runtime', jsxRuntime.mainThread).set('react/jsx-dev-runtime', jsxDevRuntime.mainThread).set('@lynx-js/react/jsx-runtime', jsxRuntime.mainThread).set('@lynx-js/react/jsx-dev-runtime', jsxDevRuntime.mainThread).set('@lynx-js/react/lepus$', reactLepus.mainThread).set('@lynx-js/react/lepus/jsx-runtime', jsxRuntime.mainThread).set('@lynx-js/react/lepus/jsx-dev-runtime', jsxDevRuntime.mainThread).end().end().end().rule('react:jsx-runtime:background').issuerLayer(LAYERS.BACKGROUND).resolve.alias.set('react/jsx-runtime', jsxRuntime.background).set('react/jsx-dev-runtime', jsxDevRuntime.background).set('@lynx-js/react/jsx-runtime', jsxRuntime.background).set('@lynx-js/react/jsx-dev-runtime', jsxDevRuntime.background).set('@lynx-js/react/lepus$', reactLepus.background).end().end().end().end();
45
45
  const transformedEntries = [
46
+ 'experimental/lazy/import',
46
47
  'internal',
47
48
  'legacy-react-runtime',
48
49
  'runtime-components',
@@ -85,4 +86,4 @@ function createLazyResolver(context, conditionNames) {
85
86
  }))(context, request);
86
87
  };
87
88
  }
88
- export { pluginReactAlias };
89
+ export { createLazyResolver, pluginReactAlias };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-alias-rsbuild-plugin",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "A rsbuild plugin for making alias in ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -35,10 +35,10 @@
35
35
  "enhanced-resolve": "^5.18.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@microsoft/api-extractor": "7.52.3",
39
- "@rsbuild/core": "1.3.8",
40
- "@lynx-js/react": "0.106.5",
41
- "@lynx-js/react-webpack-plugin": "0.6.11",
38
+ "@microsoft/api-extractor": "7.52.7",
39
+ "@rsbuild/core": "1.3.17",
40
+ "@lynx-js/react": "0.108.0",
41
+ "@lynx-js/react-webpack-plugin": "0.6.13",
42
42
  "@lynx-js/vitest-setup": "0.0.0"
43
43
  },
44
44
  "engines": {