Skip to content

Commit

Permalink
fix: mark options as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroma committed Mar 18, 2024
1 parent 800f18b commit b06e469
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/repack/src/webpack/utils/getResolveOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export interface ResolveOptions {
* ```
*/

export function getResolveOptions(platform: string, options: ResolveOptions) {
const preferNativePlatform = options.preferNativePlatform ?? true;
const enablePackageExports = options.enablePackageExports ?? false;
export function getResolveOptions(platform: string, options?: ResolveOptions) {
const preferNativePlatform = options?.preferNativePlatform ?? true;
const enablePackageExports = options?.enablePackageExports ?? false;

let extensions = ['.ts', '.js', '.tsx', '.jsx', '.json'];

Expand Down

0 comments on commit b06e469

Please sign in to comment.