Skip to content

Commit 11365b7

Browse files
authored
Destruct parse from import('smol-toml') (#87)
1 parent 8ac1669 commit 11365b7

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)