Skip to content

Commit f328a00

Browse files
committed
chore: remove workaround
1 parent f4c3629 commit f328a00

File tree

1 file changed

+1
-2
lines changed
  • packages/vite/src/node/plugins

1 file changed

+1
-2
lines changed

packages/vite/src/node/plugins/css.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,7 @@ export function cssPostPlugin(config: ResolvedConfig): RolldownPlugin {
626626
code = `export default ${JSON.stringify(content)}`
627627
} else {
628628
// 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 {}'
629+
code = ''
631630
}
632631

633632
return {

0 commit comments

Comments
 (0)