Want to resolve files without adding each time index.tsx at the end #2066
Replies: 2 comments 1 reply
-
|
You can add an entry for that in the import map inside {
"imports": {
"hoc/withStyles": "hoc/withStyles.index.tsx"
}
}That said it sounds more like you want to apply this to every file for which the import map workaround certainly is not sufficient. The automatic mapping to |
Beta Was this translation helpful? Give feedback.
-
|
I know this is not strictly what you asked, but you can skip the folder/index.ts convention in favour of just the file.
Deno does not treat |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
import { withStyles } from 'hoc/withStyles/index.tsx';Above you can see one of my general imports, I want to make it shorter and make it be resolvable by writting :
import { withStyles } from 'hoc/withStyles';is it possible to configure ?
Beta Was this translation helpful? Give feedback.
All reactions