@garment/plugin-runner-babel
Allows you to transpile javascript files using Babel.
Installation
npm i @garment/plugin-runner-babel
or
yarn add @garment/plugin-runner-babel
Example usage
{
"runner": "babel",
"input": "{{projectDir}}/src",
"output": "{{projectDir}}/lib",
"options": {
"babelConfig": "babel.config.js",
"env": "es",
"sourceMaps": true
}
}
API
configFile: path
Default: asdas
Path to babel config
env: string
The current active environment used during configuration loading.
babelrc: boolean
Specify whether or not to use .babelrc and .babelignore files.
sourceMaps: boolean
Generate a sourcemap for the code
sourceRoot: path
The sourceRoot fields to set in the generated source map if one is desired.