Scripted dashboards in ES6


I’m fairly new to Javascript so this may be a stupid question.

I’d like to create a scripted dashboard but would like to use ES6. How can this be achieved please?

I was hoping I could do something along the lines of…

export default function(){

var dashboard = { Title: ‘My ES6 Dashboard’ }

// Loads of other ES6 stuff here

return dashboard;


Then use babel to transpile to ES2015. However I’m getting nowhere.

Any help appreciated.

Anyone? Even if the answer is “That’s a stooopid question” I’d be grateful to know why :slight_smile:

Hello world!

Kind regards. :slight_smile: