Skip to content

Commit

Permalink
Merge pull request #554 from thebuilder/fix/upgrade-microbundle-output
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder authored Jun 2, 2022
2 parents b4a8e8f + 0f55aa2 commit 27b39e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "react-intersection-observer",
"version": "8.26.1",
"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.m.js",
"esmodule": "dist/react-intersection-observer.esm.js",
"unpkg": "dist/react-intersection-observer.umd.js",
"typings": "dist/index.d.ts",
"source": "./src/index.tsx",
"main": "./dist/react-intersection-observer.js",
"module": "./dist/react-intersection-observer.esm.js",
"exports": "./dist/react-intersection-observer.modern.js",
"unpkg": "./dist/react-intersection-observer.umd.js",
"typings": "./dist/index.d.ts",
"author": "Daniel Schmidt",
"sideEffects": false,
"repository": {
Expand Down Expand Up @@ -90,19 +90,19 @@
},
"size-limit": [
{
"path": "dist/react-intersection-observer.m.js",
"path": "dist/react-intersection-observer.esm.js",
"name": "InView",
"import": "{ InView }",
"limit": "1.8 kB"
},
{
"path": "dist/react-intersection-observer.m.js",
"path": "dist/react-intersection-observer.esm.js",
"name": "useInView",
"import": "{ useInView }",
"limit": "1.3 kB"
},
{
"path": "dist/react-intersection-observer.m.js",
"path": "dist/react-intersection-observer.esm.js",
"name": "observe",
"import": "{ observe }",
"limit": "1 kB"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ packageFieldsToRemove.forEach((field) => {
});

// Remove 'dist' from the files inside the 'dist' dir, after we move them
const fields = ['main', 'module', 'unpkg', 'esmodule', 'typings'];
const fields = ['main', 'module', 'unpkg', 'exports', 'typings'];
fields.forEach((key) => (pck[key] = pck[key].replace('dist/', '')));

fs.writeFileSync(
Expand Down

1 comment on commit 27b39e5

@vercel
Copy link

@vercel vercel bot commented on 27b39e5 Jun 2, 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.