Skip to content

Commit

Permalink
🐛 Fix "Cannot load tranformers/module" (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 authored Apr 4, 2023
1 parent 0d4ae22 commit e7ebd5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kit/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ const config = {
inferenceSnippetPreprocess,
tokenizersLangPreprocess,
mdsvexPreprocess,
preprocess({ sourceMap: Boolean(process.env.DOCS_SOURCEMAP) })
preprocess({
sourceMap: Boolean(process.env.DOCS_SOURCEMAP),
// So there can be code snippets with <script type="module"> in the docs
preserve: ["module"]
})
],

kit: {
Expand Down

0 comments on commit e7ebd5f

Please sign in to comment.