You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I have a situation where i import a module dynamically with import statement inside script tag on in src.code looks like :
//index.html
<script crossorigin="">import('/__dynamic_base__/assets/index.18d6a07a.js').finally(() => {
const global_concurent_qiankun = window.proxy?.__GLOBAL_CONCURENT_QIANKUN__?.['asma-app-directory']
if(global_concurent_qiankun){
window.proxy = global_concurent_qiankun
}
const qiankunLifeCycle = window.moduleQiankunAppLifeCycles && window.moduleQiankunAppLifeCycles['asma-app-directory'];
if (qiankunLifeCycle) {
window.proxy.vitemount((props) => qiankunLifeCycle.mount(props));
window.proxy.viteunmount((props) => qiankunLifeCycle.unmount(props));
window.proxy.vitebootstrap(() => qiankunLifeCycle.bootstrap());
window.proxy.viteupdate((props) => qiankunLifeCycle.update(props));
}
})
</script>
it looks like it not changes `__dynamic_base__` placeholder inside import('...__dynamic_base__...') statement it that true?
how i can achieve that?
The text was updated successfully, but these errors were encountered:
Relaxe111
changed the title
How can I import a dynamicaly imported module within <script> tag?
How can I import a dynamically imported module within <script> tag?
Aug 18, 2022
Hi I have a situation where i import a module dynamically with import statement inside script tag on in src.code looks like :
The text was updated successfully, but these errors were encountered: