Skip to content

Commit c02612d

Browse files
committed
Destruct parse from import('smol-toml')
1 parent 4b1a66a commit c02612d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/config_prettier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const Loaders = {
4646
},
4747
toml: async (filePath: string): Promise<unknown> => {
4848
const fileContent = fs.readFileSync(filePath, "utf8");
49-
const toml = await import("smol-toml");
50-
return toml.parse(fileContent);
49+
const {parse} = await import("smol-toml");
50+
return parse(fileContent);
5151
},
5252
yaml: async (filePath: string): Promise<unknown> => {
5353
const yaml = (await import("js-yaml")).default;

0 commit comments

Comments
 (0)