vbenjs / vite-plugin-html

A vite plugin for processing html. It is developed based on lodash template
MIT License
601 stars 96 forks source link

Missing dependency on `@types/ejs` #147

Open marekdedic opened 9 months ago

marekdedic commented 9 months ago

Hi, this package (and its type definitions) refences ejs, but doesn't have @types/ejs as a dependency (which it should if its types import from ejs). This leads to errors such as:

node_modules/vite-plugin-html/dist/index.d.ts:2:38 - error TS7016: Could not find a declaration file for module 'ejs'. '/home/user/repo/node_modules/ejs/lib/ejs.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/ejs` if it exists or add a new declaration (.d.ts) file containing `declare module 'ejs';`

2 import { Options as Options$1 } from 'ejs';