import Vue from 'vue';
import isInIcestark from '@ice/stark-app/lib/isInIcestark';
import setLibraryName from '@ice/stark-app/lib/setLibraryName';
let vue;
setLibraryName('microApp');
export function mount(props) {
const { container } = props;
vue = new Vue(...).$mount();
container.innerHTML = '';
container.appendChild(vue.$el);
}
export function unmount() {
vue && vue.$destroy();
}
if (!isInIcestark()) {
new Vue(...);
}