Use external js file in JSX?
From a js file to fire up a JSX file that communicates with illustrator I do this:
var productTemplateSetupFile = `${root}/jsx/productTemplateSetup.jsx`;
csiRun.evalScript(`$.evalFile('${productTemplateSetupFile}')`);
csiRun.evalScript(`setupPlateTemplate('${jsonOrders}')`);
Here I eval the file then eval the method setupPlateTemplates(); and it executes.
Is there away that I could run other JS files in this jsx?
I've read mixed reviews on this and nothing has helped.
In example:
#include (anotherJsFile.js);
function setupPlateTemplate(orders) {
myMethodInAnotherJsFile();
}The method would include a bunch of other code that can run with some node modules. I'm not sure if this is possible.
