Skip to content

Commit

Permalink
allow importing "tscircuit" inside synchronous snippets (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar authored Jan 24, 2025
1 parent 6894251 commit d8463b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/use-run-tsx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const useRunTsx = ({
}
;(globalThis as any).__tscircuit_require = __tscircuit_require
preSuppliedImports["@tscircuit/core"] = tscircuitCore
preSuppliedImports["tscircuit"] = tscircuitCore
preSuppliedImports["@tscircuit/math-utils"] = tscircuitMathUtils
preSuppliedImports["react"] = React
preSuppliedImports["jscad-fiber"] = jscadFiber
Expand Down

0 comments on commit d8463b5

Please sign in to comment.