await-import-dont-compile
v0.0.2
Published
Prevent typescript from compiling your import function
Downloads
11,944
Maintainers
Readme
AWAIT-IMPORT-DONT-COMPILE!
// original
await import("/my-module.js");
// After compilation
Promise.resolve().then(() => __importStar(require("/my-module.js")));
// Use AWAIT-IMPORT-DONT-COMPILE to prevent compilation
// and better organization of code
import awaitImport from "await-import-dont-compile";
import { pathToFileURL } from "url";
await awaitImport(pathToFileURL("/my-module.js").href);