babel-plugin-transform-object-literals
v0.2.0
Published
Replace serializable object literals with JSON.parse().
Downloads
8
Maintainers
Readme
Babel Plugin Transform Object Literals
🚀 Perf tip: if your web app ships large JSON-like configuration as JavaScript object literals, consider using JSON.parse instead. It’s much faster, especially for cold loads! https://twitter.com/mathias/status/1143551692732030979?s=20
Install
npm install --save-dev babel-plugin-transform-object-literals
{
"plugins": ["transform-object-literals"]
}
Try
cd examples
npm install
npm run build
node ./output.js