Skip to content

Commit 6c97e35

Browse files
authored
perf: use node: prefix to bypass require.cache call for builtins (#69)
See fastify/fastify-static#407
1 parent 514335a commit 6c97e35

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 URL = require('url')
3+
const URL = require('node:url')
44
const { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require('./lib/utils')
55
const SCHEMES = require('./lib/schemes')
66

0 commit comments

Comments
 (0)