nodecg-io icon indicating copy to clipboard operation
nodecg-io copied to clipboard

Extract esbuild configuration into a common package

Open hlxid opened this issue 2 years ago • 0 comments

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.

hlxid avatar Jul 15 '22 21:07 hlxid