@lynx-js/external-bundle-rsbuild-plugin 0.4.1 → 0.4.3
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 +14 -0
- package/README.md +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.js +1 -1
- package/package.json +17 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lynx-js/external-bundle-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add `@lynx-js/rspeedy` `^0.18.0` to the peer dependency range. ([#3971](https://github.com/lynx-family/lynx-stack/pull/3971))
|
|
8
|
+
|
|
9
|
+
## 0.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 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))
|
|
14
|
+
|
|
15
|
+
- **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))
|
|
16
|
+
|
|
3
17
|
## 0.4.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export interface ReactLynxExternalsPresetOptions {
|
|
|
16
16
|
* so application bundles can reference it without requiring an extra manual
|
|
17
17
|
* copy step when publishing.
|
|
18
18
|
*
|
|
19
|
-
* @defaultValue `'react.lynx.bundle'`
|
|
19
|
+
* @defaultValue `'react.lynx.bundle'`, or `'react.web.bundle'` outside
|
|
20
|
+
* `lynx` / `lynx-*` environments
|
|
20
21
|
*/
|
|
21
22
|
bundlePath?: string;
|
|
22
23
|
/**
|
|
@@ -35,8 +36,8 @@ export interface ReactLynxExternalsPresetOptions {
|
|
|
35
36
|
* asynchronously (`fetchBundle().then`), so ReactLynx must be mounted as a
|
|
36
37
|
* promise that consuming modules await before reading a subpath (otherwise
|
|
37
38
|
* `React.memo` etc. are read off a pending promise and are `undefined`).
|
|
38
|
-
*
|
|
39
|
-
*
|
|
39
|
+
* Only controls how the runtime is mounted; the web bundle is chosen for
|
|
40
|
+
* environments other than `lynx` / `lynx-*`.
|
|
40
41
|
*
|
|
41
42
|
* @defaultValue `false`
|
|
42
43
|
*/
|
|
@@ -206,7 +207,7 @@ export declare function normalizeBundlePath(bundlePath: string): string;
|
|
|
206
207
|
*
|
|
207
208
|
* @example
|
|
208
209
|
* ```ts
|
|
209
|
-
* //
|
|
210
|
+
* // rsbuild.config.ts
|
|
210
211
|
* import { pluginExternalBundle } from '@lynx-js/external-bundle-rsbuild-plugin'
|
|
211
212
|
* import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
|
|
212
213
|
*
|
package/lib/index.js
CHANGED
|
@@ -376,7 +376,7 @@ function normalizePluginExternal(request, external) {
|
|
|
376
376
|
*
|
|
377
377
|
* @example
|
|
378
378
|
* ```ts
|
|
379
|
-
* //
|
|
379
|
+
* // rsbuild.config.ts
|
|
380
380
|
* import { pluginExternalBundle } from '@lynx-js/external-bundle-rsbuild-plugin'
|
|
381
381
|
* import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
|
|
382
382
|
*
|
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.3",
|
|
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
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
40
|
+
"@lynx-js/react-umd": "0.126.2",
|
|
41
|
+
"@lynx-js/rspeedy": "0.18.0",
|
|
42
|
+
"@microsoft/api-extractor": "7.59.1",
|
|
43
|
+
"@rsbuild/core": "2.2.9"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@lynx-js/rspeedy": "^0.16.0 || ^0.17.0 || ^0.18.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"
|