Skip to content

Commit a323532

Browse files
authored
perf: use node: prefix to bypass require.cache call for builtins (#114)
See fastify/fastify-static#407
1 parent 73d729b commit a323532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const { format } = require('util')
3+
const { format } = require('node:util')
44

55
function toString () {
66
return `${this.name} [${this.code}]: ${this.message}`

0 commit comments

Comments
 (0)