Skip to content

Commit

Permalink
fix(rspack): export container and container reference plugins (#3316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy authored Dec 4, 2024
1 parent e6d9668 commit 8165419
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-doors-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/rspack': patch
---

re-export ContainerPlugin and ContainerReferencePlugin from rspack core
3 changes: 2 additions & 1 deletion packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
},
"peerDependencies": {
"typescript": "^4.9.0 || ^5.0.0",
"vue-tsc": ">=1.0.24"
"vue-tsc": ">=1.0.24",
"@rspack/core": ">=0.7"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"main": "packages/rspack/src/index.ts",
"tsConfig": "packages/rspack/tsconfig.lib.json",
"assets": [],
"external": ["@module-federation/*"],
"external": ["@module-federation/*", "@rspack/core"],
"project": "packages/rspack/package.json",
"rollupConfig": "packages/rspack/rollup.config.js",
"compiler": "swc",
Expand Down
3 changes: 3 additions & 0 deletions packages/rspack/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export { ModuleFederationPlugin } from './ModuleFederationPlugin';
import { container } from '@rspack/core';
export const ContainerPlugin = container.ContainerPlugin;
export const ContainerReferencePlugin = container.ContainerReferencePlugin;

0 comments on commit 8165419

Please sign in to comment.