unjs / unplugin

Unified plugin system for Vite, Rollup, Webpack, esbuild, Rolldown, and more
https://unplugin.unjs.io
MIT License
2.9k stars 104 forks source link

`isEntry` hook #358

Open cawa-93 opened 6 months ago

cawa-93 commented 6 months ago

Describe the feature

It would be very useful to have a unified hook to check if a module is an entry point. Like this.getModuleInfo(id).isEntry in rollup.

Additional information

mahoushoujoarale commented 5 months ago

the same to me