Skip to content

Commit 8d1fe2b

Browse files
committed
Set "type": "module" to package.json
1 parent b9d164b commit 8d1fe2b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22
"name": "virtua",
33
"version": "0.30.4",
44
"description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue and Solid.",
5-
"main": "lib/index.js",
6-
"module": "lib/index.mjs",
5+
"main": "lib/index.cjs",
6+
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
8+
"type": "module",
89
"exports": {
910
"./package.json": "./package.json",
1011
".": {
1112
"types": "./lib/index.d.ts",
12-
"import": "./lib/index.mjs",
13-
"default": "./lib/index.js"
13+
"import": "./lib/index.js",
14+
"default": "./lib/index.cjs"
1415
},
1516
"./vue": {
1617
"types": "./lib/vue/index.d.ts",
17-
"import": "./lib/vue/index.mjs",
18-
"default": "./lib/vue/index.js"
18+
"import": "./lib/vue/index.js",
19+
"default": "./lib/vue/index.cjs"
1920
},
2021
"./solid": {
2122
"types": "./lib/solid/index.d.ts",
22-
"import": "./lib/solid/index.mjs",
23-
"default": "./lib/solid/index.js"
23+
"import": "./lib/solid/index.js",
24+
"default": "./lib/solid/index.cjs"
2425
}
2526
},
2627
"files": [

rollup.config.mjs rollup.config.js

File renamed without changes.

0 commit comments

Comments
 (0)