vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
781 stars 50 forks source link

Add styled-component configuration to the config #22

Closed yarinsa closed 1 year ago

yarinsa commented 1 year ago

Using babel we used to have the following configuration

[
  'babel-plugin-styled-components',
  {
    displayName: !(command === 'build'),
    fileName: false,
  },
],

To present class names while still in development. Using vercel SWC we can't. Found this issue. So I think that this might solve it, but not familiar enough. If that's the case this issue can be closed

ArnaudBarre commented 1 year ago

Yes that's one of the main use cases for #16. You can subscribe to be notified I have made some progress on it