Skip to content

Commit

Permalink
change the sequence (originjs#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwwc authored Mar 26, 2024
1 parent 3d29efe commit 0840333
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ export default function federation(
let registerCount = 0

function registerPlugins(mode: string, command: string) {
if (mode === 'development' || command === 'serve') {
pluginList = [
devSharedPlugin(options),
devExposePlugin(options),
devRemotePlugin(options)
]
} else if (mode === 'production' || command === 'build') {
if (mode === 'production' || command === 'build') {
pluginList = [
prodSharedPlugin(options),
prodExposePlugin(options),
prodRemotePlugin(options)
]
} else {
} else if (mode === 'development' || command === 'serve') {
pluginList = [
devSharedPlugin(options),
devExposePlugin(options),
devRemotePlugin(options)
]
} else {
pluginList = []
}
builderInfo.isHost = !!(
Expand Down

0 comments on commit 0840333

Please sign in to comment.