Skip to content

Commit

Permalink
don't override vite config at all
Browse files Browse the repository at this point in the history
  • Loading branch information
mkilpatrick committed Oct 19, 2023
1 parent adfba02 commit 758e440
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/pages/src/common/src/loader/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ export const loadModules = async (
const importedModules: ImportedModule[] = [];

if (transpile) {
// create vite using ssr mode
const vite = await createServer({
...getViteServerConfig(projectStructure),
server: {
hmr: false,
},
});
const vite = await createServer(getViteServerConfig(projectStructure));

for (const modulePath of modulePaths) {
const functionModule = await loadViteModule(vite, modulePath);
Expand Down

0 comments on commit 758e440

Please sign in to comment.