woocommerce/plugins/woocommerce-blocks/assets/js/interactivity/index.js

15 lines
357 B
JavaScript
Raw Normal View History

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!' );
} );