Skip to content

ui: build nerdamer sandbox prelude from vendored source - #1

Merged
rankaiyx merged 1 commit into
rankaiyx:feature/sandbox-nerdamer-primefrom
ServeurpersoCom:sandbox-nerdamer-prime
Jul 22, 2026
Merged

ui: build nerdamer sandbox prelude from vendored source#1
rankaiyx merged 1 commit into
rankaiyx:feature/sandbox-nerdamer-primefrom
ServeurpersoCom:sandbox-nerdamer-prime

Conversation

@ServeurpersoCom

Copy link
Copy Markdown

Replace the vendored all.min.js with the readable nerdamer-prime source and its two bundled deps (big-integer, decimal.js), licenses included. A vite plugin bundles and minifies them at build time with the upstream esbuild flags, exposed as virtual:nerdamer and imported lazily on first sandbox use (inlined for now by the single bundle strategy, effective if that ever changes). The vendors package.json pins commonjs so the project level type: module does not break esbuild format detection.

The harness gains a CSP removing network egress from the worker, and browser tests cover the prelude, exact arithmetic, the fetch block and the timeout.

Upstream snapshot: together-science/nerdamer-prime@1936145

Proposal for: ggml-org#25948

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES Fable 5 / GPT-5.6 SOL / Manual testing

Replace the vendored all.min.js with the readable nerdamer-prime
source and its two bundled deps (big-integer, decimal.js), licenses
included. A vite plugin bundles and minifies them at build time with
the upstream esbuild flags, exposed as virtual:nerdamer and imported
lazily on first sandbox use. The vendors package.json pins commonjs
so the project level type: module does not break esbuild format
detection. The harness gains a CSP removing network egress from the
worker, and browser tests cover the prelude, exact arithmetic, the
fetch block and the timeout.

Upstream snapshot: together-science/nerdamer-prime@1936145
@rankaiyx
rankaiyx merged commit fe9344c into rankaiyx:feature/sandbox-nerdamer-prime Jul 22, 2026
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