Hi, is there any way how to call a function from a .jspre file in .jslib?
I was trying something like following:
.jspre:
var WR = {
Helo: function () {
window.alert("Heelo");
}
}
.jslib:
var WebGLPlugin = {
Hello: WR.Helo,
};
mergeInto(LibraryManager.library, WebGLPlugin);
But it does not compile: ReferenceError: WR is not defined
Am I missing something? Should there be some dependency definition? Or this is not possible at all?
Thanks