#756·qiankun

Is it possible to load a sub app using `type="module"` script tag when the master app doesn't use `type="module"` script tag

Author: hronroCreated Jul 14, 2020Updated Sep 17, 2026

Is it possible to load a sub app using type="module script tag when the master app doesn't use type="module script tag?

After some researching I found it seems currently qiankun uses eval to execute scripts of sub apps via import-html-entry module, which means when the javascript context of the master app isn't a module, the javascript context of sub apps can't use module syntax either, which is a big limitation in MICRO FRONTEND architecture.

I wonder if it's possible to use any other ways to executing scripts instead of using eval, e.g. inserting a inline script element to the sub app?