How to modify build output in esbuild `onEnd` callback?

209 views Asked by At

I am working on a plugin - https://github.com/mayank1513/esbuild-plugin-react18. It works well with tsup - example.

However, I when I am trying to test, I am getting outputFiles as undefined. Here's the test setup. I can get legit value for outputFiles by setting write:false in esbuild options. However, that will not generate any build files.

How do I test this plugin and make it work with this esbuild setup?

I have also created this issue.

0

There are 0 answers