Skip to content

Commit

Permalink
fix: ssr transform check valid inMap
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 19, 2021
1 parent 92cccc4 commit bf4b3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export async function ssrTransform(
})

let map = s.generateMap({ hires: true })
if (inMap) {
if (inMap && inMap.mappings) {
map = merge(inMap, {
...map,
sources: inMap.sources,
Expand Down

0 comments on commit bf4b3e9

Please sign in to comment.