README.md
457 Bytes
babel-plugin-property-literals
Turn valid property key literals to plain identifiers
Installation
$ npm install babel-plugin-property-literals
Usage
.babelrc
(Recommended)
Via .babelrc
{
"plugins": ["property-literals"]
}
Via CLI
$ babel --plugins property-literals script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["property-literals"]
});