Skip to content

Commit

Permalink
Add Promise.withResolvers polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Apr 30, 2024
1 parent 662c3c1 commit 611a986
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-pdf/package.json
Expand Up @@ -72,6 +72,7 @@
"@types/react": "*",
"@types/warning": "^3.0.0",
"canvas": "^2.11.2",
"core-js": "^3.37.0",
"cpy-cli": "^5.0.0",
"eslint": "^8.56.0",
"eslint-config-wojtekmaj": "^1.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/react-pdf/vitest.setup.ts
@@ -1,6 +1,7 @@
import { afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import '@testing-library/jest-dom/vitest';
import 'core-js/proposals/promise-with-resolvers';

afterEach(() => {
cleanup();
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Expand Up @@ -1813,6 +1813,13 @@ __metadata:
languageName: node
linkType: hard

"core-js@npm:^3.37.0":
version: 3.37.0
resolution: "core-js@npm:3.37.0"
checksum: 10c0/7e00331f346318ca3f595c08ce9e74ddae744715aef137486c1399163afd79792fb94c3161280863adfdc3e30f8026912d56bd3036f93cacfc689d33e185f2ee
languageName: node
linkType: hard

"cp-file@npm:^10.0.0":
version: 10.0.0
resolution: "cp-file@npm:10.0.0"
Expand Down Expand Up @@ -4513,6 +4520,7 @@ __metadata:
"@types/warning": "npm:^3.0.0"
canvas: "npm:^2.11.2"
clsx: "npm:^2.0.0"
core-js: "npm:^3.37.0"
cpy-cli: "npm:^5.0.0"
dequal: "npm:^2.0.3"
eslint: "npm:^8.56.0"
Expand Down

0 comments on commit 611a986

Please sign in to comment.