Skip to content

Tracking issue for ESM migration #1201

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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