vite-dts
vite-dts copied to clipboard
Blazing fast plugin that generates .d.ts modules for libraries
Howdy! I'm just trying out this plugin today, and I'm having a really hard time trying to understand what does the option in the plugin config do? 🤔
``` import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import dts from 'vite-dts'; import { resolve } from 'path'; import Icons from 'unplugin-icons/vite'; export default defineConfig({ plugins: [...
Incompatible with libraries using the following options in **tsconfig.json**... - `baseUrl` - `paths` - `esModuleInterop` (if not also enabled in the consuming project) Maybe more?
i have a package which uses ES modules, with `"type": "module",` in my `package.json`. if i remove that line, the build process completes successfully¹. however, if i keep it, it...
If you define a file in the `module` field which has a `.mjs` extension, this plugin currently overwrites it with the type definitions. With this change, it instead correctly writes...
I'm working on a project that bundles multiple libraries from the same package, but dts currently uses `main` and `module` exclusively for determining where to output files. This PR adds...
All i get is this  ```ts import { defineConfig } from "vite"; import dts from "vite-dts"; // https://vitejs.dev/config/ export default defineConfig({ build: { target: "esnext", sourcemap: true, minify: false,...
Building with Vite > 3.1.0 gives the following error: ``` error during build: TypeError: Cannot set properties of undefined (setting 'generateBundle') at configResolved (/.../vite-dts/dist/cjs/plugin.js:56:33) ``` Worked fine prior to 3.1.0...