Skip to content

Use module: node12 in tsconfig.json; supports not transpiling import() / dynamic import for CommonJS code #256

@typhonrt

Description

@typhonrt

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 to tsconfig.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ESMRelated to ESM supportenhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions