We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
remark-github
1 parent abecd8d commit 9d0236bCopy full SHA for 9d0236b
src/module.ts
@@ -91,6 +91,11 @@ export default defineNuxtModule<ModuleOptions>({
91
context.markdown.remarkPlugins = context.markdown.remarkPlugins || {}
92
context.markdown.remarkPlugins['remark-github'] = { repository: `${options.owner}/${options.repo}` }
93
})
94
+ // Add `remark-github` plugin to bundle
95
+ nuxt.hook('nitro:config', (nitroConfig) => {
96
+ nitroConfig.externals.traceInclude = nitroConfig.externals.traceInclude || []
97
+ nitroConfig.externals.traceInclude.push('node_modules/remark-github/index.js')
98
+ })
99
}
100
101
const nitroConfig = nuxt.options.nitro
0 commit comments