xviz icon indicating copy to clipboard operation
xviz copied to clipboard

Fix Buffer undefined reference error

Open yongjun21 opened this issue 2 years ago • 1 comments

instanceof Buffer throws error on browser as instanceof undefined is a reference error.

This problem does not show up previously as Webpack injects a polyfill for Buffer. However other build tools like Vite or Rollup does not polyfill Buffer so throwing an uncaught error.

yongjun21 avatar Jul 06 '22 01:07 yongjun21

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 06 '22 01:07 CLAassistant