Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esbuild plugin options #1661

Open
spike-rabbit opened this issue Feb 12, 2024 · 3 comments
Open

esbuild plugin options #1661

spike-rabbit opened this issue Feb 12, 2024 · 3 comments
Labels
builders:esbuild enhancement New feature or request

Comments

@spike-rabbit
Copy link

spike-rabbit commented Feb 12, 2024

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.

@just-jeb
Copy link
Owner

Sounds good to me, @arturovt what’s your take on it?

@just-jeb
Copy link
Owner

@spike-rabbit I think you can go ahead and submit a PR. LMK if you need any help.

@just-jeb just-jeb added builders:esbuild enhancement New feature or request labels Feb 14, 2024
@arturovt
Copy link
Collaborator

I’m a bit busy with fixing the TS resolution issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builders:esbuild enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants