diff --git a/src/index.js b/src/index.js index 98b23ea..17bc470 100644 --- a/src/index.js +++ b/src/index.js @@ -22,6 +22,6 @@ async function fastifyDisablecache(server) { module.exports = fp(fastifyDisablecache, { fastify: "4.x", name: "fastify-disablecache", -}); -module.exports.default = fastifyDisablecache; -module.exports.fastifyDisablecache = fastifyDisablecache; +}); // CommonJS export +module.exports.default = fastifyDisablecache; // ESM default export +module.exports.fastifyDisablecache = fastifyDisablecache; // TypeScript and named export