[VS Code] Support Deno HTTP imports in config files
Author: adamgregCreated Aug 21, 2023Updated Sep 29, 2026
Labelsenhancementhelp wantedvscode
UnoCSS version
0.55.1
Describe the bug
The VS Code extension does not work with Deno if there is an ESM import in the config file.
For example, if I import presetUno from esm.sh, in the Runtime Status I see a message like Cannot find module 'https://esm.sh/@unocss/[email protected]' Require stack: - /workspace/uno.config.ts
It does not seem to make a difference whether I import from an absolute URL or using the import map.
Reproduction
Minimal Github repo for reproduction: https://github.com/adamgreg/unocss_vscode_extension
Alternatively, set up a Deno workspace, create a uno.config.ts file that includes an import (see below), and enable the extension.
import presetUno from "https://esm.sh/@unocss/[email protected]";
export default {
presets: [presetUno()]
}System Info
Deno 1.36.1, VS Code 1.81.1
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Source: unocss/unocss