Search code examples
webpackrequirejscommonjs

Can webpack replace requirejs, commonjs?


I'm new to front-end world. As my question above, can webpack do all the thing of requirejs and commonjs?

I also see that ES6 has a feature: Modules in ES6

It seems like these things are most the same.

Please help to illuminate my mind. Thank you


Solution

  • Can be, webpack more powerful than gulp, grunt, support ES6 and can be converted to ES5, because of its babel module; also supports commonJS, AMD, requireJS, etc.