This plugin was created to allow to delete linaria in react-native plateform, while still using it for the web.
npm install --save-dev --save-exact babel-plugin-linaria-css-to-undefined
Source:
import { css } from '@linaria/core';
const className = css`
display: flex;
`;
Transformed to:
const className = undefined;
{
"plugins": ["babel-plugin-linaria-css-to-undefined"]
}