Skip to content

Commit

Permalink
Merge pull request #568 from thebuilder/fix/revert-to-esm-js
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder authored Jun 23, 2022
2 parents e59d9c2 + 3bb4639 commit 571c948
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",
"source": "./src/index.tsx",
"main": "./dist/react-intersection-observer.js",
"module": "./dist/react-intersection-observer.mjs",
"module": "./dist/react-intersection-observer.esm.js",
"unpkg": "./dist/react-intersection-observer.umd.js",
"types": "./dist/index.d.ts",
"exports": {
"./test-utils": "./test-utils.js",
"./test-utils": "./dist/test-utils.js",
".": {
"require": "./react-intersection-observer.js",
"default": "./react-intersection-observer.modern.mjs"
"require": "./dist/react-intersection-observer.js",
"default": "./dist/react-intersection-observer.modern.mjs"
}
},
"unpkg": "./dist/react-intersection-observer.umd.js",
"typings": "./dist/index.d.ts",
"author": "Daniel Schmidt",
"sideEffects": false,
"repository": {
Expand Down Expand Up @@ -96,19 +96,19 @@
},
"size-limit": [
{
"path": "dist/react-intersection-observer.mjs",
"path": "dist/react-intersection-observer.esm.js",
"name": "InView",
"import": "{ InView }",
"limit": "1.8 kB"
},
{
"path": "dist/react-intersection-observer.mjs",
"path": "dist/react-intersection-observer.esm.js",
"name": "useInView",
"import": "{ useInView }",
"limit": "1.3 kB"
},
{
"path": "dist/react-intersection-observer.mjs",
"path": "dist/react-intersection-observer.esm.js",
"name": "observe",
"import": "{ observe }",
"limit": "1 kB"
Expand Down
1 change: 1 addition & 0 deletions scripts/build-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const fields = [
'exports',
'esmodule',
'exports',
'types',
'typings',
];
fields.forEach((key) => {
Expand Down

1 comment on commit 571c948

@vercel
Copy link

@vercel vercel bot commented on 571c948 Jun 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.