Skip to content

Tracking issue for ESM migration #1201

@scalvert

Description

@scalvert

Migration steps:

  • tsconfig.json

    • compilerOptions.module should be set to node12 or nodenext (to enable top-level async/await)
  • package.json

    • All packages need to have type set to module
    • All packages should declare a correct exports property
    • All dependencies should be updated to their esm variants (with some caveats)
  • ts files

    • All relative imports should have file extensions (.js)
    • all require statements should be removed in favor of import() or require via createRequire

Reference documentation:

Reference issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions