Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit e0ca661

Browse files
authored
Update packages/vite/src/server.ts
1 parent 31aeb02 commit e0ca661

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite/src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export async function buildServer (ctx: ViteBuildContext) {
3838
},
3939
// By default Vite resolves `module` field, which not always a native ESM module
4040
// Setting this option can bypass that and fallback to cjs version
41+
// TODO: Fix nitro/unenv issue with `main` field
4142
mainFields: ctx.nuxt.options.dev ? ['main'] : undefined
4243
},
4344
ssr: {

0 commit comments

Comments
 (0)