Skip to content

Commit

Permalink
docs: fix issue with custom loader definition in custom-loader.md (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
writeonlycode authored Mar 18, 2024
1 parent 65b43c4 commit 7a64434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/custom-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { defineConfig, defineLoader } from 'velite'
const tomlLoader = defineLoader({
test: /\.toml$/,
load: vfile => {
return toml.parse(vfile.toString())
return { data: toml.parse(vfile.toString()) }
}
})

Expand Down

0 comments on commit 7a64434

Please sign in to comment.