@lynx-js/react-rsbuild-plugin-canary 0.10.8-canary-20250719-fb2ed8d0 → 0.10.9-canary-20250721-7cd5ea2c

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,17 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
- ## 0.10.8-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
3
+ ## 0.10.9-canary-20250721065429-7cd5ea2cebf12aa982ddc048dec4c5c7ed6bc1d6
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix not having profile in development by default. ([#1306](https://github.com/lynx-family/lynx-stack/pull/1306))
8
+
9
+ - Updated dependencies [[`7cd5ea2`](https://github.com/lynx-family/lynx-stack/commit/7cd5ea2cebf12aa982ddc048dec4c5c7ed6bc1d6)]:
10
+ - @lynx-js/react-webpack-plugin@0.6.19-canary-20250721065429-7cd5ea2cebf12aa982ddc048dec4c5c7ed6bc1d6
11
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.9-canary-20250721065429-7cd5ea2cebf12aa982ddc048dec4c5c7ed6bc1d6
12
+ - @lynx-js/react-refresh-webpack-plugin@0.3.4
13
+
14
+ ## 0.10.8
4
15
 
5
16
  ### Patch Changes
6
17
 
@@ -10,10 +21,9 @@
10
21
 
11
22
  - Change `extractStr` to `false` when `performance.chunkSplit.strategy` is not `all-in-one`. ([#1251](https://github.com/lynx-family/lynx-stack/pull/1251))
12
23
 
13
- - Updated dependencies [[`4134760`](https://github.com/lynx-family/lynx-stack/commit/4134760890cdec2e258b49cd816175e450867e69), [`6ad7295`](https://github.com/lynx-family/lynx-stack/commit/6ad72951a89e1d00b713f560e10f85761ed66204), [`cb7feb6`](https://github.com/lynx-family/lynx-stack/commit/cb7feb6e8cc9f4b83ac3147bd3e5a82059caa06a), [`c13a1bb`](https://github.com/lynx-family/lynx-stack/commit/c13a1bb64bfb534a00530323fcc3321fc034b734), [`ec7228f`](https://github.com/lynx-family/lynx-stack/commit/ec7228fadfb917a1f6149aca4775386badae73fa), [`ec7228f`](https://github.com/lynx-family/lynx-stack/commit/ec7228fadfb917a1f6149aca4775386badae73fa), [`1be21a5`](https://github.com/lynx-family/lynx-stack/commit/1be21a58603e53b80b34d01f9c6da4d025f16ab8), [`df1b58d`](https://github.com/lynx-family/lynx-stack/commit/df1b58ddf083c3a6ae5625e8959a297c00afb069)]:
14
- - @lynx-js/react@0.111.2-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
15
- - @lynx-js/template-webpack-plugin@0.8.2-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
16
- - @lynx-js/react-alias-rsbuild-plugin@0.10.8-canary-20250719032935-fb2ed8d080ee4e2ca16671238c0b3a081e81017a
24
+ - Updated dependencies [[`cb7feb6`](https://github.com/lynx-family/lynx-stack/commit/cb7feb6e8cc9f4b83ac3147bd3e5a82059caa06a), [`ec7228f`](https://github.com/lynx-family/lynx-stack/commit/ec7228fadfb917a1f6149aca4775386badae73fa)]:
25
+ - @lynx-js/template-webpack-plugin@0.8.2
26
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.8
17
27
  - @lynx-js/use-sync-external-store@1.5.0
18
28
  - @lynx-js/react-refresh-webpack-plugin@0.3.4
19
29
  - @lynx-js/react-webpack-plugin@0.6.18
package/dist/index.js CHANGED
@@ -390,6 +390,7 @@ function applyEntry(api, options) {
390
390
  }
391
391
  if (isWeb) chain.plugin(PLUGIN_NAME_WEB).use(WebEncodePlugin, []).end();
392
392
  const rsbuildConfig = api.getRsbuildConfig();
393
+ const userConfig = api.getRsbuildConfig('original');
393
394
  let extractStr = originalExtractStr;
394
395
  if (rsbuildConfig.performance?.chunkSplit?.strategy !== 'all-in-one' && originalExtractStr) {
395
396
  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.`');
@@ -403,11 +404,23 @@ function applyEntry(api, options) {
403
404
  mainThreadChunks,
404
405
  extractStr,
405
406
  experimental_isLazyBundle,
406
- profile: rsbuildConfig.performance?.profile
407
+ profile: getDefaultProfile()
407
408
  }
408
409
  ]);
410
+ function getDefaultProfile() {
411
+ if (userConfig.performance?.profile !== void 0) return userConfig.performance.profile;
412
+ if (isDebug()) return true;
413
+ }
409
414
  });
410
415
  }
416
+ const isDebug = ()=>{
417
+ if (!process.env['DEBUG']) return false;
418
+ const values = process.env['DEBUG'].toLocaleLowerCase().split(',');
419
+ return [
420
+ 'rspeedy',
421
+ '*'
422
+ ].some((key)=>values.includes(key));
423
+ };
411
424
  function getChunks(entryName, entryValue) {
412
425
  const chunks = [
413
426
  entryName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin-canary",
3
- "version": "0.10.8-canary-20250719-fb2ed8d0",
3
+ "version": "0.10.9-canary-20250721-7cd5ea2c",
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.8-canary-20250719-fb2ed8d0",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "npm:@lynx-js/react-alias-rsbuild-plugin-canary@0.10.9-canary-20250721-7cd5ea2c",
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.18",
38
+ "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.19-canary-20250721-7cd5ea2c",
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.2-canary-20250719-fb2ed8d0",
40
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.8.2",
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/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.2-canary-20250719-fb2ed8d0",
58
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.111.2-canary-20250719-fb2ed8d0",
57
+ "@lynx-js/react-transform": "0.2.0",
58
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.111.2",
59
59
  "@lynx-js/vitest-setup": "0.0.0",
60
- "@lynx-js/react-transform": "0.2.0"
60
+ "@lynx-js/rspeedy": "npm:@lynx-js/rspeedy-canary@0.10.2"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@lynx-js/react": "*"