0.2.0 • Published 5 years ago
babel-plugin-transform-object-literals v0.2.0
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
0.2.0
5 years ago