Skip to content

Babel plugin to transform object literals into JSON.parse calls.

Notifications You must be signed in to change notification settings

raibima/babel-plugin-optimize-object-literals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-optimize-object-literals

Transforms object literals into JSON.parse calls.

npm install --save-dev babel-plugin-optimize-object-literals

In

// @stringify
const obj = { foo: 'bar' };

Out

const obj = JSON.parse(`{"foo":"bar"}`);

About

Babel plugin to transform object literals into JSON.parse calls.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published