Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@start/plugin-lib-babel

deepsweet80MIT3.0.0TypeScript support: included

🏭 Transform files using Babel

tasks, runner, start, start-plugin, babel

readme

🏭 plugin-lib-babel

Transform files using Babel.

Install

$ yarn add --dev @start/plugin-lib-babel

Usage

Signature

babel(options?: TransformOptions)

options

Babel options.

Example

import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import read from '@start/plugin-read'
import babel from '@start/plugin-lib-babel'
import write from '@start/plugin-write'

const babelConfig = {
  // …
  babelrc: false,
  sourceMaps: true,
}

export const task = () =>
  sequence(
    find('src/**/*.js'),
    read,
    babel(babelConfig),
    write('build/')
  )