Removing file extensions on import
Is there a deno.json configuration to make so that the file extensions are not needed when importing stuff?
Deno should have enough context when importing files (unless they have the same name), so it makes sense to me
7 Replies
you can use the
--unstable-sloppy-imports
flag; we dont recommend to do this unless really needed (ie moving over a node project)meh, I just generated a the project
.tsx?
it is then
wait, why is that unstable?because we want people to avoid using it
what, why?
is there any major problems on it?
you can read a bit more on it here: https://docs.deno.com/runtime/reference/cli/unstable_flags/#--unstable-sloppy-imports
still a bit lost on it, but it's something you just accept, ig
It's just bad practice
and some unnecessary overhead