@lynx-js/react-rsbuild-plugin-canary 0.10.12-canary-20250815-b8f89e25 → 0.10.12-canary-20250815-39c7b781

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,14 +1,16 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.12-canary-20250815115054-b8f89e25f106a15ba9d70f2df06dfb684cbb6633
3
+ ## 0.10.12-canary-20250815124551-39c7b78160c9365e688d07c0e4ed8a6bef643f16
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - `output.inlineScripts` defaults to `false` when chunkSplit strategy is not `'all-in-one'` ([#1504](https://github.com/lynx-family/lynx-stack/pull/1504))
8
+
7
9
  - Updated dependencies [[`e6e5dc9`](https://github.com/lynx-family/lynx-stack/commit/e6e5dc969226ce62daf8eac49600d60ed969439e), [`1f6c4f7`](https://github.com/lynx-family/lynx-stack/commit/1f6c4f7f070c6a792c5ca9e07f684c99835799bd), [`a77e659`](https://github.com/lynx-family/lynx-stack/commit/a77e6595b1f58924e681608f427522e1c868660a), [`51a0b19`](https://github.com/lynx-family/lynx-stack/commit/51a0b19078cb18c13f4f3e2ca4f471aa4ddeaa05), [`b391ef5`](https://github.com/lynx-family/lynx-stack/commit/b391ef5c6dd0a0945e68b38f40807df7e1ef672e), [`6277549`](https://github.com/lynx-family/lynx-stack/commit/627754949da8adf1cf0aafe263e3c3437935d78f)]:
8
- - @lynx-js/react@0.112.3-canary-20250815115054-b8f89e25f106a15ba9d70f2df06dfb684cbb6633
9
- - @lynx-js/template-webpack-plugin@0.8.4-canary-20250815115054-b8f89e25f106a15ba9d70f2df06dfb684cbb6633
10
- - @lynx-js/css-extract-webpack-plugin@0.6.2-canary-20250815115054-b8f89e25f106a15ba9d70f2df06dfb684cbb6633
11
- - @lynx-js/react-alias-rsbuild-plugin@0.10.12-canary-20250815115054-b8f89e25f106a15ba9d70f2df06dfb684cbb6633
10
+ - @lynx-js/react@0.112.3-canary-20250815124551-39c7b78160c9365e688d07c0e4ed8a6bef643f16
11
+ - @lynx-js/template-webpack-plugin@0.8.4-canary-20250815124551-39c7b78160c9365e688d07c0e4ed8a6bef643f16
12
+ - @lynx-js/css-extract-webpack-plugin@0.6.2-canary-20250815124551-39c7b78160c9365e688d07c0e4ed8a6bef643f16
13
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.12-canary-20250815124551-39c7b78160c9365e688d07c0e4ed8a6bef643f16
12
14
  - @lynx-js/use-sync-external-store@1.5.0
13
15
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
14
16
  - @lynx-js/react-webpack-plugin@0.6.19
package/dist/index.js CHANGED
@@ -359,10 +359,13 @@ function applyEntry(api, options) {
359
359
  }
360
360
  ]).end();
361
361
  });
362
+ const rsbuildConfig = api.getRsbuildConfig();
363
+ const userConfig = api.getRsbuildConfig('original');
364
+ const enableChunkSplitting = rsbuildConfig.performance?.chunkSplit?.strategy !== 'all-in-one';
362
365
  let finalFirstScreenSyncTiming = firstScreenSyncTiming;
363
366
  if (isLynx) {
364
367
  let inlineScripts;
365
- inlineScripts = experimental_isLazyBundle ? true : environment.config.output?.inlineScripts ?? true;
368
+ inlineScripts = experimental_isLazyBundle ? true : environment.config.output?.inlineScripts ?? !enableChunkSplitting;
366
369
  if (true !== inlineScripts) finalFirstScreenSyncTiming = 'jsReady';
367
370
  chain.plugin(PLUGIN_NAME_RUNTIME_WRAPPER).use(RuntimeWrapperWebpackPlugin, [
368
371
  {
@@ -389,10 +392,8 @@ function applyEntry(api, options) {
389
392
  ]).end();
390
393
  }
391
394
  if (isWeb) chain.plugin(PLUGIN_NAME_WEB).use(WebEncodePlugin, []).end();
392
- const rsbuildConfig = api.getRsbuildConfig();
393
- const userConfig = api.getRsbuildConfig('original');
394
395
  let extractStr = originalExtractStr;
395
- if (rsbuildConfig.performance?.chunkSplit?.strategy !== 'all-in-one' && originalExtractStr) {
396
+ if (enableChunkSplitting && originalExtractStr) {
396
397
  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.`');
397
398
  extractStr = false;
398
399
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.12-canary-20250815-b8f89e25",
3
+ "version": "0.10.12-canary-20250815-39c7b781",
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.2-canary-20250815-b8f89e25",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.12-canary-20250815-b8f89e25",
35
+ "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.2-canary-20250815-39c7b781",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.12-canary-20250815-39c7b781",
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.6.19",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.2",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.4-canary-20250815-b8f89e25",
40
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.4-canary-20250815-39c7b781",
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
  },
@@ -51,9 +51,9 @@
51
51
  "type-fest": "^4.41.0",
52
52
  "typia": "9.7.1",
53
53
  "typia-rspack-plugin": "2.2.1",
54
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.3-canary-20250815-b8f89e25",
55
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.6",
54
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.112.3-canary-20250815-39c7b781",
56
55
  "@lynx-js/react-transform": "0.2.0",
56
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.7-canary-20250815-39c7b781",
57
57
  "@lynx-js/vitest-setup": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {