esm.sh
esm.sh copied to clipboard
Alias option is not compatible with bundle
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)
@ije bump, this issue still occurs on esm.sh v122. Seems like an important bug btw.