Local Modal Resolution without file extensions #4722
jonahallibone
started this conversation in
Ideas
Replies: 2 comments
-
I'm currently trying to do the same thing, maybe a custom plugin to do something like this ? It would be great
Btw, I'm curring doing this as a workaround |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm looking for the same thing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know using bundlers (micro-bundle, babel, etc) it's possible to import local ESModules without needing to include file extensions. Specifically, im looking to replicate the import behavior I'm used to in React projects with TypeScript, but on the Node side.
Right now in my node app with TS is this
import { addParams } from "./utils/params.js
I'm looking to be able to have
import { addParams } from "./utils/params
Is this possible with the current configuration settings, or would this need to be a feature (and would it even be valid as I know the Node spec specifically calls for URL-like imports, and TS follows the lead on this).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions