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: README.md
+1-3
Original file line number
Diff line number
Diff line change
@@ -151,9 +151,7 @@ Add inline source map to transformed source for better debugging.
151
151
- Default: `true`
152
152
- Environment variable: `JITI_INTEROP_DEFAULT`
153
153
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).
Copy file name to clipboardExpand all lines: lib/types.d.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ export interface JitiOptions {
92
92
sourceMaps?: boolean;
93
93
94
94
/**
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).
96
96
*
97
97
* Can be disabled using `JITI_INTEROP_DEFAULT=0` environment variable.
0 commit comments