nodecg-io
nodecg-io copied to clipboard
Extract esbuild configuration into a common package
Description
Many bundles inside nodecg-io have a UI that is built using esbuild. Currently this list includes the following bundles:
- core dashboard
- debug service dashboard
- StreamElements sample graphic
These all have a very similar esbuild.config.js
config file. Because we will get even more bundles requiring esbuild configurations in the future when we will integrate NodeCG Replicants into more services, we should remedy this code duplication.
The esbuild configuration should be split into a common package, similar to nodecg-io-tsconfig
. This package should expose some configuration e.g. whether monaco is being used that can be toggled by the using bundle when required.
This bundle shall useable by external bundles too, just like the nodecg-io-tsconfig
package.