Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking issue for ESM migration #1201

Open
7 of 9 tasks
scalvert opened this issue May 8, 2022 · 1 comment
Open
7 of 9 tasks

Tracking issue for ESM migration #1201

scalvert opened this issue May 8, 2022 · 1 comment
Labels
Projects
Milestone

Comments

@scalvert
Copy link
Contributor

scalvert commented May 8, 2022

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:

@scalvert scalvert added this to the v2.0 milestone May 8, 2022
@elidupuis
Copy link

Hi 👋

I'm just curious if there are any updates on this ESM migration and compatibility with ember-template-lint 4.0. Is there anything we can do to help out?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
v2.0
Awaiting triage
Development

No branches or pull requests

2 participants