const nodeEnv = process . env . NODE_ENV || 'development' ; const BABEL_PRESET_TARGETS = { development : { browsers : 'Chrome >= 60' , } , production : undefined , test : { node : '10' , } , } ; const BABEL_MODULES = { development : false , production : false , test : 'commonjs' , } ; module . exports = { assumptions : { noDocumentAll : true , noClassCalls : true , } , presets : [ [ require . resolve ( '@babel/preset-env' ) , { modules : BABEL_MODULES [ nodeEnv ] , targets : BABEL_PRESET_TARGETS [ nodeEnv ] , useBuiltIns : 'entry' , corejs : 3 , } , ] , require . resolve ( '@babel/preset-typescript' ) , require . resolve ( '@babel/preset-react' ) , require . resolve ( 'linaria/babel' ) , ] , plugins : [ require . resolve ( '@babel/plugin-transform-runtime' ) ] , sourceType : 'unambiguous' , } ;