We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse
import('smol-toml')
1 parent 8ac1669 commit 11365b7Copy full SHA for 11365b7
1 file changed
src/config_prettier.ts
@@ -46,8 +46,8 @@ const Loaders = {
46
},
47
toml: async (filePath: string): Promise<unknown> => {
48
const fileContent = fs.readFileSync(filePath, "utf8");
49
- const toml = await import("smol-toml");
50
- return toml.parse(fileContent);
+ const {parse} = await import("smol-toml");
+ return parse(fileContent);
51
52
yaml: async (filePath: string): Promise<unknown> => {
53
const yaml = (await import("js-yaml")).default;
0 commit comments