Do you want to request a feature or report a bug?
What is the current behavior?
Dynamic module loading is using ‘import()’. Alternatives are ‘require.ensure()’ (non-portable) and ‘System.import()’ (deprecated). See https://webpack.js.org/guides/code-splitting-import/ for more details.
If the current behavior is a bug, please provide the steps to reproduce.
The problem of using ‘import()’ is that ‘import’ is a KEYWORD in the TypeScript compiler. Hence TypeScript will not compile ‘import()’. In no configuration. And even not if you compile JS with the TypeScript compiler.
What is the expected behavior?
You probably should not use an already used keyword for dynamic module loading. ‘System.import()’ was ways better in this respect.
If this is a feature request, what is motivation or use case for changing the behavior?
Could you rename ‘import()’? Or at least provide an alias for it?