babel-plugin-version-transform
Replaces keyword VERSION
with a stringified copy of the package.json version number.
Example
In
version: "1.0.0"
{ ;}
Out
version: "1.0.0"
{ ;}
Installation
$ npm install babel-plugin-transform-define
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins version-transform script.js
Via Node API
;