Skip to content

Commit

Permalink
fix(builder): fix exposes check
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Dec 5, 2024
1 parent 8a5318f commit 8c99e1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions examples/basic/app1/site.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
},
"@example/app3": "http://localhost:3003/remoteEntry.js"
},
"exposes": {
"./src/bootstrap": "./src/bootstrap"
},
"shared": {
"react": {
"singleton": true
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const getModuleFederationConfig = (
__DEV__ &&
(typeof exposes !== 'object' || !Object.keys(exposes).length)
) {
throw new Error(`'exposes' should set at least one of the exposed module.`);
console.warn(`'exposes' should set at least one of the exposed module.`);
}
if (__DEV__ && restConfig.remoteType) {
console.warn(
Expand Down

0 comments on commit 8c99e1a

Please sign in to comment.