import()

import("./math").then(math => {
  console.log(math.add(16, 26));
});

The best way to introduce code-splitting into your app is through the dynamic import() syntax.

import() — Structure map

Clickable & Draggable!

import() — Related pages: