Skip to content

Commit 7dec3ab

Browse files
committed
docs: note tree-shaking path rendering convention
1 parent ad3bf93 commit 7dec3ab

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/tree-shaking-plugin/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ bundler's own resolver.
225225

226226
If two imports share the same `name` but resolve to different files, only the one matching a configured entry is transformed. This prevents false positives when an unrelated module happens to export a function with the same name.
227227

228+
## Path rendering
229+
230+
Relative generated imports are emitted without source extensions or trailing `/index` so the output stays bundler-friendly. Bare module specifiers are preserved as-is.
231+
228232
## Context client inside a component
229233

230234
A common pattern is to use a context client for rendering (top-level `const api = createAPIClient()`) and a fresh options client inside mutation callbacks to perform cache updates with the current context value. Both are optimized in a single pass:

0 commit comments

Comments
 (0)