babel-plugin-transform-dwayne-js
Babel plugin for transforming js tagged expression into functions.
Last updated 3 years ago by dwaynejf .
Original npm · Tarball · package.json
$ cnpm install babel-plugin-transform-dwayne-js 
SYNC missed versions from official npm registry.

babel-plugin-transform-dwayne-js

Babel plugin for transforming js tagged expression into functions.

It's recommended to use babel-preset-dwayne instead of the plugin itself.

Example

Input:

const expression = js`a + b`;

Output:

const expression = _ => _.a + _.b;

Options

This plugin accepts only one option: taggedJsFuncName - name of the tag function. The default value is js.

Transformer

It's similar to transform-dwayne-js, but for babel and js expressions only.

All the options passed to the plugin are passed to the transformer itself.

By default the plugin sets options.useES6 to true.

Current Tags

  • 5.0.2                                ...           latest (3 years ago)

10 Versions

  • 5.0.2                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |