Skip to main content
Module

x/rambda/babel.config.cjs

Faster and smaller alternative to Ramda
Go to Latest
File
const testConfig = { presets : [ [ '@babel/preset-env', { targets : { node : 'current' } }, ], ],}const options = { "targets": { "node": "10.6.0" }}module.exports = function(api){ const isTest = api.env('test') if (isTest) return testConfig
return { presets : [ ['@babel/preset-env', options] ], plugins : [ '@babel/plugin-proposal-object-rest-spread', ], }}