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: insertBefore加入script逻辑 #592

Merged
merged 6 commits into from
May 21, 2020
Merged

feat: insertBefore加入script逻辑 #592

merged 6 commits into from
May 21, 2020

Conversation

nupthale
Copy link
Contributor

@nupthale nupthale commented May 21, 2020

Checklist
  • npm test passes
  • commit message follows commit guidelines
Description of change

resolve #590

dynamicHeadAppend.ts中insertBefore加入script处理逻辑

);

const dynamicScriptCommentElement = document.createComment(`dynamic script ${src} replaced by qiankun`);
return rawAppendChild.call(appWrapperGetter(), dynamicScriptCommentElement) as T;
Copy link
Member

Choose a reason for hiding this comment

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

这里应该是 rawHeadInsertBefore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的, 已改

src/sandbox/patchers/dynamicHeadAppend.ts Outdated Show resolved Hide resolved
element.onerror,
);
const dynamicInlineScriptCommentElement = document.createComment('dynamic inline script replaced by qiankun');
return rawHeadInsertBefore.call(appWrapperGetter(), dynamicInlineScriptCommentElement, refChild) as T;
Copy link
Member

Choose a reason for hiding this comment

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

@kuitos kuitos merged commit 7ea01dc into umijs:master May 21, 2020
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.

[Bug]insertBefore没有处理script逻辑
2 participants