dynamicImportInCjs
- Type:
optionaldynamicImportInCjs:boolean
Defined in: options/output-options.ts:472
Whether to keep external dynamic imports as import(...) expressions in CommonJS output.
If set to false, external dynamic imports will be rewritten to use require(...) calls. This may be necessary to support environments that do not support dynamic import() in CommonJS modules like old Node.js versions.
Default
ts
true