Skip to content

Commit 201bff6

Browse files
authored
Add exports.types to tsconfig.json (#84)
This fixes the import error when using "moduleResolution": "bundler" (now the default in Vue)
1 parent 3cf6265 commit 201bff6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"module": "./dist/sortablejs-vue3.es.js",
3131
"exports": {
3232
".": {
33+
"types": "./dist/types/main.d.ts",
3334
"import": "./dist/sortablejs-vue3.es.js",
3435
"require": "./dist/sortablejs-vue3.umd.js"
3536
}

0 commit comments

Comments
 (0)