[core] Add require() to import ES6 modules