Lazy load views #

To lazy load a view you can use the native ES6 import import('/path/to/script.js') within your route action:

{
path: '',
action: () => import('./views/home.js').then(() => 'home-page')
}