Skip to content

Commit 2dac52d

Browse files
committed
docs: finalize tree-shaking source maps plan
1 parent 313caf6 commit 2dac52d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/superpowers/plans/2026-05-08-qraft-tree-shaking-source-maps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function transformQraftTreeShaking(
6363
```ts
6464
import { originalPositionFor, TraceMap } from '@jridgewell/trace-mapping';
6565

66-
it('keeps the rewritten call site traceable through the composed source map', async () => {
66+
it('keeps a rewritten user call site traceable through an incoming source map', async () => {
6767
const fixture = await createFixture();
6868
const sourceFile = path.join(fixture, 'src/App.tsx');
6969
const originalCode = `
@@ -121,7 +121,7 @@ Expected: `packages/tree-shaking-plugin/package.json` and `yarn.lock` now list `
121121
Run:
122122

123123
```bash
124-
yarn workspace @openapi-qraft/tree-shaking-plugin test -- src/core.test.ts -t "keeps the rewritten call site traceable through the composed source map"
124+
yarn workspace @openapi-qraft/tree-shaking-plugin test -- src/core.test.ts -t "keeps a rewritten user call site traceable through an incoming source map"
125125
```
126126

127127
Expected: FAIL because the incoming bundler map is not threaded into the transform yet, so the composed-map assertion still points at generated-only positions.
@@ -173,7 +173,7 @@ Keep the rest of the transform unchanged. This spec is only about source-map com
173173
Run:
174174

175175
```bash
176-
yarn workspace @openapi-qraft/tree-shaking-plugin test -- src/core.test.ts -t "keeps the rewritten call site traceable through the composed source map"
176+
yarn workspace @openapi-qraft/tree-shaking-plugin test -- src/core.test.ts -t "keeps a rewritten user call site traceable through an incoming source map"
177177
```
178178

179179
Expected: PASS, with `originalPositionFor(...)` resolving to the original `api.pets.getPets.useQuery()` call.

0 commit comments

Comments
 (0)