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

Plugin incompatibility #189

Open
lortonx opened this issue Mar 23, 2024 · 1 comment
Open

Plugin incompatibility #189

lortonx opened this issue Mar 23, 2024 · 1 comment

Comments

@lortonx
Copy link

lortonx commented Mar 23, 2024

@chialab/esbuild-plugin-meta-url
@chialab/esbuild-plugin-worker

cant live with

esbuild-plugin-dev-server or @jgoz/esbuild-plugin-livereload

image

After I commented out these two plugins, the port error disappeared.

It seems the server plugin is called multiple times. It can be fixed?

image
@edoardocavazza
Copy link
Member

Hello!

Since esbuild does not provide an API to add entrypoints to the current build, meta-url and worker plugins need to invoke a new esbuild build. The very same configuration is used, so plugins are loaded N times.

I am not sure how to solve this issue 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants