Replies: 1 comment 1 reply
-
@KokoDoko I'll need to look into esm a bit more, our current esm support isn't the best and is still a little experimental unfortunately. I'll make an issue to look into improving the ESM type story. Issue #2367 @kamranayub Do you have any ideas around ESM and types? @KokoDoko What tools are you using with your esm setup so I can reproduce your environment? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am importing the excalibur library as a native .esm module from https://esm.sh/excalibur. In my code I use
import
like thisThis works fine, but I don't get the type information that is included when you use the
node_modules
folder. I have tried extractingindex.d.ts
from there, but it links to other files innode_modules
Is there a way to get type information without installing the entire
node_modules
folder? It seems a bit overkill?Beta Was this translation helpful? Give feedback.
All reactions