-
Notifications
You must be signed in to change notification settings - Fork 973
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from steveluscher/polyfill-node-apis-for-webp…
…ack-5 Polyfill Node APIs for compatibility with Webpack 5 and Create React App 5
- Loading branch information
Showing
7 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import './polyfills/index'; | ||
|
||
import type Transport from '@ledgerhq/hw-transport'; | ||
import { | ||
Adapter, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Buffer } from 'buffer'; | ||
|
||
if (typeof window !== 'undefined' && window.Buffer === undefined) { | ||
(window as any).Buffer = Buffer; | ||
} | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict'; | ||
|
||
import './Buffer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5348,9 +5348,9 @@ [email protected], assert-plus@^1.0.0: | |
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" | ||
integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= | ||
|
||
[email protected], assert@^2.0.0: | ||
[email protected], assert@^2.0.0, "assert@npm:assert@^2.0.0": | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/assert/-/assert-2.0.0.tgz#95fc1c616d48713510680f2eaf2d10dd22e02d32" | ||
resolved "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz#95fc1c616d48713510680f2eaf2d10dd22e02d32" | ||
integrity sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A== | ||
dependencies: | ||
es6-object-assign "^1.1.0" | ||
|
@@ -5672,6 +5672,11 @@ base-x@^3.0.2, base-x@^3.0.6, base-x@^3.0.8: | |
dependencies: | ||
safe-buffer "^5.0.1" | ||
|
||
[email protected]: | ||
version "0.0.8" | ||
resolved "https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz#1101e9544f4a76b1bc3b26d452ca96d7a35e7978" | ||
integrity sha1-EQHpVE9KdrG8OybUUsqW16NeeXg= | ||
|
||
base64-js@^1.0.2, base64-js@^1.2.0, base64-js@^1.3.1: | ||
version "1.5.1" | ||
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" | ||
|
@@ -6040,6 +6045,13 @@ buffer@^6.0.3, buffer@~6.0.3: | |
base64-js "^1.3.1" | ||
ieee754 "^1.2.1" | ||
|
||
"buffer@npm:buffer-browserify@^0.2.5": | ||
version "0.2.5" | ||
resolved "https://registry.npmjs.org/buffer-browserify/-/buffer-browserify-0.2.5.tgz#29c739d6a4e247b539abc0ada073612002163a21" | ||
integrity sha1-Kcc51qTiR7U5q8CtoHNhIAIWOiE= | ||
dependencies: | ||
base64-js "0.0.8" | ||
|
||
bufferutil@^4.0.1: | ||
version "4.0.6" | ||
resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.6.tgz#ebd6c67c7922a0e902f053e5d8be5ec850e48433" | ||
|
@@ -16318,6 +16330,14 @@ stream-parser@^0.3.1: | |
dependencies: | ||
debug "2" | ||
|
||
"stream@npm:stream-browserify@^3.0.0": | ||
version "3.0.0" | ||
resolved "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz#22b0a2850cdf6503e73085da1fc7b7d0c2122f2f" | ||
integrity sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA== | ||
dependencies: | ||
inherits "~2.0.4" | ||
readable-stream "^3.5.0" | ||
|
||
strict-uri-encode@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" | ||
|