@garment/plugin-runner-babel

0.18.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @garment/plugin-runner-babel

Weekly Downloads

2

Version

0.18.0

License

MIT

Unpacked Size

8.83 kB

Total Files

6

Last publish

Collaborators

  • farfetch-oss