Skip to content

Commit

Permalink
chore(enhanced): fix esm exports (#2408)
Browse files Browse the repository at this point in the history
Co-authored-by: ScriptedAlchemy <zackaryjackson@bytedance.com>
  • Loading branch information
ScriptedAlchemy and ScriptedAlchemy authored Apr 29, 2024
1 parent cbe6417 commit 3d2c63a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-points-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/enhanced': patch
---

fix esm export formats and make webpack optional peer
5 changes: 5 additions & 0 deletions packages/enhanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"peerDependencies": {
"webpack": "^5.0.0"
},
"peerDependenciesMeta": {
"webpack": {
"optional": true
}
},
"exports": {
".": {
"types": "./dist/src/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/enhanced/src/webpack.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin';
import { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin';
export { ModuleFederationPlugin };

0 comments on commit 3d2c63a

Please sign in to comment.