Skip to content
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

Merged
merged 3 commits into from
Mar 29, 2020
Merged

🐛 dynamic import with custom fetch #347

merged 3 commits into from
Mar 29, 2020

Conversation

eynol
Copy link
Contributor

@eynol eynol commented Mar 27, 2020

Fixes #341

Description of change

透传了{fetch} 参数对象,在子应用采用 dynamic import 时,使用 custom 的 fetch 方法

@eynol eynol requested a review from kuitos March 27, 2020 10:34
@@ -2,7 +2,7 @@
* @author Kuitos
* @since 2019-10-21
*/
import { execScripts } from 'import-html-entry';
import { execScripts, ExecScriptsOpts } from 'import-html-entry';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExecScriptsOpts 应该没有被 export 吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS去读取那个模块的根目录下的文件注解了,interface 是导出的

https://github.com/kuitos/import-html-entry/blob/e7a61363dab0e5e8648afbc2b2476ef556437946/index.d.ts#L18

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/register.ts Outdated Show resolved Hide resolved
@kuitos kuitos merged commit 08043b9 into umijs:master Mar 29, 2020
kuitos pushed a commit that referenced this pull request Mar 29, 2020
kuitos pushed a commit that referenced this pull request Mar 29, 2020
howel52 pushed a commit that referenced this pull request Mar 29, 2020
* 🐛 dynamic import  with custom fetch (#347)

* ✨ simplify the duplicate loader configuration

* 🎨

* 🎨

Co-authored-by: 陶楷 <[email protected]>
kuitos pushed a commit that referenced this pull request Mar 29, 2020
howel52 pushed a commit that referenced this pull request Mar 29, 2020
* 🐛 dynamic import  with custom fetch (#347)

* 📝 update doc and correct code

* 📝 update doc

Co-authored-by: 陶楷 <[email protected]>
kuitos pushed a commit that referenced this pull request Mar 29, 2020
szy1000 pushed a commit to szy1000/qiankun that referenced this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

项目内部路由跳转按需加载的文件无法传递cookie
2 participants