Skip to content

Commit 6aa79f7

Browse files
authored
Add exports.types to tsconfig.json
This fixes the import error when using "moduleResolution": "bundler" (now the default in Vue)
1 parent f0e84da commit 6aa79f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"module": "./dist/vue-input-autowidth.es.js",
1010
"exports": {
1111
".": {
12+
"types": "./dist/index.d.ts",
1213
"import": "./dist/vue-input-autowidth.es.js",
1314
"require": "./dist/vue-input-autowidth.umd.js"
1415
}

0 commit comments

Comments
 (0)