Skip to content

Commit 6492978

Browse files
authored
docs(migration): fix parsers migration example (#1468)
1 parent 08e3e26 commit 6492978

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/src/content/docs/version-4/migration.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ export default {
219219
],
220220
hooks: {
221221
parsers: {
222-
name: 'json5-parser',
223-
pattern: /\.json5$/,
224-
parser: ({ contents, filePath }) => {
225-
return JSON5.parse(contents);
222+
'json5-parser': {
223+
pattern: /\.json5$/,
224+
parser: ({ contents, filePath }) => {
225+
return JSON5.parse(contents);
226+
},
226227
},
227228
},
228229
},

0 commit comments

Comments
 (0)