|
2 | 2 | "name": "react-intersection-observer", |
3 | 3 | "version": "8.26.1", |
4 | 4 | "description": "Monitor if a component is inside the viewport, using IntersectionObserver API", |
5 | | - "source": "src/index.tsx", |
6 | | - "main": "dist/react-intersection-observer.js", |
7 | | - "module": "dist/react-intersection-observer.m.js", |
8 | | - "unpkg": "dist/react-intersection-observer.umd.js", |
9 | | - "typings": "dist/index.d.ts", |
| 5 | + "source": "./src/index.tsx", |
| 6 | + "main": "./dist/react-intersection-observer.js", |
| 7 | + "module": "./dist/react-intersection-observer.mjs", |
| 8 | + "exports": { |
| 9 | + "require": "./dist/react-intersection-observer.js", |
| 10 | + "default": "./dist/react-intersection-observer.modern.mjs" |
| 11 | + }, |
| 12 | + "unpkg": "./dist/react-intersection-observer.umd.js", |
| 13 | + "typings": "./dist/index.d.ts", |
10 | 14 | "author": "Daniel Schmidt", |
11 | 15 | "sideEffects": false, |
12 | 16 | "repository": { |
|
89 | 93 | }, |
90 | 94 | "size-limit": [ |
91 | 95 | { |
92 | | - "path": "dist/react-intersection-observer.m.js", |
| 96 | + "path": "dist/react-intersection-observer.mjs", |
93 | 97 | "name": "InView", |
94 | 98 | "import": "{ InView }", |
95 | 99 | "limit": "1.8 kB" |
96 | 100 | }, |
97 | 101 | { |
98 | | - "path": "dist/react-intersection-observer.m.js", |
| 102 | + "path": "dist/react-intersection-observer.mjs", |
99 | 103 | "name": "useInView", |
100 | 104 | "import": "{ useInView }", |
101 | 105 | "limit": "1.3 kB" |
102 | 106 | }, |
103 | 107 | { |
104 | | - "path": "dist/react-intersection-observer.m.js", |
| 108 | + "path": "dist/react-intersection-observer.mjs", |
105 | 109 | "name": "observe", |
106 | 110 | "import": "{ observe }", |
107 | 111 | "limit": "1 kB" |
|
0 commit comments