Skip to content

Commit

Permalink
fix(gatsby-legacy-polyfills): fix eventTarget polyfill for IE11 (#33731)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Oct 29, 2021
1 parent 5e30fc2 commit dbea5f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/gatsby-legacy-polyfills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"core-js": "3.9.0",
"cpy-cli": "^3.1.1",
"cross-env": "^7.0.3",
"event-target-polyfill": "^0.0.3",
"execa": "^5.1.1",
"fs-extra": "^10.0.0",
"microbundle": "^0.13.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-legacy-polyfills/src/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ codegen`
module.exports = imports.map(file => 'import "core-js/' + file + '"').join("\\n")
`

import "event-target-polyfill"
import "yet-another-abortcontroller-polyfill"
import "whatwg-fetch"
import "url-polyfill"
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10682,6 +10682,11 @@ event-stream@=3.3.4:
stream-combiner "~0.0.4"
through "~2.3.1"

event-target-polyfill@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/event-target-polyfill/-/event-target-polyfill-0.0.3.tgz#ed373295f3b257774b5d75afb2599331d9f3406c"
integrity sha512-ZMc6UuvmbinrCk4RzGyVmRyIsAyxMRlp4CqSrcQRO8Dy0A9ldbiRy5kdtBj4OtP7EClGdqGfIqo9JmOClMsGLQ==

event-target-shim@^5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789"
Expand Down

0 comments on commit dbea5f0

Please sign in to comment.