DenoDDeno
Powered by
caseybaggzC
Deno•4w ago•
3 replies
caseybaggz

import_map support

✍️VS Code / LSP
Hello! I have an import map setup and I'm noticing it's only working on the root level in my Zed IDE. But, as soon as I am working in the
src
src
it's always relative paths and not aliasing the
~/
~/
.

Import Map:
{
  "imports": {
    "~": "./src",
    "~/": "./src/",
    "styled-system/css": "./styled-system/css/index.mjs",
    "styled-system/jsx": "./styled-system/jsx/index.mjs",
    "styled-system/patterns": "./styled-system/patterns/index.mjs",
    "styled-system/recipes": "./styled-system/recipes/index.mjs",
    "styled-system/tokens": "./styled-system/tokens/index.mjs",
    "styled-system/types": "./styled-system/types/index.mjs"
  }
}
{
  "imports": {
    "~": "./src",
    "~/": "./src/",
    "styled-system/css": "./styled-system/css/index.mjs",
    "styled-system/jsx": "./styled-system/jsx/index.mjs",
    "styled-system/patterns": "./styled-system/patterns/index.mjs",
    "styled-system/recipes": "./styled-system/recipes/index.mjs",
    "styled-system/tokens": "./styled-system/tokens/index.mjs",
    "styled-system/types": "./styled-system/types/index.mjs"
  }
}


I'm new to Deno so just trying to understand the why? I'm guessing it want's me to define literally every single path I want to alias?

Hoping not but maybe I'll be enlightened in this thread?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Import map
SpixySSpixy / help
3y ago
import_map.json not working
MqxMMqx / help
2y ago
How to import relative JSR module from import map
cdaringeCcdaringe / help
16mo ago