Skip to content

Commit 9eeae6d

Browse files
authored
Use the correct resourceType on linked proxy imports (#3647)
1 parent 33b5982 commit 9eeae6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snowpack/src/commands/dev.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ export async function startServer(
612612
let attemptedFileLoc = fileToUrlMapping.key(reqPath);
613613
if (!attemptedFileLoc) {
614614
resourcePath = reqPath.replace(/\.map$/, '').replace(/\.proxy\.js$/, '');
615+
resourceType = path.extname(resourcePath);
615616
}
616617
attemptedFileLoc = fileToUrlMapping.key(resourcePath);
617618
if (!attemptedFileLoc) {

0 commit comments

Comments
 (0)