Skip to content

Commit

Permalink
Revert "Test turbopack support regression"
Browse files Browse the repository at this point in the history
This reverts commit 7f000d4.
  • Loading branch information
decs committed Jan 20, 2024
1 parent 7f000d4 commit a6e2d2b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/adapters/ajv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ export interface AjvResolver extends Resolver {
}

export const fetchModule = /* @__PURE__ */ memoize(async () => {
const {default: Ajv} = await import(/* webpackIgnore: true */ 'ajv');
return new Ajv();
try {
const {default: Ajv} = await import(/* webpackIgnore: true */ 'ajv');
return new Ajv();
} catch (error) {
throw error;
}
});

const coerce: Coerce<'ajv'> = /* @__NO_SIDE_EFFECTS__ */ fn => schema =>
Expand Down

0 comments on commit a6e2d2b

Please sign in to comment.