From 9d0236b4de261dc87778afb9ddb13ddd303a4c4d Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Mon, 22 Aug 2022 19:00:16 +0200 Subject: [PATCH] fix: add `remark-github` plugin to bundle (#34) --- src/module.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/module.ts b/src/module.ts index b8f7565..39a60d7 100644 --- a/src/module.ts +++ b/src/module.ts @@ -91,6 +91,11 @@ export default defineNuxtModule({ context.markdown.remarkPlugins = context.markdown.remarkPlugins || {} context.markdown.remarkPlugins['remark-github'] = { repository: `${options.owner}/${options.repo}` } }) + // Add `remark-github` plugin to bundle + nuxt.hook('nitro:config', (nitroConfig) => { + nitroConfig.externals.traceInclude = nitroConfig.externals.traceInclude || [] + nitroConfig.externals.traceInclude.push('node_modules/remark-github/index.js') + }) } const nitroConfig = nuxt.options.nitro