babel-plugin-transform-dwayne-js

5.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-transform-dwayne-js

Weekly Downloads

2

Version

5.0.2

License

none

Last publish

Collaborators

  • dwaynejf