Skip to content

Commit

Permalink
docs: update interopDefault description and reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 5, 2024
1 parent fd5d7ea commit 61891a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ Add inline source map to transformed source for better debugging.
- Default: `true`
- Environment variable: `JITI_INTEROP_DEFAULT`
Uses the default export of modules (if exists), alongside any other named exports combined.
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.
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).
### `alias`
Expand Down
2 changes: 1 addition & 1 deletion lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export interface JitiOptions {
sourceMaps?: boolean;

/**
* Uses the default export of modules (if exists), alongside any other named exports combined.
* 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).
*
* Can be disabled using `JITI_INTEROP_DEFAULT=0` environment variable.
*/
Expand Down

0 comments on commit 61891a0

Please sign in to comment.