-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 dynamic import with custom fetch #347
Conversation
src/hijackers/dynamicHeadAppend.ts
Outdated
@@ -2,7 +2,7 @@ | |||
* @author Kuitos | |||
* @since 2019-10-21 | |||
*/ | |||
import { execScripts } from 'import-html-entry'; | |||
import { execScripts, ExecScriptsOpts } from 'import-html-entry'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExecScriptsOpts 应该没有被 export 吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS去读取那个模块的根目录下的文件注解了,interface 是导出的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(cherry picked from commit 08043b9)
* 🐛 dynamic import with custom fetch (#347) * ✨ simplify the duplicate loader configuration * 🎨 * 🎨 Co-authored-by: 陶楷 <[email protected]>
* 🐛 dynamic import with custom fetch (#347) * 📝 update doc and correct code * 📝 update doc Co-authored-by: 陶楷 <[email protected]>
Fixes #341
Description of change
透传了
{fetch}
参数对象,在子应用采用 dynamic import 时,使用 custom 的 fetch 方法