boom icon indicating copy to clipboard operation
boom copied to clipboard

[Feature] Add support for the edge runtime

Open jferrettiboke opened this issue 1 year ago • 0 comments

Support plan

  • is this issue currently blocking your project? (yes/no): no
  • is this issue affecting a production system? (yes/no): no

Context

  • node version: n/a
  • module version: n/a
  • environment (e.g. node, browser, native): Edge
  • used with (e.g. hapi application, another framework, standalone, ...): Next.js API Routes
  • any other relevant information: n/a

What problem are you trying to solve?

This library only supports the Node.js runtime. Is there any chance to make it compatible with the edge runtime as well? This would be handy for monorepo projects sharing code between different runtimes. The edge runtime does not support Node.js Buffer module.

If the answer is positive, it would be great to reduce the size of this package drastically. The @hapi/hoek dependency is taking ~70% of the size. https://bundlephobia.com/package/@hapi/[email protected]

Do you have a new or modified API suggestion to solve the problem?

n/a

jferrettiboke avatar Dec 26 '22 02:12 jferrettiboke