Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy tsx runner, replace with RunFrame, everything uses WebWorkers #702

Merged
merged 3 commits into from
Mar 2, 2025

Conversation

seveibar
Copy link
Contributor

@seveibar seveibar commented Mar 2, 2025

No description provided.

@seveibar
Copy link
Contributor Author

seveibar commented Mar 2, 2025

fixes #694

@tscircuitbot
Copy link

📊 Bundle Size Analysis

Total Bundle Size

  • Before: 27.47 MB
  • After: 30.23 MB
  • Change: 📈 2.77 MB (10.07%)

Diff

Package Before After Diff Change
@tscircuit/footprinter@^0.0.124 0.00 B 104.59 KB 📈 104.59 KB Added
circuit-json@^0.0.136 183.58 KB 211.04 KB 📈 27.46 KB 14.96%
react@^18.3.1 930.99 KB 957.24 KB 📈 26.26 KB 2.82%
circuit-to-svg@^0.0.101 206.98 KB 213.32 KB 📈 6.34 KB 3.06%
@radix-ui/react-slot@^1.1.0 0.00 B 6.17 KB 📈 6.17 KB Added
jscad-electronics@^0.0.25 2.40 MB 2.40 MB 📈 3.77 KB 0.15%
@tscircuit/prompt-benchmarks@^0.0.28 0.00 B 328.00 B 📈 328.00 B Added
View Dependencies
Package Size
typescript@^5.6.3 8.69 MB
@babel/standalone@^7.26.2 4.82 MB
jscad-electronics@^0.0.25 2.40 MB
react@^18.3.1 957.24 KB
posthog-js@^1.203.2 229.68 KB
circuit-to-svg@^0.0.101 213.32 KB
circuit-json@^0.0.136 211.04 KB
tailwind-merge@^2.5.2 140.24 KB
jszip@^3.10.1 139.73 KB
react-dom@^18.3.1 138.75 KB
zod@^3.23.8 113.73 KB
@tscircuit/footprinter@^0.0.124 104.59 KB
dsn-converter@^0.0.60 34.30 KB
react-helmet@^6.1.0 29.16 KB
@radix-ui/react-scroll-area@^1.1.0 28.88 KB
@radix-ui/react-toast@^1.2.1 25.46 KB
fflate@^0.8.2 19.89 KB
ms@^2.1.3 13.86 KB
@radix-ui/react-dialog@^1.1.1 11.97 KB
@radix-ui/react-popover@^1.1.1 10.63 KB
states-us@^1.1.1 7.27 KB
@radix-ui/react-slot@^1.1.0 6.17 KB
react-query@^3.39.3 5.93 KB
@radix-ui/react-tabs@^1.1.0 5.62 KB
@radix-ui/react-checkbox@^1.1.1 4.94 KB
use-mouse-matrix-transform@^1.3.0 4.73 KB
react-intersection-observer@^9.14.1 4.64 KB
@tscircuit/math-utils@^0.0.10 4.56 KB
zustand@^4.5.5 4.11 KB
lucide-react@^0.445.0 3.93 KB
file-saver@^2.0.5 3.58 KB
@vercel/analytics@^1.4.1 2.88 KB
@tscircuit/core@^0.0.315 2.45 KB
redaxios@^0.5.1 1.83 KB
use-async-memo@^1.2.5 759.00 B
clsx@^2.1.1 723.00 B
vite@^5.4.8 642.00 B
codemirror@^6.0.1 595.00 B
country-list@^2.3.0 387.00 B
@tscircuit/prompt-benchmarks@^0.0.28 328.00 B
extract-codefence@^0.0.4 151.00 B
What is this? This is an automated bundle size report generated during the build process.

@@ -112,7 +88,7 @@ export function CodeAndPreview({ snippet }: Props) {
snippet_id: snippet.snippet_id,
code: code,
dts: dts,
compiled_js: compiledJs,
// compiled_js: compiledJs,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@imrishabh18 note this is one of the biggest changes, we are no longer sending compiled_js to the server. HOWEVER, this was only needed for legacy tscircuit runners, there is now a server bundler/caching system that should eliminate the need for clients (web and cli) to compile JS or compile typescript (the dts)

Still we should be mindful that snippets saved with this will be slightly different

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants