@lynx-js/external-bundle-rsbuild-plugin 0.4.0 → 0.4.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 +18 -0
- package/lib/index.js +6 -0
- package/package.json +17 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @lynx-js/external-bundle-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Declare the build host as an optional peer dependency. `@rsbuild/core` covers a plain Rsbuild build, and `@lynx-js/rspeedy` covers an Rspeedy one, so whichever host is installed is version-checked. ([#3678](https://github.com/lynx-family/lynx-stack/pull/3678))
|
|
8
|
+
|
|
9
|
+
- **BREAKING CHANGE**: Require `@lynx-js/rspeedy` `^0.17.0` in the plugins that read the build engine config through `Symbol.for('@lynx-js/rsbuild-plugin:config')`, since the engine that ships with `0.16` does not expose it. The plugins that do not touch the engine keep their existing range and add `^0.17.0` to it. ([#3682](https://github.com/lynx-family/lynx-stack/pull/3682))
|
|
10
|
+
|
|
11
|
+
## 0.4.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Ship the refresh runtime in the shared external bundle so it is loaded once instead of per card. ([#3009](https://github.com/lynx-family/lynx-stack/pull/3009))
|
|
16
|
+
|
|
17
|
+
`@lynx-js/react/refresh` was missing from both the `react-umd` entry and the `reactlynx` externals preset, so every card bundled its own copy. Each copy overwrites `options.debounceRendering` on the _shared_ ReactLynx runtime with a closure that defers through that card's own `Promise`. The last card loaded wins, and once it is destroyed its microtask queue stops draining — the lost flush leaves Preact's scheduling counter set, so no card in the shared context ever re-renders again.
|
|
18
|
+
|
|
19
|
+
Only the development bundle carries it; the production bundle is unchanged in size.
|
|
20
|
+
|
|
3
21
|
## 0.4.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -87,6 +87,12 @@ const reactLynxExternalTemplate = {
|
|
|
87
87
|
mainThread: { sectionPath: 'ReactLynx__main-thread' },
|
|
88
88
|
async: false,
|
|
89
89
|
},
|
|
90
|
+
'@lynx-js/react/refresh': {
|
|
91
|
+
libraryName: ['ReactLynx', 'ReactRefresh'],
|
|
92
|
+
background: { sectionPath: 'ReactLynx' },
|
|
93
|
+
mainThread: { sectionPath: 'ReactLynx__main-thread' },
|
|
94
|
+
async: false,
|
|
95
|
+
},
|
|
90
96
|
preact: {
|
|
91
97
|
libraryName: ['ReactLynx', 'Preact'],
|
|
92
98
|
background: { sectionPath: 'ReactLynx' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/external-bundle-rsbuild-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "An rsbuild plugin for loading lynx external bundles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -37,9 +37,22 @@
|
|
|
37
37
|
"@lynx-js/externals-loading-webpack-plugin": "0.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@microsoft/api-extractor": "7.58.
|
|
41
|
-
"@rsbuild/core": "2.
|
|
42
|
-
"@lynx-js/react-umd": "0.
|
|
40
|
+
"@microsoft/api-extractor": "7.58.12",
|
|
41
|
+
"@rsbuild/core": "2.2.3",
|
|
42
|
+
"@lynx-js/react-umd": "0.126.0",
|
|
43
|
+
"@lynx-js/rspeedy": "0.17.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@lynx-js/rspeedy": "^0.16.0 || ^0.17.0",
|
|
47
|
+
"@rsbuild/core": "^2.0.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependenciesMeta": {
|
|
50
|
+
"@lynx-js/rspeedy": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"@rsbuild/core": {
|
|
54
|
+
"optional": true
|
|
55
|
+
}
|
|
43
56
|
},
|
|
44
57
|
"engines": {
|
|
45
58
|
"node": ">=18"
|