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

17 lines
357 B
JavaScript

/**
* Internal dependencies
*/
import registerDirectives from './directives';
import registerComponents from './components';
import { init } from './router';
/**
* Initialize the initial vDOM.
*/
document.addEventListener( 'DOMContentLoaded', async () => {
registerDirectives();
registerComponents();
await init();
console.log( 'hydrated!' );
} );