From 2b40b79df5099581d59cd471016e624c49f01907 Mon Sep 17 00:00:00 2001 From: Uzlopak Date: Tue, 22 Nov 2022 08:16:12 +0100 Subject: [PATCH] fix: add missing exports for nodenext compatibility (#344) --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index ed2f6bf..880af2f 100644 --- a/index.js +++ b/index.js @@ -518,3 +518,5 @@ module.exports = fp(fastifyStatic, { fastify: '4.x', name: '@fastify/static' }) +module.exports.default = fastifyStatic +module.exports.fastifyStatic = fastifyStatic