Transform files using Babel.
$ yarn add --dev @start/plugin-lib-babel
# or
$ npm install --save-dev @start/plugin-lib-babel
babel(options?: TransformOptions)
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/')
)