You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/tree-shaking-plugin/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,10 @@ bundler's own resolver.
225
225
226
226
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.
227
227
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
+
228
232
## Context client inside a component
229
233
230
234
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