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.
2 parents 9897a1f + 7a4b3af commit 3ee67baCopy full SHA for 3ee67ba
libs/native-federation/src/utils/updateIndexHtml.ts
@@ -45,8 +45,11 @@ export function updateScriptTags(
45
<script type="module-shim" src="${mainName}"></script>
46
`;
47
48
- indexContent = indexContent.replace(/<script src="polyfills.*?>/, '');
49
- indexContent = indexContent.replace(/<script src="main.*?>/, '');
+ indexContent = indexContent.replace(
+ /<script src="polyfills.*?><\/script>/,
50
+ ''
51
+ );
52
+ indexContent = indexContent.replace(/<script src="main.*?><\/script>/, '');
53
indexContent = indexContent.replace('</body>', `${htmlFragment}</body>`);
54
return indexContent;
55
}
0 commit comments