Skip to content

Commit

Permalink
Add exports.types to tsconfig.json (#84)
Browse files Browse the repository at this point in the history
This fixes the import error when using "moduleResolution": "bundler" (now the default in Vue)
  • Loading branch information
p-rivero committed May 31, 2023
1 parent 3cf6265 commit 201bff6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"module": "./dist/sortablejs-vue3.es.js",
"exports": {
".": {
"types": "./dist/types/main.d.ts",
"import": "./dist/sortablejs-vue3.es.js",
"require": "./dist/sortablejs-vue3.umd.js"
}
Expand Down

1 comment on commit 201bff6

@vercel
Copy link

@vercel vercel bot commented on 201bff6 May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.