Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 7, 2024
1 parent a774021 commit 3ee1685
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const CodeEditor = ({
projectName: "my-project",
typescript: ts,
logger: console,
fetcher: (input, init) => {
// TODO redirect @tsci/* stuff to our api registry
return fetch(input, init)
},
delegate: {
receivedFile: (code: string, path: string) => {
fsMap.set(path, code)
Expand All @@ -71,7 +75,7 @@ export const CodeEditor = ({
}

const ata = setupTypeAcquisition(ataConfig)
ata(`import React from "@types/react/jsx-runtime"`)
ata(`import React from "@types/react"`)

const state = EditorState.create({
doc: code,
Expand Down

0 comments on commit 3ee1685

Please sign in to comment.