esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Alias option is not compatible with bundle

Open lucacasonato opened this issue 4 years ago • 1 comments

import { useSWR } from 'https://esm.sh/swr?alias=react:preact/compat&bundle'

Results in an error:

esbuild: Could not resolve \"react\" (mark it as external to exclude it from the bundle)

lucacasonato avatar Sep 24 '21 16:09 lucacasonato

@ije bump, this issue still occurs on esm.sh v122. Seems like an important bug btw.

renhiyama avatar May 19 '23 17:05 renhiyama