15 lines
357 B
JavaScript
15 lines
357 B
JavaScript
import registerDirectives from './directives';
|
|
import registerComponents from './components';
|
|
import { init } from './router';
|
|
export { store } from './store';
|
|
|
|
/**
|
|
* Initialize the initial vDOM.
|
|
*/
|
|
document.addEventListener( 'DOMContentLoaded', async () => {
|
|
registerDirectives();
|
|
registerComponents();
|
|
await init();
|
|
console.log( 'hydrated!' );
|
|
} );
|