Skip to content

Commit

Permalink
Fix CodeSandpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Jan 24, 2025
1 parent 6ce827f commit 0b18e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/sandpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const importMap = {
'react-dom': 'https://esm.sh/[email protected]',
'react-dom/': 'https://esm.sh/[email protected]/',
'@codesandbox/sandpack-react':
'https://esm.sh/@codesandbox/[email protected]',
'https://esm.sh/@codesandbox/[email protected][email protected]&[email protected]',
},
};

Expand Down Expand Up @@ -94,6 +94,6 @@ customElements.define("code-sandbox", SandpackElement);
`;

script.type = 'module';
script.innerText = code;
script.textContent = code;

document.head.appendChild(script);

0 comments on commit 0b18e29

Please sign in to comment.