What is the TypeScript way of loading modules dynamically (path to the module is known at runtime)? I tried this one: var x = "someplace" import a = module(x) But it seems that TypeScript compiler would like to see path as a string in import/module at compile time: $ tsc test.ts /tmp/test.ts(2,19): error TS1003: Identifier expected. /tmp/test.ts(2,20): error TS1005: ';' expected. I know I can for
![Dynamically import module in TypeScript](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)