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 SyntaxError: Identifier 'mod' has already been declared #119

Open JorisBlanken opened 1 year ago

JorisBlanken commented 1 year ago

For some reason the module I'm bundling generates a duplicate const mod throwing the error Uncaught SyntaxError: Identifier 'mod' has already been declared.

The module I'm bundling is https://esm.sh/@react-three/drei@9.70.0:

import { bundle } from 'https://deno.land/x/emit@0.22.0/mod.ts';

const { code } = await bundle(new URL("https://esm.sh/@react-three/drei@9.70.0"));