Skip to content

Commit eac86d2

Browse files
OliverJAshthebuilder
authored andcommitted
Remove polyfill, allow consumers to choose
Fixes #9
1 parent e4202d6 commit eac86d2

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
]
5757
},
5858
"dependencies": {
59-
"babel-plugin-transform-es2015-modules-commonjs": "6.24.1",
60-
"intersection-observer": "^0.2.1"
59+
"babel-plugin-transform-es2015-modules-commonjs": "6.24.1"
6160
},
6261
"peerDependencies": {
6362
"prop-types": "^15.5.10",

src/intersection.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
if (global.window && !process.env.SERVER) {
2-
// eslint-disable-next-line global-require
3-
require('intersection-observer')
4-
}
5-
61
const INSTANCE_MAP = new Map()
72
const OBSERVER_MAP = new Map()
83

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,10 +3138,6 @@ interpret@^1.0.0:
31383138
version "1.0.3"
31393139
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90"
31403140

3141-
intersection-observer@^0.2.1:
3142-
version "0.2.1"
3143-
resolved "https://registry.yarnpkg.com/intersection-observer/-/intersection-observer-0.2.1.tgz#cb55175f4eebef6436d957a7d1774d39a9248e5e"
3144-
31453141
invariant@2.x.x, invariant@^2.2.0, invariant@^2.2.2:
31463142
version "2.2.2"
31473143
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"

0 commit comments

Comments
 (0)