Skip to content

[unplugin]: builds configured with lightningcss #66

@cgatian

Description

@cgatian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions