Would anyone know if I can use Import / Export keywords?
I have about 12 js files that cross reference each other, and the way they know of each other is that each file is listed via the Plugin Manager and thus gets ingested as a plugin on start-up.
Ideally, I would like to use import / export keyword, so the files know about each other using the regular js mechanism, and there is only one single Plugin Manager entry for the whole game backend.
The error I am getting:
My code:
I have about 12 js files that cross reference each other, and the way they know of each other is that each file is listed via the Plugin Manager and thus gets ingested as a plugin on start-up.
Ideally, I would like to use import / export keyword, so the files know about each other using the regular js mechanism, and there is only one single Plugin Manager entry for the whole game backend.
The error I am getting:
My code:
JavaScript:
'use strict';
class my_Game{
// ... constructor, methods, attributes, etc.
}
export { my_Game };