File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "description" : " Monitor if a component is inside the viewport, using IntersectionObserver API" ,
55 "source" : " ./src/index.tsx" ,
66 "main" : " ./dist/react-intersection-observer.js" ,
7- "module" : " ./dist/react-intersection-observer.mjs" ,
7+ "module" : " ./dist/react-intersection-observer.esm.js" ,
8+ "unpkg" : " ./dist/react-intersection-observer.umd.js" ,
9+ "types" : " ./dist/index.d.ts" ,
810 "exports" : {
9- "./test-utils" : " ./test-utils.js" ,
11+ "./test-utils" : " ./dist/ test-utils.js" ,
1012 "." : {
11- "require" : " ./react-intersection-observer.js" ,
12- "default" : " ./react-intersection-observer.modern.mjs"
13+ "require" : " ./dist/ react-intersection-observer.js" ,
14+ "default" : " ./dist/ react-intersection-observer.modern.mjs"
1315 }
1416 },
15- "unpkg" : " ./dist/react-intersection-observer.umd.js" ,
16- "typings" : " ./dist/index.d.ts" ,
1717 "author" : " Daniel Schmidt" ,
1818 "sideEffects" : false ,
1919 "repository" : {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ const fields = [
3636 'exports' ,
3737 'esmodule' ,
3838 'exports' ,
39+ 'types' ,
3940 'typings' ,
4041] ;
4142fields . forEach ( ( key ) => {
You can’t perform that action at this time.
0 commit comments