unjs / unplugin

Unified plugin system for Vite, Rollup, Webpack, esbuild, Rolldown, and more

Home Page:https://unplugin.unjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow `void` in `TransformResult`

huang-julien opened this issue Β· comments

Environment

unplugin 1.10.1
node 20

Reproduction

https://github.com/nuxt/scripts/blob/d2a3bbb4cc298d8bb2accf6d4931aef7239237d7/src/plugins/check-scripts.ts#L40

Describe the bug

Hello πŸ‘‹

Sometimes, users can use transform without returning anything. In that case they are forced to specify a return undefined to satisfy typescript.

Additional context

No response

Logs

No response