Code splitting is one of the best feature of web pack, it allows you to split your code in various bundles which can be called on demand in app life cycle. This has a significant impact on application load times. you can simply write var required_module = ‘any module’ //…