#How Do I Have Custom module prefix
9 messages · Page 1 of 1 (latest)
have you tried import maps
I've had a hard time with import maps is it just a Json file with like imports and you put the name and where it's located
And also is a deno config almost the same as regular typescript
Is that a question? 😅
You could do something like```json
{
"imports": {
"PLAYER/": "./player/",
"PLAYER": "./player/"
}
}
for the import map and```ts
import { ver } from "PLAYER/api.ts"
console.log(ver)
```in your main.ts
I actually have no idea how regular typescript configs look like, because I only use deno and almost never have to touch a config file except for maybe formatting options.
But have a look at https://deno.land/[email protected]/getting_started/configuration_file to see more about deno config