Skip to content

Commit

Permalink
Fixed the site trying to run typescript code as javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
spidunno authored May 27, 2024
1 parent 1d89e79 commit 736fc81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { useOscillator } from "./business/audio";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import * as Icons from "@fortawesome/free-solid-svg-icons";

const JS_EXTRA_FUNCTIONS = transformTypescript(editorExtraTypes);

function setUpMonaco(monaco: Monaco): void {
monaco.languages.typescript.typescriptDefaults.addExtraLib(editorExtraTypes);
}
Expand Down Expand Up @@ -128,7 +130,7 @@ export default function App() {
/* @vite-ignore */ URL.createObjectURL(
new Blob(
[
`${editorExtraTypes}
`${JS_EXTRA_FUNCTIONS}
${javascriptCode}`,
],
{ type: "text/javascript" }
Expand Down

0 comments on commit 736fc81

Please sign in to comment.