We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
</scripts>
updateScriptTags
1 parent 16630ae commit 7a4b3afCopy full SHA for 7a4b3af
libs/native-federation/src/utils/updateIndexHtml.ts
@@ -34,8 +34,11 @@ export function updateScriptTags(
34
<script type="module-shim" src="${mainName}"></script>
35
`;
36
37
- indexContent = indexContent.replace(/<script src="polyfills.*?>/, '');
38
- indexContent = indexContent.replace(/<script src="main.*?>/, '');
+ indexContent = indexContent.replace(
+ /<script src="polyfills.*?><\/script>/,
39
+ ''
40
+ );
41
+ indexContent = indexContent.replace(/<script src="main.*?><\/script>/, '');
42
indexContent = indexContent.replace('</body>', `${htmlFragment}</body>`);
43
return indexContent;
44
}
0 commit comments