build: add types conditioanl exports for TS 4.5 nodenext mode

This commit is contained in:
Evan You 2021-11-12 10:34:33 +08:00
parent a8ab9e9311
commit d19cfc0503

View File

@ -21,7 +21,8 @@
"node": "./index.mjs", "node": "./index.mjs",
"default": "./dist/vue.runtime.esm-bundler.js" "default": "./dist/vue.runtime.esm-bundler.js"
}, },
"require": "./index.js" "require": "./index.js",
"types": "./dist/vue.d.ts"
}, },
"./server-renderer": { "./server-renderer": {
"import": "./server-renderer/index.mjs", "import": "./server-renderer/index.mjs",