Subscribe on changes!
avatar
Dec 18th 2021

Version

3.2.26

Reproduction link

https://cdn.jsdelivr.net/npm/vue@3.2.26/dist/vue.d.ts

Steps to reproduce

Go to https://cdn.jsdelivr.net/npm/vue@next/dist/ download vue.d.ts and try to use them in your project (no package.json, no npm, no node_modules).

What is expected?

vue.d.ts containing ALL types.

What is actually happening?

vue.d.ts contains only REFERENCES to the types:

import { CompilerOptions } from '@vue/compiler-dom';
import { RenderFunction } from '@vue/runtime-dom';


Same for server-renderer.d.ts, compiler-dom.d.ts, ...

These can not be consumed without a local installation of npm with those components installed.

Please produce bundled files of those vue.d.ts, server-renderer.d.ts, compiler-dom.d.ts, ... in dist/ where all those references are contained in the file itself without external references.

avatar
Mar 15th 2023

What are the use cases for a single bundled .d.ts file?