Our great sponsors
-
twin.macro
๐ฆนโโ๏ธ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
So, swc, the speedy web compiler has been building up support for user-defined plugins. I love rust, however I currently have no capacity for it at my day job, where I mostly work with typescript and nextjs. Recently, there has arisen a new generation of faster build tools in the javascript ecosystem such as swc and esbuild. nextjs has earlier this year adopted swc as its primary compiler, and opened up the ability to use swc plugins with it.
The blocker for us using it is our use of an excellent library called twin.macro which is built against babel's transpilation APIs to parse tailwindcss directives at compile time so that they may be used with css-in-js libraries. This efficiently bundles your css so that you only ship the precise css you use. The problem is, it's all quite slow.
The blocker for us using it is our use of an excellent library called twin.macro which is built against babel's transpilation APIs to parse tailwindcss directives at compile time so that they may be used with css-in-js libraries. This efficiently bundles your css so that you only ship the precise css you use. The problem is, it's all quite slow.
Over the last few days, I started a project in rust targeting swc to replace twin.macro, namely stailwc.