checkup icon indicating copy to clipboard operation
checkup copied to clipboard

Tracking issue for ESM migration

Open scalvert opened this issue 2 years ago • 1 comments

Migration steps:

  • [x] tsconfig.json

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

    • [x] 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)
  • [x] ts files

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

Reference documentation:

  • https://2ality.com/2021/06/typescript-esm-nodejs.html
  • https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#ecmascript-module-support-in-node-js

Reference issues:

  • #1035
  • #1158

scalvert avatar May 08 '22 15:05 scalvert

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.

elidupuis avatar Oct 20 '22 15:10 elidupuis