Deno support
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 564
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request
It is kinda possible to use WXT with Deno: wxt+deno.zip
However there are a few problems:
package.jsonisn't found (because we use adeno.json) so the name/version can't be extracted automaticallywxt buildandwxt zipdon't exit- TSConfig doesn't exist, so we can't extend
.wxt/tsconfig.json... Creating a tsconfig.json separate from thedeno.jsonbreaksdeno run, so the only option is to reference.wxt/wxt.d.tsfrom another declaration file. This means all the import path aliases won't be recognized. You could manually add them todeno.json, but 🤷 I didn't for this example - Postinstall script inside
deno.jsondoesn't run after runningdeno i - Need to look into JSR and downloading private packages from a repo during sources ZIP. Basically need to implement a deno package manager here: https://github.com/wxt-dev/wxt/tree/main/packages/wxt/src/core/package-managers
- Look into potential issues around
wxt.config.tsfile typing: https://github.com/wxt-dev/wxt/pull/1336#issuecomment-2576824175
These things kinda get in the way of the existing template setup and wxt init command. Similar to PNPM, we'll need to modify the files after downloading them for it to work with deno.
Is your feature request related to a bug?
N/A
What are the alternatives?
N/A
Additional context
I've been using deno lately and it's very good. Want to make sure WXT supports it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the package-manager implementations in packages/wxt/src/core/package-managers and reproduce the behavior using the linked wxt+deno.zip example. Trace the wxt build, wxt zip, and wxt init entry points and the existing template setup. Done means Deno projects handle metadata, command exit, typings and aliases, install hooks, and package downloads without breaking the existing setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno, typescript
- Domain
- build-system, cli, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100