#Why variables defined in dev.ts but got undefined in macros

1 messages · Page 1 of 1 (latest)

nocturne fractal
#

Variables I defined in dev.ts and before Bun.build global.dynamicImportPath = new Array<string>(); and while I'm trying to access this global variables. A TypeError undefined is not an object (evaluating 'global.dynamicImportPath.includes') throwed

indigo kelp
#

macros are run on another thread

nocturne fractal
nocturne fractal
# indigo kelp macros are run on another thread

I have one more question. Is there any way to share the variables to each others ? I'm trying to collect something in macros and share it to main thread. And the default global.postMessage seems not work.

indigo kelp
#

Not without files or some very clever hacks involving mmap right now unfortunately

full stream
nocturne fractal