Does a fresh app require import_map.json
to be at the root of its directory?
#360
-
Hola! I'm working in a medium-size deno project that has a monorepo-like structure like this: .
├── modules/
│ ├── server/
│ │ ├── a.ts
│ │ ├── b.ts
│ │ └── mod.ts
│ ├── library-one/
│ │ └── mod.ts
│ └── library-two/
│ └── mod.ts
├── deno.jsonc
└── import_map.json In the root-level To do so, I:
I assumed this would work, but running
Restoring the original It's not that big of deal for me, but before starting to investigate, I wanted to ask here if there's any reason Oh, and btw, great work with Fresh (and Deno!) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
not really an experienced deno user so take this with a grain of salt. from the code i read and what i played around with, i noticed that fresh itself grabs the here is the line where I noticed this. |
Beta Was this translation helpful? Give feedback.
-
For anyone coming across this discussion: Since Deno |
Beta Was this translation helpful? Give feedback.
For anyone coming across this discussion: Since Deno
1.30.0
thedeno.json
file supports animports
field which is basically an inline import map. See the documentation for that here https://deno.land/[email protected]/getting_started/configuration_file#imports-and-scopes