Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Aug 26, 2023
1 parent aa861d1 commit a8a6835
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 92 deletions.
10 changes: 7 additions & 3 deletions packages/vinxi/lib/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,13 @@ async function createViteHandler(app, router, serveConfig) {
configFile: false,
base: router.base,
plugins: [
...(targetDevPlugin[router.build.target]?.(router).filter(Boolean) ?? []),
...(routerModeDevPlugin[router.mode]?.(router).filter(Boolean) ?? []),
...((await router.build?.plugins?.(router)).filter(Boolean) || []),
...((targetDevPlugin[router.build.target]?.(router) ?? []).filter(
Boolean,
) ?? []),
...((routerModeDevPlugin[router.mode]?.(router) ?? []).filter(Boolean) ??
[]),
...(((await router.build?.plugins?.(router)) ?? []).filter(Boolean) ||
[]),
],
router,
app,
Expand Down
2 changes: 1 addition & 1 deletion packages/vinxi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"listhen": "^1.0.4",
"micromatch": "^4.0.5",
"mri": "^1.2.0",
"nitropack": "npm:nitropack-edge@2.6.0-28206057.d584781",
"nitropack": "2.6.1",
"node-fetch-native": "^1.2.0",
"path-to-regexp": "^6.2.1",
"pathe": "^1.1.1",
Expand Down
Loading

0 comments on commit a8a6835

Please sign in to comment.