We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e08ded5 commit 289c126Copy full SHA for 289c126
packages/vite/src/node/optimizer/scan.ts
@@ -577,6 +577,7 @@ function rolldownScanPlugin(
577
if (htmlTypesRE.test(id)) {
578
return {
579
code: await htmlTypeOnLoadCallback(id),
580
+ moduleType: 'js'
581
}
582
583
@@ -607,11 +608,13 @@ function rolldownScanPlugin(
607
608
609
if (contents.includes('import.meta.glob')) {
610
611
+ moduleType: 'js', // since it is transpiled,
612
code: await doTransformGlobImport(contents, id),
613
614
615
616
617
+ moduleType: loader,
618
code: contents,
619
620
0 commit comments