From 968816b9bd9ba3604620d68de60946fff3fc9f7d Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 10 Sep 2023 08:31:37 +0100 Subject: [PATCH] perf: use `node:` prefix to bypass require.cache call for builtins See https://github.com/fastify/fastify-static/pull/407 --- example/example.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.js b/example/example.js index d4d069d..db0d405 100644 --- a/example/example.js +++ b/example/example.js @@ -1,7 +1,7 @@ 'use strict' const fastify = require('fastify')() -const crypto = require('crypto') +const crypto = require('node:crypto') const authenticate = { realm: 'Westeros' } const validUsername = 'Tyrion'