KubeJS

KubeJS

61M Downloads

Import/Export

PssbleTrngle opened this issue · 2 comments

commented

Is there a way to import/exportvariables and functions in es6 or any other style?

commented

Did you ever find a solution to this? I get errors about import being a reserved keyword. I saw that Mozilla's rhino library has a load function, but the version of rhino used by KubeJS doesn't seem to have that.

commented

Rhino doesn’t have imports. If you want to use a variable/function from a different script use global