import { IConfig } from '../config' ; import get from 'lodash.get' ; export default ( config ) => { const env = { __NODEMODULEPATH : 'virtualPath.nodeModulesPath' , __USEYARN : 'useYarn' , __ISDEV : 'isDev' , __ISDEBUG : 'isDebug' , } ; Object . entries ( env ) . forEach ( ( item ) => { const [ key , path ] = item ; process . env [ key ] = get ( config , path ) . toString ( ) ; } ) ; } ;