File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
602
602
`${ modulesCode || 'import.meta.hot.accept()' } ` ,
603
603
`import.meta.hot.prune(() => __vite__removeStyle(__vite__id))` ,
604
604
] . join ( '\n' )
605
- return { code, map : { mappings : '' } }
605
+ return { code, map : { mappings : '' } , moduleType : 'js' }
606
606
}
607
607
608
608
// build CSS handling ----------------------------------------------------
@@ -632,6 +632,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
632
632
// avoid the css module from being tree-shaken so that we can retrieve
633
633
// it in renderChunk()
634
634
moduleSideEffects : modulesCode || inlined ? false : 'no-treeshake' ,
635
+ moduleType : 'js' ,
635
636
}
636
637
} ,
637
638
} ,
You can’t perform that action at this time.
0 commit comments