Skip to content

Commit

Permalink
fix: add default prop to exports
Browse files Browse the repository at this point in the history
  • Loading branch information
nieyuyao committed May 8, 2022
1 parent 336e4af commit 08f70e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-node/src/client.ts
Expand Up @@ -158,6 +158,7 @@ export class ViteNodeRunner {
const url = pathToFileURL(fsPath).href
const exports: any = Object.create(null)
exports[Symbol.toStringTag] = 'Module'
exports.default = Object.create(null)

this.moduleCache.set(id, { code: transformed, exports })

Expand Down

0 comments on commit 08f70e9

Please sign in to comment.