Socket
Book a DemoInstallSign in
Socket

@garment/plugin-runner-babel

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@garment/plugin-runner-babel

<!-- description src/index.ts firstInterface --> Allows you to transpile javascript files using [Babel](https://babeljs.io).

latest
npmnpm
Version
0.18.0
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 02 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts