How do I merge the ES6 specification into a modular js file using webpack?

in the past, all functions were uninstalled in closures to avoid global pollution. Now small functions are developed with ES6 modules and import/export is used to deal with dependencies. In this case, how to ensure that the code is merged in an orderly manner? Many people on the Internet say that webpack can achieve this function, but I try to package the result is not what I want, after the merger added the modular scheme code of webpack.

maybe I can"t use it, or is there another plan? Please give us some advice on how to do it. Thank you very much!

Menu