Skip to content

Commit

Permalink
Merge pull request #48 from rixo/fix-option-accept-named-exports-vite
Browse files Browse the repository at this point in the history
fix acceptNamedExports option in tools that statically analyse accet() like Vite
  • Loading branch information
rixo authored Apr 11, 2022
2 parents 8fb74b2 + 161d42b commit ae6b9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte-hmr/lib/make-hot.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const renderApplyHmr = ({
//
`${imports.join(';')};${`
if (${meta} && ${meta}.hot) {
if (false) ${meta}.hot.accept();
${acceptable ? `if (false) ${meta}.hot.accept();` : ''};
$2 = ${globalName}.applyHmr({
m: ${meta},
id: ${json(id)},
Expand Down

0 comments on commit ae6b9c6

Please sign in to comment.