Hi everyone,
I'm trying to split up a plugin into different modules. But upon importing the necessary functions into the main plugin file like so:
import { myFunction as myFunctionFromModuleOne } from "moduleOne.js";
However, I'm getting the error message:
SyntaxError: import declarations may only appear at top level of a module
I've found quite a bit of answers how modules work in regular HTML, but I don't know how that would apply to Zotero. Does anyone know? How can I import functions from modules?
Best,
Denis