Cómo reemplazar la importación con requerir
import {key as foo} from 'bar';
//equivalent to: var foo = require('bar').key
import {foo} from 'bar';
//equivalent to: var foo = require('bar').foo;
ofroog