I know people hate globals for good reason, maybe this is not the best way.
I imagine I have to tell NPM to see the globals declared in the config.js file (right now its referenced in the HTML header as an external script, so the external web libs can see it). I know babylon can’t see it like that due to compiling vs runtime building of the page. Is there a way to expose it, or include it so it can be utilized by babylon too?
import * from “…/src/config.js”
declare var DEBUG: boolean // to expose a single variable as a a test.
About six other things.
Structire right now is:
-web library 1 Folder
-web library 2 Folder
Both web library have no difficulty seeing these variables but Babylon cant find the variables. How does one set something like this up?