Open spike-rabbit opened 8 months ago
Is your feature request related to a problem? Please describe.
esbuild plugins can have options. In that case they are functions which returns the plugin. Like this:
require("esbuild").build({ // ... plugins: [require("my-plugin")(options)], // ... })
Describe the solution you'd like
It would be cool to have a similar configuration options like nx.
{ "plugins": ["without-options", { "path" : "with-options", "options" : {}}] }
Describe alternatives you've considered The only alternative I could imagine is having a wrapper file, that does configuration.
I could provide a PR, if that helps.
Sounds good to me, @arturovt what’s your take on it?
@spike-rabbit I think you can go ahead and submit a PR. LMK if you need any help.
I’m a bit busy with fixing the TS resolution issue.
Is your feature request related to a problem? Please describe.
esbuild plugins can have options. In that case they are functions which returns the plugin. Like this:
Describe the solution you'd like
It would be cool to have a similar configuration options like nx.
Describe alternatives you've considered The only alternative I could imagine is having a wrapper file, that does configuration.
I could provide a PR, if that helps.