Skip to content

Commit 8e827dd

Browse files
committed
Change Ajv import from dynamic to static
1 parent ea2ea7c commit 8e827dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/schemaParser.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
SchemaParserConfigOpt,
1616
} from "./schemaTypes";
1717

18+
import Ajv from "ajv";
19+
1820
import { defaultParserConfig } from "./defaultParserConfig";
1921

2022
export interface AjvError {
@@ -108,7 +110,6 @@ export function transformOutputToRawData(metaOutput: any): any {
108110
}
109111

110112
export async function validateRoot(rootNode: RootNode) {
111-
const Ajv = ((await import("ajv")) as unknown as any).default;
112113

113114
const ajv = new Ajv({
114115
allErrors: true,

0 commit comments

Comments
 (0)