checkup
checkup copied to clipboard
Tracking issue for ESM migration
Migration steps:
-
[x]
tsconfig.json
- [x]
compilerOptions.module
should be set tonode12
ornodenext
(to enable top-levelasync
/await
)
- [x]
-
[x]
package.json
- [x] All packages need to have
type
set tomodule
- [ ] All packages should declare a correct
exports
property - [ ] All dependencies should be updated to their esm variants (with some caveats)
- [x] All packages need to have
-
[x]
ts
files- [x] All relative imports should have file extensions (.js)
- [x] all
require
statements should be removed in favor ofimport()
orrequire
viacreateRequire
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
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.