Merge pull request #1297 from RooVetGit/fix_mermaid

Add type='module' to webview script
This commit is contained in:
Matt Rubens 2025-03-01 20:47:03 -05:00 committed by GitHub
commit 00bf6a3b96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,7 +509,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script nonce="${nonce}" src="${scriptUri}"></script>
<script nonce="${nonce}" type="module" src="${scriptUri}"></script>
</body>
</html>
`