UNPKG

@modernpoacher/rules-runner

Version:
39 lines (31 loc) 546 B
const debug = require('debug') const log = debug('@modernpoacher/rules-runner') const { env: { NODE_ENV = 'development' } } = process log('`@modernpoacher/rules-runner` is awake') function env () { log({ NODE_ENV }) return ( NODE_ENV === 'production' ) } module.exports = (api) => { if (api) api.cache.using(env) return { presets: [ [ '@babel/env', { targets: { node: 'current' }, useBuiltIns: 'usage', corejs: 3 } ] ] } }