We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff7289f commit 00faf77Copy full SHA for 00faf77
1 file changed
package.json
@@ -4,7 +4,7 @@
4
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",
5
"source": "./src/index.tsx",
6
"main": "./dist/index.js",
7
- "module": "./dist/index.mjs",
+ "module": "./dist/esm/index.js",
8
"types": "./dist/index.d.ts",
9
"exports": {
10
"./test-utils": {
@@ -28,6 +28,7 @@
28
"prebuild": "rm -rf dist lib",
29
"build": "run-s build:*",
30
"build:bundle": "tsup src/index.tsx",
31
+ "build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean",
32
"build:utils": "tsc -p tsconfig.test.json",
33
"build:copy": "node scripts/build-copy.js",
34
"postbuild": "size-limit",
0 commit comments