Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins (#430
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Fdawgs authored Dec 13, 2024
1 parent fdb9f68 commit 28cf1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/find-plugins.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { readdir } = require('node:fs/promises')
const { relative, join } = require('path')
const { relative, join } = require('node:path')
const runtime = require('./runtime')

async function findPlugins (dir, options) {
Expand Down
2 changes: 1 addition & 1 deletion test/issues/369/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { test } = require('tap')
const Fastify = require('fastify')
const path = require('path')
const path = require('node:path')
const autoload = require('../../..')

test('Should throw an error when trying to load invalid hooks', async (t) => {
Expand Down

0 comments on commit 28cf1db

Please sign in to comment.