0.3.0 • Published 2 years ago

babel-plugin-linaria-css-to-undefined v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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"]
}