browserify-lite icon indicating copy to clipboard operation
browserify-lite copied to clipboard

Spurious "Cannot find module" exception

Open cmeerw opened this issue 3 years ago • 0 comments

Generated code has:

if (!id) throw new Error("Cannot find module " + alias);

but this fails if id happens to be 0 (which is valid). I guess the code should instead check for id === undefined instead?

cmeerw avatar Jun 06 '21 11:06 cmeerw