aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.

Home Page:https://million.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

esbuild support

pablo-mayrgundter opened this issue · comments

Describe the feature

I'd love to use million, but looks like it has custom plugins for each of the build tools, but not one for esbuild.

Happy to help implement.. seems like it needs an esbuild plugin? What is the purpose.. to get called during bundling on all source files?

Additional information

  • Would you be willing to help implement this feature?

Thanks for opening this issue! A maintainer will review it soon.

commented

this actually secretly seems to exist!

export const esbuild = unplugin.esbuild;

you can access it with MillionLint.esbuild()

but i'm having trouble using it in conjuction with esbuild loader config.