Skip to content

babel plugin to transform css imports from linaria/core to undefined

Notifications You must be signed in to change notification settings

ornikar/babel-plugin-linaria-css-to-undefined

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

babel plugin to transform css imports from linaria/core to undefined

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published