callstack / callstack/linaria

Runtime mode

Open
#668 2 comments 33 reactions 0 assignees View on GitHub
bundler: webpack 📦 cat: modules aliasing 🔗 cat: performance 🚀 enhancement: proposal 💬
Dominant language
TypeScript
Stars
12.4k
Forks
413
PR merge metrics
No merged PRs in 30d

Description

## Describe the enhancement

I would like Linaria to have a "runtime" mode with client-side style compilation like `styled-components` has. This enables working with [esbuild](https://github.com/evanw/esbuild) and [swc](https://github.com/swc-project/swc) bundlers for development.

## Motivation

`esbuild` and `swc` are much faster and zero-dependency, so I don't need to have multi-gigabyte `node_modules` with `webpack` and `babel`. I still want to use them for release builds (to precompile and split `css` files), but I have a separate CI pipeline for that.

## Possible implementations

Linaria could have a top-level export like `linaria/runtime` which I can use as alias to `linaria` for development builds

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.