@netlify/content-engine
Version:
5 lines (4 loc) • 355 B
JavaScript
// this is to thwart typescripts incessant need to convert all dynamic imports to require calls in cjs
// converting this entire package to ESM would mean we don't need to do this anymore, but that's also a lot of work!
// this file is intentionally outside of src so that TS wont transpile it.
exports.dynamicImport = (moduleName) => import(moduleName);