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 f4c3629 commit f328a00Copy full SHA for f328a00
packages/vite/src/node/plugins/css.ts
@@ -626,8 +626,7 @@ export function cssPostPlugin(config: ResolvedConfig): RolldownPlugin {
626
code = `export default ${JSON.stringify(content)}`
627
} else {
628
// empty module when it's not a CSS module nor `?inline`
629
- // NOTE: add `export {}` otherwise rolldown treats the module as CJS (https://github.com/rolldown/rolldown/issues/2394)
630
- code = 'export {}'
+ code = ''
631
}
632
633
return {
0 commit comments