项目作者: kbrw

项目描述 :
Simple preset containing only jsxz transform for convenience
高级语言: JavaScript
项目地址: git://github.com/kbrw/babel-preset-jsxz.git
创建时间: 2016-12-17T10:53:42Z
项目社区:https://github.com/kbrw/babel-preset-jsxz

开源协议:

下载


babel-preset-jsxz

Babel preset for JSXZ transform

see https://github.com/kbrw/babel-plugin-transform-jsxz

For more explanation about the JSXZ transformation : generate your
react component from html at compile time.

Install

  1. npm install --save babel-preset-jsxz

Usage

  1. {
  2. "presets": ["jsxz"]
  3. }

You can specify the HTML template relative dir with the “dir” option.

  1. {
  2. "presets": [["jsxz",{dir: "/path/to/my/templates"}]]
  3. }