feat: add opt-in twoslash build cache#118
Conversation
🦋 Changeset detectedLatest commit: 67ca552 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
👋 Hey @Adammatthiesen! We're currently working on the next iteration of the Effect Website, and I'm trying to optimize build times as much as possible. As you know, we make heavy use of your I've been experimenting on our new site with a build-time cache for Twoslash snippets. I locally patched the For an Astro build with my cache PoC including ~40 Twoslash snippets, the cold build time was ~25s and warm build time was ~15s. Obviously this scales with more and more snippets that are cached vs. uncached, and the actual Effect website has many more snippets than this. Given the positive results, I figured I'd make a PR to Please note that the PR is fully AI generated - I'm happy to clean it up if you're interested in upstreaming it, and also happy to make whatever changes to the public API you want too! |
Description
pnpm changeset.Docs