Skip to content

Commit 61891a0

Browse files
committedOct 5, 2024·
docs: update interopDefault description and reference
1 parent fd5d7ea commit 61891a0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

Diff for: ‎README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ Add inline source map to transformed source for better debugging.
151151
- Default: `true`
152152
- Environment variable: `JITI_INTEROP_DEFAULT`
153153
154-
Uses the default export of modules (if exists), alongside any other named exports combined.
155-
156-
See [`mlly.interopDefault`](https://github.com/unjs/mlly#interopdefault) and the [implementation](https://github.com/unjs/mlly/blob/2348417d25522b98ed60ccc10eb030abb2f65744/src/cjs.ts#L59) for more info.
154+
Jiti combines module exports with the `default` export using an internal Proxy to improve compatibility with mixed CJS/ESM usage. You can check the current implementation [here](https://github.com/unjs/jiti/blob/main/src/utils.ts#L105).
157155
158156
### `alias`
159157

Diff for: ‎lib/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export interface JitiOptions {
9292
sourceMaps?: boolean;
9393

9494
/**
95-
* Uses the default export of modules (if exists), alongside any other named exports combined.
95+
* Jiti combines module exports with the `default` export using an internal Proxy to improve compatibility with mixed CJS/ESM usage. You can check the current implementation [here](https://github.com/unjs/jiti/blob/main/src/utils.ts#L105).
9696
*
9797
* Can be disabled using `JITI_INTEROP_DEFAULT=0` environment variable.
9898
*/

0 commit comments

Comments
 (0)
Please sign in to comment.