@module-federation/runtime-tools 0.6.14 → 0.6.16
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 -1
- package/dist/package.json +1 -1
- package/package.json +3 -3
- package/rollup.config.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
# @module-federation/runtime-tools
|
|
2
|
+
|
|
3
|
+
## 0.6.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 024df60: disable hoistTransitiveImports for better tree shake
|
|
8
|
+
- Updated dependencies [024df60]
|
|
9
|
+
- @module-federation/webpack-bundler-runtime@0.6.16
|
|
10
|
+
- @module-federation/runtime@0.6.16
|
|
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
|
|
2
19
|
|
|
3
20
|
## 0.6.14
|
|
4
21
|
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/runtime-tools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
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.6.
|
|
45
|
-
"@module-federation/webpack-bundler-runtime": "0.6.
|
|
44
|
+
"@module-federation/runtime": "0.6.16",
|
|
45
|
+
"@module-federation/webpack-bundler-runtime": "0.6.16"
|
|
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
|
};
|