@lynx-js/external-bundle-rsbuild-plugin 0.4.2 → 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 +6 -0
- package/README.md +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
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,13 +37,13 @@
|
|
|
37
37
|
"@lynx-js/externals-loading-webpack-plugin": "0.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
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
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@lynx-js/rspeedy": "^0.16.0 || ^0.17.0",
|
|
46
|
+
"@lynx-js/rspeedy": "^0.16.0 || ^0.17.0 || ^0.18.0",
|
|
47
47
|
"@rsbuild/core": "^2.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|