Skip to content

Commit

Permalink
fix: export library
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Sep 23, 2020
1 parent 057f97a commit b8e657a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/webpack/baseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ const getBaseConfig = async () => {
// 注册服务
new ModuleFederationPlugin({
name: APP_CONFIG.syscode,
library:
APP_CONFIG.syscode === 'layout' ? undefined : { type: 'var', name: APP_CONFIG.syscode },
library: { type: 'var', name: APP_CONFIG.syscode },
remotes: {
layout: `layout@/${APP_CONFIG.target}system/layout/remoteEntry.js`,
},
Expand Down

0 comments on commit b8e657a

Please sign in to comment.