We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f591c5 commit a441ba5Copy full SHA for a441ba5
.changeset/tiny-tomatoes-switch.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte-hmr': patch
3
4
+
5
+Fix injecting imports whose paths contain special characters
packages/svelte-hmr/lib/make-hot.js
@@ -75,8 +75,8 @@ const renderApplyHmr = ({
75
preserveLocalState,
76
emitCss,
77
imports = [
78
- `import * as ${globalName} from '${hotApiImport}'`,
79
- `import { adapter as ${importAdapterName} } from '${adapterImport}'`,
+ `import * as ${globalName} from ${JSON.stringify(hotApiImport)}`,
+ `import { adapter as ${importAdapterName} } from ${JSON.stringify(adapterImport)}`,
80
],
81
}) =>
82
// this silly formatting keeps all original characters in their position,
0 commit comments