import(/* webpackChunkName: "my-chunnk" */ 'CHUNK_PATH')
.then((res) => console.log(res))
.catch((err) => console.error(err));- supported by TS 2.4, but
modulewill need to outputesnext(tsconfig.json) - babel-plugin for syntax (
babel-plugin-syntaxt-dynamic-import)
import(/* webpackChunkName: "my-chunnk" */ 'CHUNK_PATH')
.then((res) => console.log(res))
.catch((err) => console.error(err));Already supported, though TS will need type def for System (eg: declare const System: any).