atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.
https://compiledcssinjs.com
Apache License 2.0
1.99k stars 67 forks source link

esbuild plugin #1169

Open rippi opened 2 years ago

rippi commented 2 years ago

Is your feature request related to a problem? Please describe. My team recently switched from babel to esbuild for its by far better build times. Unfortunately there doesn't seem to be an esbuild plugin for compiled, yet.

Describe the solution you'd like An esbuild plugin for compiled.

Describe alternatives you've considered There are ways to use babel with esbuild, e.g. esbuild-plugin-babel, and then load babel plugins into that, but this solution brings back the old slow build times of babel. In combination with typescript this doesn't work at all.

JakeLane commented 2 years ago

Hi @rippi, long-term we've looked at improving build performance by utilising SWC (the prefered method for Parcel plugins, which is the preferred bundler at Atlassian). This change isn't road mapped but we hope to prioritise build performance soon.

austinbiggs commented 9 months ago

Hi @rippi, long-term we've looked at improving build performance by utilising SWC (the prefered method for Parcel plugins, which is the preferred bundler at Atlassian). This change isn't road mapped but we hope to prioritise build performance soon.

@JakeLane has there been any additional consideration for SWC support? 😄