Skip to content

Commit 76bf3d9

Browse files
docs: writeFileSync path was missing api.resolve (#5804) [ci skip]
1 parent 865fdd2 commit 76bf3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dev-guide/plugin-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ module.exports.hooks = (api) => {
289289
const renderIndex = lines.findIndex(line => line.match(/render/))
290290
lines[renderIndex] += `${EOL} router,`
291291
292-
fs.writeFileSync(api.entryFile, lines.join(EOL), { encoding: 'utf-8' })
292+
fs.writeFileSync(api.resolve(api.entryFile), lines.join(EOL), { encoding: 'utf-8' })
293293
})
294294
}
295295
```

0 commit comments

Comments
 (0)