wrangler-legacy icon indicating copy to clipboard operation
wrangler-legacy copied to clipboard

Indicate where "Buffer" is undefined inside of node_modules

Open vedantroy opened this issue 3 years ago • 0 comments

💡 Feature request

Describe the feature

A clear and concise description of the feature. What problem does it solve for you?

Cloudflare workers will throw errors about buffer being undefined. That makes sense since the workers env doesn't support buffer, but I'd like to know in which node_module my app is requiring buffer is being used. This would make it significantly easier to debug.

Describe the alternatives

Are there any alternatives to solving this problem? If so, what was your experience with them?

Manually searching through node_modules. Takes forever.

Also throw error if config file is missing.

vedantroy avatar Apr 28 '22 07:04 vedantroy