Package Exports
- babel-plugin-version-inline
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-version-inline) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-plugin-version-inline
Turn __VERSION__ into the package's version string.
Example
Given the following package.json.
{
"name": "package-using-babel-plugin-version-inline",
"version": "1.0.0"
}in
__VERSION__out
"1.0.0"Installation
$ npm install babel-plugin-version-inlineUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["version-inline"]
}Via CLI
$ babel --plugins version-inline script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["version-inline"]
});