vps supports { "type": "module" } syntax, but telefunc does not yet. My issue is that telefunc generates package.json first, then vps, but vite warns me that it's already generated so it's skipped. Result: my package.json content is { "type": "commonjs" }, which is wrong.
Workaround
// Remove telefunc plugin for `package.json` file generation
const tel = telefunc().filter((p) => p.name !== 'telefunc:packageJsonFile');
Discussion
Easy fix would be to copy code from vps, but it's not really easy to maintain. Should we create a new repo under this organization to handle those common plugins?
vps supports
{ "type": "module" }
syntax, but telefunc does not yet. My issue is thattelefunc
generatespackage.json
first, then vps, butvite
warns me that it's already generated so it's skipped. Result: my package.json content is{ "type": "commonjs" }
, which is wrong.Workaround
Discussion
Easy fix would be to copy code from vps, but it's not really easy to maintain. Should we create a new repo under this organization to handle those common plugins?