Skip to content

Commit 0b1be66

Browse files
committed
prettier
1 parent 0027d4b commit 0b1be66

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/make-hot.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,12 @@ const createMakeHot = ({ walk, meta = 'import.meta', hotApi, adapter }) => {
429429
acceptable: isAcceptable(hotOptions, compileOptions, compiled),
430430
})
431431

432-
return compiledCode.replace(/(\n?export default ([^;]*);)/, (match, $1, $2) => {
433-
return replacement.replace(/\$2/g, () => $2)
434-
})
432+
return compiledCode.replace(
433+
/(\n?export default ([^;]*);)/,
434+
(match, $1, $2) => {
435+
return replacement.replace(/\$2/g, () => $2)
436+
}
437+
)
435438
}
436439

437440
// rollup-plugin-svelte-hot needs hotApi path (for tests)

0 commit comments

Comments
 (0)