File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- import { compute } from '../dist/index.js '
1
+ import { compute } from '../dist/index.mjs '
2
2
window . computeScrollIntoView = compute
3
3
4
4
window . mapActions = ( item ) => ( {
Original file line number Diff line number Diff line change 20
20
"license" : " MIT" ,
21
21
"author" : " Cody Olsen" ,
22
22
"sideEffects" : false ,
23
- "type" : " module " ,
23
+ "type" : " commonjs " ,
24
24
"exports" : {
25
25
"." : {
26
26
"types" : " ./dist/index.d.ts" ,
27
27
"source" : " ./src/index.ts" ,
28
- "import " : " ./dist/index.js" ,
29
- "require " : " ./dist/index.cjs " ,
28
+ "require " : " ./dist/index.js" ,
29
+ "import " : " ./dist/index.mjs " ,
30
30
"default" : " ./dist/index.js"
31
31
},
32
32
"./package.json" : " ./package.json"
33
33
},
34
- "main" : " ./dist/index.cjs" ,
35
- "module" : " ./dist/index.js" ,
34
+ "source" : " ./src/index.ts" ,
35
+ "main" : " ./dist/index.js" ,
36
+ "module" : " ./dist/index.mjs" ,
36
37
"typings" : " ./dist/index.d.ts" ,
37
38
"files" : [
38
39
" dist" ,
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"target" : " esnext" ,
4
4
"module" : " esnext" ,
5
- "moduleResolution" : " node " ,
5
+ "moduleResolution" : " nodenext " ,
6
6
"declaration" : true ,
7
7
"rootDir" : " src" ,
8
8
"outDir" : " dist" ,
13
13
"skipLibCheck" : true ,
14
14
"noUnusedLocals" : true ,
15
15
"noUnusedParameters" : true ,
16
+ "esModuleInterop" : true ,
16
17
"strict" : true ,
17
18
"lib" : [" dom" , " dom.iterable" , " esnext" ]
18
19
},
You can’t perform that action at this time.
0 commit comments