Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
patak-dev and bluwy authored Jul 6, 2022
1 parent 1515fa0 commit 7b57f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/importAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,10 +835,10 @@ export function transformCjsImport(
importNames.push({ importedName, localName: defaultExports })
} else {
const localName = makeLegalIdentifier(
`__vite__cjsExport_${spec.exported.name}`
`__vite__cjsExport_${exportedName}`
)
importNames.push({ importedName, localName })
exportNames.push(`${localName} as ${spec.exported.name}`)
exportNames.push(`${localName} as ${exportedName}`)
}
}
}
Expand Down

0 comments on commit 7b57f61

Please sign in to comment.