My team is using PlayCanvas for a school project, and so far we’ve been very happy with the framework. However, we’re running into issues with ES6 modules. Specifically, importing and exporting them. We have tried using export default, module.exports, and exports.class-name-here with no success, and since we’re using the online editor we have no way to set the files as modules in index.html.
@yaustar what is the current workflow for using es6 imports/exports? Adding the jshint in the editor removes the code warnings, but when you run in launch.playcanvas.com the scripts are not flagged as modules and therefore raise Cannot use import statement outside a module exceptions. Is there a way to flag this to the bundler/compiler?