assign.macro
A babel-macro to transpile Object.assign
-style expressions to direct assignments for maximum performance.
Installation
This module is distributed in the npm registry under assign.macro
which should be installed to your project's devDependencies
:
npm install --save-dev assign.macro # or if you use yarn yarn add --dev assign.macro
Usage
After you have configured babel-macros
you can import assign.macro
and utilize it like so:
; const test = {};;
...which will be transpiled to the following:
const test = {};testbabel = "macros";testare = "dope";