1 2 3
import initAvatarPicker from '~/avatar_picker'; document.addEventListener('DOMContentLoaded', initAvatarPicker);