File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " detect-element-overflow" ,
3
3
"version" : " 1.3.1" ,
4
4
"description" : " A function that tells you whether a given element is overflowing its container or not. Useful for creating dropdowns and tooltips." ,
5
- "main" : " dist/cjs/index.js" ,
6
- "module" : " dist/esm/index.js" ,
7
- "source" : " src/index.ts" ,
8
- "types" : " dist/cjs/index.d.ts" ,
5
+ "type" : " module" ,
9
6
"sideEffects" : false ,
7
+ "main" : " ./dist/cjs/index.js" ,
8
+ "module" : " ./dist/esm/index.js" ,
9
+ "source" : " ./src/index.ts" ,
10
+ "types" : " ./dist/cjs/index.d.ts" ,
11
+ "exports" : {
12
+ "import" : " ./dist/esm/index.js" ,
13
+ "require" : " ./dist/cjs/index.js"
14
+ },
10
15
"scripts" : {
11
16
"build" : " yarn build-esm && yarn build-cjs" ,
12
17
"build-esm" : " tsc --project tsconfig.build.json --outDir dist/esm --module esnext" ,
You can’t perform that action at this time.
0 commit comments