@lynx-js/react-rsbuild-plugin-canary 0.10.14-canary-20250911-d6183049 → 0.10.14-canary-20250911-2800dce9

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,15 +1,17 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.14-canary-20250911064255-d6183049a2f67a5ec68c2e1ef9efbdf26af4c343
3
+ ## 0.10.14-canary-20250911092247-2800dce925f20c08b21faee351a032c3372f8e42
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`2eaa867`](https://github.com/lynx-family/lynx-stack/commit/2eaa86745fc8575544cbde184f1d00fcb4efdab5), [`1935050`](https://github.com/lynx-family/lynx-stack/commit/1935050cfd8ac37cbac6ad792f3aab0eb6b250b8), [`c2f90bd`](https://github.com/lynx-family/lynx-stack/commit/c2f90bdb0ce465702b0b4a46108b16e78678225f)]:
8
- - @lynx-js/react@0.112.7-canary-20250911064255-d6183049a2f67a5ec68c2e1ef9efbdf26af4c343
9
- - @lynx-js/react-alias-rsbuild-plugin@0.10.14-canary-20250911064255-d6183049a2f67a5ec68c2e1ef9efbdf26af4c343
7
+ - Fix using wrong version of `@lynx-js/react/worklet-runtime`. ([#1711](https://github.com/lynx-family/lynx-stack/pull/1711))
8
+
9
+ - Updated dependencies [[`2eaa867`](https://github.com/lynx-family/lynx-stack/commit/2eaa86745fc8575544cbde184f1d00fcb4efdab5), [`1935050`](https://github.com/lynx-family/lynx-stack/commit/1935050cfd8ac37cbac6ad792f3aab0eb6b250b8), [`69b3ae0`](https://github.com/lynx-family/lynx-stack/commit/69b3ae031a24161b8513cc804bf6b82c03da6d0c), [`69b3ae0`](https://github.com/lynx-family/lynx-stack/commit/69b3ae031a24161b8513cc804bf6b82c03da6d0c), [`c2f90bd`](https://github.com/lynx-family/lynx-stack/commit/c2f90bdb0ce465702b0b4a46108b16e78678225f)]:
10
+ - @lynx-js/react@0.112.7-canary-20250911092247-2800dce925f20c08b21faee351a032c3372f8e42
11
+ - @lynx-js/react-webpack-plugin@0.7.0-canary-20250911092247-2800dce925f20c08b21faee351a032c3372f8e42
12
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.14-canary-20250911092247-2800dce925f20c08b21faee351a032c3372f8e42
10
13
  - @lynx-js/use-sync-external-store@1.5.0
11
14
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
12
- - @lynx-js/react-webpack-plugin@0.6.20
13
15
 
14
16
  ## 0.10.13
15
17
 
package/dist/index.d.ts CHANGED
@@ -441,7 +441,7 @@ export declare interface PluginReactLynxOptions {
441
441
  *
442
442
  * These options should only be used for migrating from ReactLynx2.0.
443
443
  */
444
- compat?: Partial<CompatVisitorConfig> & {
444
+ compat?: (Partial<CompatVisitorConfig> & {
445
445
  /**
446
446
  * Whether disable runtime warnings about using ReactLynx2.0-incompatible `SelectorQuery` APIs.
447
447
  *
@@ -458,7 +458,7 @@ export declare interface PluginReactLynxOptions {
458
458
  * @defaultValue `false`
459
459
  */
460
460
  disableCreateSelectorQueryIncompatibleWarning?: boolean;
461
- } | undefined;
461
+ }) | undefined;
462
462
  /**
463
463
  * When {@link PluginReactLynxOptions.enableCSSInheritance} is enabled, `customCSSInheritanceList` can control which properties are inheritable, not just the default ones.
464
464
  *
package/dist/index.js CHANGED
@@ -286,7 +286,7 @@ const EMPTY_HASH = '';
286
286
  function applyEntry(api, options) {
287
287
  const { compat, customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableAccessibilityElement, enableICU, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableParallelElement, enableRemoveCSSScope, firstScreenSyncTiming, enableSSR, pipelineSchedulerConfig, removeDescendantSelectorScope, targetSdkVersion, extractStr: originalExtractStr, experimental_isLazyBundle } = options;
288
288
  const { config, logger } = api.useExposed(Symbol.for('rspeedy.api'));
289
- api.modifyBundlerChain((chain, { environment, isDev, isProd })=>{
289
+ api.modifyBundlerChain(async (chain, { environment, isDev, isProd })=>{
290
290
  const entries = chain.entryPoints.entries() ?? {};
291
291
  const isLynx = 'lynx' === environment.name;
292
292
  const isWeb = 'web' === environment.name;
@@ -390,6 +390,7 @@ function applyEntry(api, options) {
390
390
  logger.warn('`extractStr` is changed to `false` because it is only supported in `all-in-one` chunkSplit strategy, please set `performance.chunkSplit.strategy` to `all-in-one` to use `extractStr.`');
391
391
  extractStr = false;
392
392
  }
393
+ const { resolve } = api.useExposed(Symbol.for('@lynx-js/react/internal:resolve'));
393
394
  chain.plugin(PLUGIN_NAME_REACT).after(PLUGIN_NAME_TEMPLATE).use(ReactWebpackPlugin, [
394
395
  {
395
396
  disableCreateSelectorQueryIncompatibleWarning: compat?.disableCreateSelectorQueryIncompatibleWarning ?? false,
@@ -398,7 +399,8 @@ function applyEntry(api, options) {
398
399
  mainThreadChunks,
399
400
  extractStr,
400
401
  experimental_isLazyBundle,
401
- profile: getDefaultProfile()
402
+ profile: getDefaultProfile(),
403
+ workletRuntimePath: await resolve(`@lynx-js/react/${isDev ? 'worklet-dev-runtime' : 'worklet-runtime'}`)
402
404
  }
403
405
  ]);
404
406
  function getDefaultProfile() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.14-canary-20250911-d6183049",
3
+ "version": "0.10.14-canary-20250911-2800dce9",
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.2",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.14-canary-20250911-d6183049",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.14-canary-20250911-2800dce9",
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.6.20",
38
+ "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.7.0-canary-20250911-2800dce9",
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.8.5",
41
41
  "@lynx-js/use-sync-external-store": "npm:@lynx-js/use-sync-external-store-canary@1.5.0",
@@ -53,10 +53,10 @@
53
53
  "type-fest": "^4.41.0",
54
54
  "typia": "9.7.2",
55
55
  "typia-rspack-plugin": "2.2.2",
56
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.7-canary-20250911-2800dce9",
56
57
  "@lynx-js/react-transform": "0.2.0",
57
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.7-canary-20250911-d6183049",
58
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.2-canary-20250911-d6183049",
59
- "@lynx-js/vitest-setup": "0.0.0"
58
+ "@lynx-js/vitest-setup": "0.0.0",
59
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.11.2-canary-20250911-2800dce9"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@lynx-js/react": "*"