aws-mobile-appsync-sdk-js icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-js copied to clipboard

Buffer is now only available as a polyfill on the new vite builds. Module "buffer" has been externalized for browser compatibility

Open jpengelbrecht opened this issue 2 years ago • 1 comments

Basically this means that this module will not work out of the box for any new builds as we need to add buffer to polyfills then the link it to the window object manually for this module to now work.

Ideally I would be awesome if this module could import buffer as a dependancy. so npm install buffer and use it from an import it instead of just calling Buffer as an internal module.

jpengelbrecht avatar Aug 17 '23 08:08 jpengelbrecht

made a fix here https://github.com/awslabs/aws-mobile-appsync-sdk-js/pull/749

jpengelbrecht avatar Aug 17 '23 09:08 jpengelbrecht