Skip to content

Commit 1d57298

Browse files
authored
fix: revert package.json and utils.js #882 (#891)
* revert package.json #882 * revert utils.js
1 parent ecb0684 commit 1d57298

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

integration/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { compute } from '../dist/index.mjs'
1+
import { compute } from '../dist/index.js'
22
window.computeScrollIntoView = compute
33

44
window.mapActions = (item) => ({

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020
"license": "MIT",
2121
"author": "Cody Olsen",
2222
"sideEffects": false,
23-
"type": "commonjs",
23+
"type": "module",
2424
"exports": {
2525
".": {
2626
"types": "./dist/index.d.ts",
2727
"source": "./src/index.ts",
28-
"require": "./dist/index.js",
29-
"import": "./dist/index.mjs",
28+
"require": "./dist/index.cjs",
29+
"import": "./dist/index.js",
3030
"default": "./dist/index.js"
3131
},
3232
"./package.json": "./package.json"
3333
},
34-
"main": "./dist/index.js",
35-
"module": "./dist/index.mjs",
3634
"source": "./src/index.ts",
35+
"main": "./dist/index.cjs",
36+
"module": "./dist/index.js",
3737
"typings": "./dist/index.d.ts",
3838
"files": [
3939
"dist",

0 commit comments

Comments
 (0)