@mtcute/core/client.js isn't resolved under module: esnext
#28
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
rfc
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: teidesu/mtcute#28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/subj. was reported in tg chat
To Reproduce
create a node.js project, put
"module": "esnext"
in tsconfig.json, try compiling this code:Expected behavior
works fine
Logs
n/a
Environment
Additional context
this happens because ts can't resolve
@mtcute/core/client.js
under esnext, because it ignoresexports
field in package.json:we should probably also generate the client.js/utils.js/etc. files at root dir based on our package.json exports in build script, but this is blocked by #27