Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno support #1307

Open
aklinker1 opened this issue Dec 25, 2024 · 0 comments
Open

Deno support #1307

aklinker1 opened this issue Dec 25, 2024 · 0 comments
Labels

Comments

@aklinker1
Copy link
Collaborator

aklinker1 commented Dec 25, 2024

Feature Request

It is kinda possible to use WXT with Deno: wxt+deno.zip

However there are a few problems:

  1. package.json isn't found (because we use a deno.json) so the name/version can't be extracted automatically
  2. wxt build and wxt zip don't exit
  3. TSConfig doesn't exist, so we can't extend .wxt/tsconfig.json... Creating a tsconfig.json separate from the deno.json breaks deno run, so the only option is to reference .wxt/wxt.d.ts from another declaration file. This means all the import path aliases won't be recognized. You could manually add them to deno.json, but 🤷 I didn't for this example
  4. Postinstall script inside deno.json doesn't run after running deno i
  5. 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
  6. Look into potential issues around wxt.config.ts file typing: Added missing member used in UserManifest to define the manifest name. #1336 (comment)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant