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

feat: 🎸 add loadMode #221

Closed
wants to merge 4 commits into from
Closed

Conversation

maoxiaoke
Copy link
Collaborator

@maoxiaoke maoxiaoke commented Jan 6, 2021

  • support loadMode

@maoxiaoke maoxiaoke linked an issue Jan 6, 2021 that may be closed by this pull request
// cache loadMode
// eslint-disable-next-line no-nested-ternary
const loadMode = umd ? 'umd' : ( sandbox ? 'sandbox' : 'script' );
setCache('loadMode', loadMode);
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个设置时机是不是没解决多个 app 在不同 loadMode 的问题

src/apps.ts Outdated
@@ -278,6 +298,8 @@ export async function unloadMicroApp(appName: string) {
delete appConfig.unmount;
delete appConfig.appAssets;
updateAppConfig(appName, { status: NOT_LOADED });

removeContent();
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果不清空会有什么样的问题?

@maoxiaoke maoxiaoke closed this Jan 11, 2021
@maoxiaoke maoxiaoke deleted the feat/compatibleLoadMode branch January 18, 2021 07:00
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.

icestark 支持 1.x 版本的调试信息
2 participants