is-where icon indicating copy to clipboard operation
is-where copied to clipboard

`isDeno` Doesn't work in Deno when imported from npm:is-where

Open jcbhmr opened this issue 2 years ago • 2 comments

image

I don't know if this is intended? 🤔

jcbhmr avatar Jun 03 '23 02:06 jcbhmr

Aha the isDeno function must be outdated. It's something I picked up from S.O. a while ago so it's possible that it breaks as Deno matures.

mesqueeb avatar Jun 03 '23 02:06 mesqueeb

I think you could solve this by using export/import conditions which are an out-of-band way to detect what platform you're running on/bundled for.

https://nodejs.org/api/packages.html#conditional-exports https://nodejs.org/api/packages.html#imports

jcbhmr avatar Jun 03 '23 03:06 jcbhmr