@lynx-js/react-rsbuild-plugin 0.10.0 → 0.10.2

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,5 +1,27 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix lazy bundle build failed on Rspeedy v0.9.8 (with `output.iife: true`). ([#972](https://github.com/lynx-family/lynx-stack/pull/972))
8
+
9
+ - Updated dependencies [[`81361f3`](https://github.com/lynx-family/lynx-stack/commit/81361f3c72001ffdf07f2f9f53f8e43d2ff7c961), [`7097f52`](https://github.com/lynx-family/lynx-stack/commit/7097f52a53460527f786e2a8f150c3a907b8e722), [`43cd520`](https://github.com/lynx-family/lynx-stack/commit/43cd520df78c3dc77aeb347a0be8c8f3ff62cc3f)]:
10
+ - @lynx-js/react-webpack-plugin@0.6.15
11
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.2
12
+ - @lynx-js/template-webpack-plugin@0.7.1
13
+ - @lynx-js/react-refresh-webpack-plugin@0.3.3
14
+ - @lynx-js/css-extract-webpack-plugin@0.5.4
15
+
16
+ ## 0.10.1
17
+
18
+ ### Patch Changes
19
+
20
+ - The default value of `output.inlineScripts` should be `true` on `@lynx-js/rspeedy` <= v0.9.6. ([#923](https://github.com/lynx-family/lynx-stack/pull/923))
21
+
22
+ - Updated dependencies []:
23
+ - @lynx-js/react-alias-rsbuild-plugin@0.10.1
24
+
3
25
  ## 0.10.0
4
26
 
5
27
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1146,13 +1146,18 @@ function pluginReactLynx(userOptions) {
1146
1146
  applySWC(api);
1147
1147
  api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>{
1148
1148
  const userConfig = api.getRsbuildConfig('original');
1149
- if (void 0 === userConfig.source?.include) return mergeRsbuildConfig(config, {
1149
+ if (void 0 === userConfig.source?.include) config = mergeRsbuildConfig(config, {
1150
1150
  source: {
1151
1151
  include: [
1152
1152
  /\.(?:js|mjs|cjs)$/
1153
1153
  ]
1154
1154
  }
1155
1155
  });
1156
+ if (void 0 === userConfig.output?.inlineScripts) config = mergeRsbuildConfig(config, {
1157
+ output: {
1158
+ inlineScripts: true
1159
+ }
1160
+ });
1156
1161
  return config;
1157
1162
  });
1158
1163
  if (resolvedOptions.experimental_isLazyBundle) applyLazy(api);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
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": "0.5.4",
36
- "@lynx-js/react-alias-rsbuild-plugin": "0.10.0",
36
+ "@lynx-js/react-alias-rsbuild-plugin": "0.10.2",
37
37
  "@lynx-js/react-refresh-webpack-plugin": "0.3.3",
38
- "@lynx-js/react-webpack-plugin": "0.6.14",
38
+ "@lynx-js/react-webpack-plugin": "0.6.15",
39
39
  "@lynx-js/runtime-wrapper-webpack-plugin": "0.1.0",
40
- "@lynx-js/template-webpack-plugin": "0.7.0",
40
+ "@lynx-js/template-webpack-plugin": "0.7.1",
41
41
  "background-only": "^0.0.1"
42
42
  },
43
43
  "devDependencies": {
@@ -53,9 +53,9 @@
53
53
  "type-fest": "^4.41.0",
54
54
  "typia": "9.3.1",
55
55
  "typia-rspack-plugin": "2.1.0",
56
- "@lynx-js/react": "0.109.0",
56
+ "@lynx-js/react": "0.109.1",
57
57
  "@lynx-js/react-transform": "0.2.0",
58
- "@lynx-js/rspeedy": "0.9.6",
58
+ "@lynx-js/rspeedy": "0.9.8",
59
59
  "@lynx-js/vitest-setup": "0.0.0"
60
60
  },
61
61
  "peerDependencies": {