@lynx-js/external-bundle-rsbuild-plugin 0.0.1 → 0.0.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @lynx-js/external-bundle-rsbuild-plugin
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`c28b051`](https://github.com/lynx-family/lynx-stack/commit/c28b051836ca4613470f6ed5ceaf56c3ab617ed3), [`4cbf809`](https://github.com/lynx-family/lynx-stack/commit/4cbf8096c5aeeb1636c2dd1bb8074bdaba73dfb1)]:
8
+ - @lynx-js/externals-loading-webpack-plugin@0.0.4
9
+
10
+ ## 0.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Add [`globalObject`](https://webpack.js.org/configuration/output/#outputglobalobject) config for external bundle loading, user can configure it to `globalThis` for BTS external bundle sharing. ([#2123](https://github.com/lynx-family/lynx-stack/pull/2123))
15
+
16
+ - Updated dependencies [[`959360c`](https://github.com/lynx-family/lynx-stack/commit/959360c82431669eb3adb5acc7a86177ce1d082c)]:
17
+ - @lynx-js/externals-loading-webpack-plugin@0.0.3
18
+
3
19
  ## 0.0.1
4
20
 
5
21
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import type { ExternalsLoadingPluginOptions } from '@lynx-js/externals-loading-w
10
10
  *
11
11
  * @public
12
12
  */
13
- export type PluginExternalBundleOptions = Pick<ExternalsLoadingPluginOptions, 'externals'>;
13
+ export type PluginExternalBundleOptions = Pick<ExternalsLoadingPluginOptions, 'externals' | 'globalObject'>;
14
14
  /**
15
15
  * Create a rsbuild plugin for loading external bundles.
16
16
  *
package/lib/index.js CHANGED
@@ -47,6 +47,7 @@ export function pluginExternalBundle(options) {
47
47
  backgroundLayer: LAYERS.BACKGROUND,
48
48
  mainThreadLayer: LAYERS.MAIN_THREAD,
49
49
  externals: options.externals,
50
+ globalObject: options.globalObject,
50
51
  }));
51
52
  return config;
52
53
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lynx-js/external-bundle-rsbuild-plugin",
3
- "version": "0.0.1",
4
- "description": "A rsbuild plugin for loading lynx external bundles.",
3
+ "version": "0.0.3",
4
+ "description": "An rsbuild plugin for loading lynx external bundles.",
5
5
  "keywords": [
6
6
  "rsbuild",
7
7
  "Lynx",
@@ -34,11 +34,11 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@lynx-js/externals-loading-webpack-plugin": "0.0.2"
37
+ "@lynx-js/externals-loading-webpack-plugin": "0.0.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@microsoft/api-extractor": "7.55.2",
41
- "@rsbuild/core": "1.6.13"
40
+ "@microsoft/api-extractor": "7.57.6",
41
+ "@rsbuild/core": "1.7.3"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=18"