chialab / rna

🚀 Build tools for modern web modules and applications.
https://chialab.github.io/rna/
MIT License
171 stars 21 forks source link

Plugin incompatibility #189

Open lortonx opened 5 months ago

lortonx commented 5 months ago

@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 commented 3 months ago

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 🤔