@lynx-js/react-rsbuild-plugin-canary 0.12.0-canary-20251201-3692a169 → 0.12.0-canary-20251202-5bbb4398

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,6 +1,6 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.12.0-canary-20251201060736-3692a169ae443124de0e9f7a288318f5dfba13b0
3
+ ## 0.12.0-canary-20251202033103-5bbb43981580f917f59819cd4ff7972b9737a341
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,14 +8,16 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - Updated dependencies [[`09adc7e`](https://github.com/lynx-family/lynx-stack/commit/09adc7e0c96d8151a45279bb5bf63552645132ad), [`fd233bd`](https://github.com/lynx-family/lynx-stack/commit/fd233bd970d1f64e24e7e809b65c43654a1c7577), [`62e816d`](https://github.com/lynx-family/lynx-stack/commit/62e816d68c0c932e9c75af650307292b8c050304), [`3692a16`](https://github.com/lynx-family/lynx-stack/commit/3692a169ae443124de0e9f7a288318f5dfba13b0)]:
12
- - @lynx-js/react@0.114.6-canary-20251201060736-3692a169ae443124de0e9f7a288318f5dfba13b0
13
- - @lynx-js/template-webpack-plugin@0.9.2-canary-20251201060736-3692a169ae443124de0e9f7a288318f5dfba13b0
14
- - @lynx-js/react-alias-rsbuild-plugin@0.12.0-canary-20251201060736-3692a169ae443124de0e9f7a288318f5dfba13b0
11
+ - Support Yarn Plug'n'Play. ([#1964](https://github.com/lynx-family/lynx-stack/pull/1964))
12
+
13
+ - Updated dependencies [[`09adc7e`](https://github.com/lynx-family/lynx-stack/commit/09adc7e0c96d8151a45279bb5bf63552645132ad), [`fd233bd`](https://github.com/lynx-family/lynx-stack/commit/fd233bd970d1f64e24e7e809b65c43654a1c7577), [`738d44d`](https://github.com/lynx-family/lynx-stack/commit/738d44d685870d7c3f64a1be7139e8d7af498feb), [`62e816d`](https://github.com/lynx-family/lynx-stack/commit/62e816d68c0c932e9c75af650307292b8c050304), [`5bbb439`](https://github.com/lynx-family/lynx-stack/commit/5bbb43981580f917f59819cd4ff7972b9737a341), [`3692a16`](https://github.com/lynx-family/lynx-stack/commit/3692a169ae443124de0e9f7a288318f5dfba13b0), [`738d44d`](https://github.com/lynx-family/lynx-stack/commit/738d44d685870d7c3f64a1be7139e8d7af498feb)]:
14
+ - @lynx-js/react@0.114.6-canary-20251202033103-5bbb43981580f917f59819cd4ff7972b9737a341
15
+ - @lynx-js/react-alias-rsbuild-plugin@0.12.0-canary-20251202033103-5bbb43981580f917f59819cd4ff7972b9737a341
16
+ - @lynx-js/css-extract-webpack-plugin@0.6.5-canary-20251202033103-5bbb43981580f917f59819cd4ff7972b9737a341
17
+ - @lynx-js/template-webpack-plugin@0.9.2-canary-20251202033103-5bbb43981580f917f59819cd4ff7972b9737a341
15
18
  - @lynx-js/use-sync-external-store@1.5.0
16
19
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
17
20
  - @lynx-js/react-webpack-plugin@0.7.2
18
- - @lynx-js/css-extract-webpack-plugin@0.6.4
19
21
 
20
22
  ## 0.11.4
21
23
 
package/dist/300.js CHANGED
@@ -5,18 +5,30 @@ export const __webpack_ids__ = [
5
5
  export const __webpack_modules__ = {
6
6
  "./src/resolve.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7
7
  __webpack_require__.d(__webpack_exports__, {
8
- resolve: ()=>resolve,
9
- resolveMainThread: ()=>resolveMainThread
8
+ getImportResolver: ()=>getImportResolver,
9
+ getMainThreadResolver: ()=>getMainThreadResolver
10
10
  });
11
11
  var node_path__rspack_import_0 = __webpack_require__("node:path");
12
12
  var node_url__rspack_import_1 = __webpack_require__("node:url");
13
13
  var _lynx_js_react_alias_rsbuild_plugin__rspack_import_2 = __webpack_require__("@lynx-js/react-alias-rsbuild-plugin");
14
14
  const __dirname = node_path__rspack_import_0["default"].dirname((0, node_url__rspack_import_1.fileURLToPath)(import.meta.url));
15
- const resolve = (0, _lynx_js_react_alias_rsbuild_plugin__rspack_import_2.createLazyResolver)(__dirname, [
16
- 'import'
17
- ]);
18
- const resolveMainThread = (0, _lynx_js_react_alias_rsbuild_plugin__rspack_import_2.createLazyResolver)(__dirname, [
19
- 'lepus'
20
- ]);
15
+ const getImportResolver = (()=>{
16
+ let resolver = null;
17
+ return (rspack)=>{
18
+ resolver ??= (0, _lynx_js_react_alias_rsbuild_plugin__rspack_import_2.createLazyResolver)(rspack, __dirname, [
19
+ 'import'
20
+ ]);
21
+ return resolver;
22
+ };
23
+ })();
24
+ const getMainThreadResolver = (()=>{
25
+ let resolver = null;
26
+ return (rspack)=>{
27
+ resolver ??= (0, _lynx_js_react_alias_rsbuild_plugin__rspack_import_2.createLazyResolver)(rspack, __dirname, [
28
+ 'lepus'
29
+ ]);
30
+ return resolver;
31
+ };
32
+ })();
21
33
  }
22
34
  };
package/dist/index.js CHANGED
@@ -187,9 +187,11 @@ const DETECT_IMPORT_ERROR = 'react:detect-import-error';
187
187
  const ALIAS_BACKGROUND_ONLY_MAIN = 'react:alias-background-only-main';
188
188
  const ALIAS_BACKGROUND_ONLY_BACKGROUND = 'react:alias-background-only-background';
189
189
  function applyBackgroundOnly(api) {
190
- api.modifyBundlerChain(async (chain)=>{
190
+ api.modifyBundlerChain(async (chain, { rspack })=>{
191
191
  const __dirname = external_node_path_["default"].dirname((0, external_node_url_.fileURLToPath)(import.meta.url));
192
- const { resolve, resolveMainThread } = await __webpack_require__.e("300").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
192
+ const { getImportResolver, getMainThreadResolver } = await __webpack_require__.e("300").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
193
+ const resolve = getImportResolver(rspack);
194
+ const resolveMainThread = getMainThreadResolver(rspack);
193
195
  const [backgroundOnly, backgroundOnlyMainThread] = await Promise.all([
194
196
  resolve('background-only'),
195
197
  resolveMainThread('background-only')
@@ -597,8 +599,9 @@ function applySWC(api) {
597
599
  }, config));
598
600
  }
599
601
  function applyUseSyncExternalStore(api) {
600
- api.modifyBundlerChain(async (chain)=>{
601
- const { resolve } = await __webpack_require__.e("300").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
602
+ api.modifyBundlerChain(async (chain, { rspack })=>{
603
+ const { getImportResolver } = await __webpack_require__.e("300").then(__webpack_require__.bind(__webpack_require__, "./src/resolve.ts"));
604
+ const resolve = getImportResolver(rspack);
602
605
  const useSyncExternalStoreEntries = [
603
606
  'use-sync-external-store',
604
607
  '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.12.0-canary-20251201-3692a169",
3
+ "version": "0.12.0-canary-20251202-5bbb4398",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -32,12 +32,12 @@
32
32
  "README.md"
33
33
  ],
34
34
  "dependencies": {
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.12.0-canary-20251201-3692a169",
35
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.5-canary-20251202-5bbb4398",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.12.0-canary-20251202-5bbb4398",
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.7.2",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.3",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.9.2-canary-20251201-3692a169",
40
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.9.2-canary-20251202-5bbb4398",
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": "^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.6-canary-20251201-3692a169",
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.114.6-canary-20251202-5bbb4398",
58
58
  "@lynx-js/react-transform": "0.2.0",
59
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.12.1-canary-20251201-3692a169",
59
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.12.1-canary-20251202-5bbb4398",
60
60
  "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {