We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e757dc6 + d497306 commit 5b4f982Copy full SHA for 5b4f982
packages/vite/src/hbs.ts
@@ -33,6 +33,9 @@ export function hbs(): Plugin {
33
});
34
35
if (!resolution) {
36
+ // vite already has extension search fallback for extensionless imports.
37
+ // This is different, it covers an explicit .js import fallback to the
38
+ // corresponding hbs.
39
let hbsSource = syntheticJStoHBS(source);
40
if (hbsSource) {
41
resolution = await this.resolve(hbsSource, importer, {
@@ -70,6 +73,8 @@ export function hbs(): Plugin {
70
73
},
71
74
};
72
75
}
76
+
77
+ return resolution;
78
79
80
load(id: string) {
0 commit comments