We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbe6417 commit 3d2c63aCopy full SHA for 3d2c63a
.changeset/strange-points-play.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/enhanced': patch
3
4
+
5
+fix esm export formats and make webpack optional peer
packages/enhanced/package.json
@@ -14,6 +14,11 @@
14
"peerDependencies": {
15
"webpack": "^5.0.0"
16
},
17
+ "peerDependenciesMeta": {
18
+ "webpack": {
19
+ "optional": true
20
+ }
21
+ },
22
"exports": {
23
".": {
24
"types": "./dist/src/index.d.ts",
packages/enhanced/src/webpack.ts
@@ -1 +1,2 @@
-export { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin';
+import { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin';
+export { ModuleFederationPlugin };
0 commit comments