Skip to content

Commit

Permalink
Fixed web-streams-polyfills using a polyfill instead of a ponyfill (b…
Browse files Browse the repository at this point in the history
…reak a test).
  • Loading branch information
Chriztiaan committed Jul 17, 2024
1 parent 7d8ab8c commit c84ac1c
Show file tree
Hide file tree
Showing 3 changed files with 522 additions and 526 deletions.
2 changes: 1 addition & 1 deletion packages/common/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default (commandLineArgs) => {
commonjs({}),
inject({
Buffer: ['buffer', 'Buffer'],
ReadableStream: ['web-streams-polyfill', 'ReadableStream'],
ReadableStream: ['web-streams-polyfill/ponyfill/es2018', 'ReadableStream'],
// Used by can-ndjson-stream
TextDecoder: ['text-encoding', 'TextDecoder']
})
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default (commandLineArgs) => {
commonjs({}),
inject({
Buffer: ['@craftzdog/react-native-buffer', 'Buffer'],
ReadableStream: ['web-streams-polyfill', 'ReadableStream'],
ReadableStream: ['web-streams-polyfill/ponyfill/es2018', 'ReadableStream'],
TextEncoder: ['text-encoding', 'TextEncoder'],
TextDecoder: ['text-encoding', 'TextDecoder']
}),
Expand Down
Loading

0 comments on commit c84ac1c

Please sign in to comment.