babel-plugin-replace-property
v1.0.2
Published
Replaces property expressions in constant strings.
Downloads
8
Readme
babel-plugin-replace-property
Replaces ${property}
with a value defined in the options.
Example
Input: JS:
const something = "${constant}";
Options:
{
"replacements": {
"constant": "truffles"
}
}
Output:
const something = "truffles";