web-pen icon indicating copy to clipboard operation
web-pen copied to clipboard

Module resolution seems to be broken

Open sidwebworks opened this issue 3 years ago • 1 comments

Recently someone was trying out web-pen and they tried importing zustand, which caused the bundler to error out.

I successfully reproduced the bug on my own machine as well, on further inspection it looks like web-pen fails to resolve dependencies for this package, https://github.com/pmndrs/zustand

Will have to dive deeper in this when I get time.

sidwebworks avatar Jun 22 '22 14:06 sidwebworks

Today when loading voby from skypack this issue came back. I suspect something is wrong with the regex pattern used in the resolver.

Anyways I plan to rewrite the resolver today which will be more compatible to the usual Node ecosystem with using package.json files

sidwebworks avatar Jun 23 '22 06:06 sidwebworks