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 4b1a66a commit c02612dCopy full SHA for c02612d
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