aboeglin / babel-plugin-snake-render-engine

Babel transform plugin for https://github.com/aboeglin/snake-render-engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Main Coverage Status

babel-plugin-snake-render-engine

Plugin that allows to get rid of the Node() wrapper.

Given:

import SRE from "snake-render-engine";
const SomeNode = (props) => {};
const MyNode = () => {};

const fn = () => {
  const OtherNode = () => {};
};

It produces:

import SRE from "snake-render-engine";
const SomeNode = Node(props => {});
const MyNode = Node(() => {});

const fn = () => {
  const OtherNode = Node(() => {});
};

Also note that for now you should import Node from snake-render-engine. Next iteration will take care of this in the background.

About

Babel transform plugin for https://github.com/aboeglin/snake-render-engine


Languages

Language:JavaScript 100.0%