Skip to content

dwaynejs/babel-plugin-transform-dwayne-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Babel plugin for transforming js tagged expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published