babel-plugin-linaria-css-to-undefined

0.3.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-linaria-css-to-undefined

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

4.19 kB

Total Files

3

Last publish

Collaborators

  • abarreir-ornikar