@module-federation/runtime-tools 0.0.0-next-20241104084202 → 0.0.0-next-20241104091124

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,12 +1,43 @@
1
- ## [1.0.1-canary.1](https://github.com/module-federation/core/compare/runtime-1.0.0...runtime-1.0.1-canary.1) (2023-12-06)
1
+ # @module-federation/runtime-tools
2
2
 
3
- ## 0.0.0-next-20241104084202
3
+ ## 0.0.0-next-20241104091124
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [3082116]
8
- - @module-federation/runtime@0.0.0-next-20241104084202
9
- - @module-federation/webpack-bundler-runtime@0.0.0-next-20241104084202
7
+ - 024df60: disable hoistTransitiveImports for better tree shake
8
+ - Updated dependencies [024df60]
9
+ - @module-federation/webpack-bundler-runtime@0.0.0-next-20241104091124
10
+ - @module-federation/runtime@0.0.0-next-20241104091124
11
+
12
+ ## 0.6.15
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [ec31539]
17
+ - @module-federation/runtime@0.6.15
18
+ - @module-federation/webpack-bundler-runtime@0.6.15
19
+
20
+ ## 0.6.14
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [ad605d2]
25
+ - @module-federation/runtime@0.6.14
26
+ - @module-federation/webpack-bundler-runtime@0.6.14
27
+
28
+ ## 0.6.13
29
+
30
+ ### Patch Changes
31
+
32
+ - @module-federation/runtime@0.6.13
33
+ - @module-federation/webpack-bundler-runtime@0.6.13
34
+
35
+ ## 0.6.12
36
+
37
+ ### Patch Changes
38
+
39
+ - @module-federation/runtime@0.6.12
40
+ - @module-federation/webpack-bundler-runtime@0.6.12
10
41
 
11
42
  ## 0.6.11
12
43
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime-tools",
3
- "version": "0.6.11",
3
+ "version": "0.6.15",
4
4
  "author": "zhanghang <hanric.zhang@gmail.com>",
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime-tools",
3
- "version": "0.0.0-next-20241104084202",
3
+ "version": "0.0.0-next-20241104091124",
4
4
  "author": "zhanghang <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@module-federation/runtime": "0.0.0-next-20241104084202",
45
- "@module-federation/webpack-bundler-runtime": "0.0.0-next-20241104084202"
44
+ "@module-federation/runtime": "0.0.0-next-20241104091124",
45
+ "@module-federation/webpack-bundler-runtime": "0.0.0-next-20241104091124"
46
46
  }
47
47
  }
package/rollup.config.js CHANGED
@@ -6,5 +6,18 @@ module.exports = (rollupConfig) => {
6
6
  'packages/runtime-tools/src/webpack-bundler-runtime.ts',
7
7
  };
8
8
 
9
+ // Check if output is an array and add hoistTransitiveImports: false
10
+ if (Array.isArray(rollupConfig.output)) {
11
+ rollupConfig.output = rollupConfig.output.map((c) => ({
12
+ ...c,
13
+ hoistTransitiveImports: false,
14
+ }));
15
+ } else {
16
+ rollupConfig.output = {
17
+ ...rollupConfig.output,
18
+ hoistTransitiveImports: false,
19
+ };
20
+ }
21
+
9
22
  return rollupConfig;
10
23
  };