Skip to content

Commit

Permalink
fix(module): slot transform sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Aug 10, 2023
1 parent 4c88eae commit 7558cf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/module.ts
Expand Up @@ -332,7 +332,10 @@ export default defineNuxtModule<ModuleOptions>({
code = code.replace(/<\/ContentSlot>/g, '</MDCSlot>')
code = code.replace(/<ContentSlot/g, '<MDCSlot')
code = code.replace(/(['"])ContentSlot['"]/g, '$1MDCSlot$1')
return code
return {
code,
map: { mappings: '' }
}
}
}
})
Expand Down

0 comments on commit 7558cf0

Please sign in to comment.