Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 9, 2024
1 parent 3494473 commit fc5a751
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vike-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@
],
"repository": "github:vikejs/vike-node",
"license": "MIT"
}
}
11 changes: 9 additions & 2 deletions packages/vike-node/src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { vikeNode, vikeNode as default }

import { globalStore } from '../runtime/globalStore.js'
import { ConfigVikeNodePlugin } from '../types.js'
import type { ConfigVikeNodePlugin } from '../types.js'
import { commonConfig } from './plugins/commonConfig.js'
import { devServerPlugin } from './plugins/devServerPlugin.js'
import { edgePlugin } from './plugins/edgePlugin.js'
Expand All @@ -11,5 +11,12 @@ import { standalonePlugin } from './plugins/standalonePlugin.js'
globalStore.isDev = true

function vikeNode(config: ConfigVikeNodePlugin) {
return [commonConfig(config), serverEntryPlugin(), devServerPlugin(), standalonePlugin(), edgePlugin()]
return [
//
commonConfig(config),
serverEntryPlugin(),
devServerPlugin(),
standalonePlugin(),
edgePlugin()
]
}

0 comments on commit fc5a751

Please sign in to comment.