react-wrap-balancer icon indicating copy to clipboard operation
react-wrap-balancer copied to clipboard

ReferenceError: Can't find variable: process

Open karoun opened this issue 1 year ago • 0 comments

In browsers like older Safaris that don't support ResizeObserver, the console warning fails with Can't find variable: process.

I suspect this is because the relayout function is being converted to a string and/or the bundler doesn't compile out process.env.NODE_ENV in third-party dependencies.

Merging #36 may solve this issue because it avoids accessing process in the injected <script>.

karoun avatar Mar 29 '24 18:03 karoun