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 Apr 2, 2024
1 parent 63e8026 commit 4ecf0cc
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 4ecf0cc

Please sign in to comment.