Sean T. Larkin
Sep 9, 2018 · 1 min read

Technically this is inaccurate. The benefits of code splitting is that you are waiting until some async operation/event to trigger to then use `import()` to lazy load the module you need.

It may change a static import to a call expression that returns a promise, however, you will only be code splitting (if done correctly) during an async event/callback/situation.

    Sean T. Larkin

    Written by

    @Webpack Core team & AngularCLI team. Program Manager @Microsoft @EdgeDevTools. Web Performance, JavaScripter, Woodworker, 🐓 Farmer, and Gardener!