Babel will simply transforms ES6 code to ES5, despite require not being available in browser. Leaving the implementation of require method to other libraries like webpack.js.