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 d690232 commit 363b3eeCopy full SHA for 363b3ee
packages/dev-server-hmr/src/HmrPlugin.ts
@@ -90,7 +90,7 @@ export class HmrPlugin implements Plugin {
90
/** @inheritDoc */
91
async transformImport({ source, context }: { source: string; context: Context }) {
92
// Can't possibly handle computed dynamic imports
93
- if (source.includes('${')) {
+ if (!/^"[^"]*"|'[^']*'|`[^`]*`/.test(source)) {
94
return;
95
}
96
0 commit comments