Add type='module' to webview script

This commit is contained in:
Matt Rubens 2025-03-01 20:42:10 -05:00
parent d70c3e038a
commit e6a49ddc5c

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>
`