Use module: node12
in tsconfig.json; supports not transpiling import() / dynamic import
for CommonJS code
#256
Labels
A most recent merged PR for Typescript now better supports Node 12. In particular there is no need for the "semi-hack" used in module-loader.ts.
You can see discussion here and the PR here. When the latest Typescript version is available w/ this PR I'll look into adding
module: node12
totsconfig.json
and verify that import dynamic works correctly with the Oclif core build and remove the workaround.A blog post about the Typescript 4.5 beta.
The text was updated successfully, but these errors were encountered: