Skip to content

Commit 7aa3c0e

Browse files
authored
fix: transpile yaml package (#331)
1 parent 3d46472 commit 7aa3c0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ export default defineNuxtModule<ModuleOptions>({
6868
headings: options.headings!
6969
})
7070

71+
nuxt.options.build.transpile ||= []
72+
nuxt.options.build.transpile.push('yaml')
73+
7174
if (options.highlight) {
7275
// Enable unwasm for shiki
7376
addWasmSupport(nuxt)

0 commit comments

Comments
 (0)