Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Sep 14, 2022
1 parent 714e420 commit 4af1de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-renderer/src/polyfill-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function polyfillExports(): Plugin {
: formats.includes(output.format as string)
) {
// fix(🐞): exports is not defined
const polyfill = `<script>var exports = typeof module !== 'undefined' ? module.exports : {}</script>`
const polyfill = `<script>var exports = typeof module !== 'undefined' ? module.exports : {};</script>`
return html.replace(/(<\/[\s]*?head[\s]*?>)/, polyfill + '\n$1')
}
},
Expand Down

0 comments on commit 4af1de6

Please sign in to comment.