Skip to content

Commit

Permalink
fix: transpile yaml package (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Jan 27, 2025
1 parent 3d46472 commit 7aa3c0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export default defineNuxtModule<ModuleOptions>({
headings: options.headings!
})

nuxt.options.build.transpile ||= []
nuxt.options.build.transpile.push('yaml')

if (options.highlight) {
// Enable unwasm for shiki
addWasmSupport(nuxt)
Expand Down

0 comments on commit 7aa3c0e

Please # to comment.