Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins (#108
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 1, 2023
1 parent 824d77f commit 725c938
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { join } = require('path')
const { join } = require('node:path')
const fastify = require('fastify')({
logger: {
prettyPrint: true
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { join } = require('path')
const { join } = require('node:path')
const fp = require('fastify-plugin')
const Piscina = require('piscina')

Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { join } = require('path')
const { join } = require('node:path')
const { test } = require('tap')
const Fastify = require('fastify')
const Hotwire = require('..')
Expand Down

0 comments on commit 725c938

Please sign in to comment.