Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

2.6.0 Release polyfill guide #22

@xzilja

Description

@xzilja

Summary

Summary

2.6.0 removed polyfills as per release notes in https://github.com/WalletConnect/modal/releases/tag/2.6.0

If you happen to use something that requires these (usually in our cdn bundles), you can reference our previous implementation to see how this is done below. Make sure to polyfill before you import modal packages.

import { Buffer } from 'buffer'

if (typeof window !== 'undefined') {
  if (!window.Buffer) {
    window.Buffer = Buffer
  }
  if (!window.global) {
    window.global = window
  }
  if (!window.process) {
    window.process = { env: {} }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions