babel-plugin-linaria-css-to-undefined
v0.3.0
Published
## Features
Downloads
20
Readme
babel-plugin-linaria-css-to-undefined
Features
This plugin was created to allow to delete linaria in react-native plateform, while still using it for the web.
Install
npm install --save-dev --save-exact babel-plugin-linaria-css-to-undefined
Example
Source:
import { css } from '@linaria/core';
const className = css`
display: flex;
`;
Transformed to:
const className = undefined;
Usage
Via babel.config.json
{
"plugins": ["babel-plugin-linaria-css-to-undefined"]
}