denoland / deno_emit

Transpile and bundle JavaScript and TypeScript under Deno and Deno Deploy
https://jsr.io/@deno/emit
MIT License
223 stars 23 forks source link

Uncaught ReferenceError: Deno is not defined #125

Open hemedani opened 1 year ago

hemedani commented 1 year ago

when I bundle some files it includes :

new Deno.errors.AlreadyExists("dest already exists.");

and browser does not support deno

yacinehmito commented 1 year ago

Hi! Thank you for filing the issue.

As you have experienced, deno_emit is meant to be used to bundle code that will run with Deno. If you want to bundle code for the browser, I suggest you use something like esbuild, vite, turbopack, parcel (or others; there are countless options).

You can close the issue.