FlowRouter.route('/marketing-hub', {
name: "marketing_hub",
action: function(queryParams) {
import './ui/views/marketing-view.js';
}
});
Something like this is not possible and throws an error Uncaught SyntaxError: Unexpected token import
. How can we load files conditionally as we load a new route? I want to make sure to only load what is really needed per route.