@lynx-js/react-rsbuild-plugin-canary 0.10.5-canary-20250627-a64333ef → 0.10.5-canary-20250630-77513752

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,16 +1,44 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.5-canary-20250627041429-a64333ef28228d6b90c32e027f67bef8acbd8432
3
+ ## 0.10.5-canary-20250630115829-775137521782ca5445f22029c39163c0a63bbfa5
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`e6802d7`](https://github.com/lynx-family/lynx-stack/commit/e6802d770ab5593d88c01458351ae66440807ac1), [`69fb042`](https://github.com/lynx-family/lynx-stack/commit/69fb0420e297abf768c889769c95a207c480b3c7)]:
8
- - @lynx-js/react@0.110.1-canary-20250627041429-a64333ef28228d6b90c32e027f67bef8acbd8432
9
- - @lynx-js/template-webpack-plugin@0.8.1-canary-20250627041429-a64333ef28228d6b90c32e027f67bef8acbd8432
10
- - @lynx-js/react-alias-rsbuild-plugin@0.10.5-canary-20250627041429-a64333ef28228d6b90c32e027f67bef8acbd8432
7
+ - Enable fine-grained control for `output.inlineScripts` ([#883](https://github.com/lynx-family/lynx-stack/pull/883))
8
+
9
+ ```ts
10
+ type InlineChunkTestFunction = (params: {
11
+ size: number;
12
+ name: string;
13
+ }) => boolean;
14
+
15
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
16
+
17
+ type InlineChunkConfig =
18
+ | boolean
19
+ | InlineChunkTest
20
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
21
+ ```
22
+
23
+ ```ts
24
+ import { defineConfig } from "@lynx-js/rspeedy";
25
+
26
+ export default defineConfig({
27
+ output: {
28
+ inlineScripts: ({ name, size }) => {
29
+ return name.includes("foo") && size < 1000;
30
+ },
31
+ },
32
+ });
33
+ ```
34
+
35
+ - Updated dependencies [[`e6802d7`](https://github.com/lynx-family/lynx-stack/commit/e6802d770ab5593d88c01458351ae66440807ac1), [`69fb042`](https://github.com/lynx-family/lynx-stack/commit/69fb0420e297abf768c889769c95a207c480b3c7), [`a7e8b5b`](https://github.com/lynx-family/lynx-stack/commit/a7e8b5bbbab0490e7cf6f47581130e7b32739abb)]:
36
+ - @lynx-js/react@0.110.1-canary-20250630115829-775137521782ca5445f22029c39163c0a63bbfa5
37
+ - @lynx-js/template-webpack-plugin@0.8.1-canary-20250630115829-775137521782ca5445f22029c39163c0a63bbfa5
38
+ - @lynx-js/react-webpack-plugin@0.6.17-canary-20250630115829-775137521782ca5445f22029c39163c0a63bbfa5
39
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.5-canary-20250630115829-775137521782ca5445f22029c39163c0a63bbfa5
11
40
  - @lynx-js/use-sync-external-store@1.5.0
12
41
  - @lynx-js/react-refresh-webpack-plugin@0.3.3
13
- - @lynx-js/react-webpack-plugin@0.6.16
14
42
  - @lynx-js/css-extract-webpack-plugin@0.6.0
15
43
 
16
44
  ## 0.10.4
package/dist/index.js CHANGED
@@ -359,8 +359,11 @@ function applyEntry(api, options) {
359
359
  }
360
360
  ]).end();
361
361
  });
362
+ let finalFirstScreenSyncTiming = firstScreenSyncTiming;
362
363
  if (isLynx) {
363
- const inlineScripts = 'boolean' == typeof environment.config.output?.inlineScripts ? environment.config.output.inlineScripts : true;
364
+ let inlineScripts;
365
+ inlineScripts = experimental_isLazyBundle ? true : environment.config.output?.inlineScripts ?? true;
366
+ if (true !== inlineScripts) finalFirstScreenSyncTiming = 'jsReady';
364
367
  chain.plugin(PLUGIN_NAME_RUNTIME_WRAPPER).use(RuntimeWrapperWebpackPlugin, [
365
368
  {
366
369
  injectVars (vars) {
@@ -390,7 +393,7 @@ function applyEntry(api, options) {
390
393
  chain.plugin(PLUGIN_NAME_REACT).after(PLUGIN_NAME_TEMPLATE).use(ReactWebpackPlugin, [
391
394
  {
392
395
  disableCreateSelectorQueryIncompatibleWarning: compat?.disableCreateSelectorQueryIncompatibleWarning ?? false,
393
- firstScreenSyncTiming,
396
+ firstScreenSyncTiming: finalFirstScreenSyncTiming,
394
397
  enableSSR,
395
398
  mainThreadChunks,
396
399
  extractStr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.5-canary-20250627-a64333ef",
3
+ "version": "0.10.5-canary-20250630-77513752",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -33,11 +33,11 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@lynx-js/css-extract-webpack-plugin": "npm:@lynx-js/css-extract-webpack-plugin-canary@0.6.0",
36
- "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.5-canary-20250627-a64333ef",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.5-canary-20250630-77513752",
37
37
  "@lynx-js/react-refresh-webpack-plugin": "npm:@lynx-js/react-refresh-webpack-plugin-canary@0.3.3",
38
- "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.16",
38
+ "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.17-canary-20250630-77513752",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "npm:@lynx-js/runtime-wrapper-webpack-plugin-canary@0.1.1",
40
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.1-canary-20250627-a64333ef",
40
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.1-canary-20250630-77513752",
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,10 +54,10 @@
54
54
  "type-fest": "^4.41.0",
55
55
  "typia": "9.3.1",
56
56
  "typia-rspack-plugin": "2.1.0",
57
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.110.1-canary-20250627-a64333ef",
57
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.110.1-canary-20250630-77513752",
58
58
  "@lynx-js/react-transform": "0.2.0",
59
- "@lynx-js/vitest-setup": "0.0.0",
60
- "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.9.11-canary-20250627-a64333ef"
59
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.9.11-canary-20250630-77513752",
60
+ "@lynx-js/vitest-setup": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@lynx-js/react": "*"