diff --git a/src/config_prettier.ts b/src/config_prettier.ts index 0bbc206..9c73ef1 100644 --- a/src/config_prettier.ts +++ b/src/config_prettier.ts @@ -46,8 +46,8 @@ const Loaders = { }, toml: async (filePath: string): Promise => { const fileContent = fs.readFileSync(filePath, "utf8"); - const toml = await import("smol-toml"); - return toml.parse(fileContent); + const {parse} = await import("smol-toml"); + return parse(fileContent); }, yaml: async (filePath: string): Promise => { const yaml = (await import("js-yaml")).default;