When defining the CSS transformer as lightningcss styles are being dropped from the final bundle on build. Does not happen in dev mode.
export default defineConfig({
css: {
transformer: 'lightningcss',
},
plugins: [pandabox.vite(), react()],
});
Reproduction: https://stackblitz.com/edit/vitejs-vite-repb2fe9?file=vite.config.ts
PostCSS works, capturing this in case someone comes across it.
When defining the CSS
transformeraslightningcssstyles are being dropped from the final bundle onbuild. Does not happen indevmode.Reproduction: https://stackblitz.com/edit/vitejs-vite-repb2fe9?file=vite.config.ts
PostCSS works, capturing this in case someone comes across it.