Skip to content

Commit

Permalink
fix: add .map suffix to sourcemap comment
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Dec 14, 2021
1 parent 39a3583 commit c0ffb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Expand Up @@ -187,5 +187,5 @@ const getSourcemapComment = (hasMap: boolean, filepath: string, isCssFile: boole
if (!hasMap) return ''
const prefix = isCssFile ? '/*' : '//'
const suffix = isCssFile ? ' */' : ''
return `${prefix}# sourceMappingURL=${path.basename(filepath)}${suffix}`
return `${prefix}# sourceMappingURL=${path.basename(filepath)}.map${suffix}`
}

1 comment on commit c0ffb68

@vercel
Copy link

@vercel vercel bot commented on c0ffb68 Dec 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.