Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
🐛 Fix "Cannot load tranformers/module"
  • Loading branch information
coyotte508 committed Apr 4, 2023
commit 971cecbea9f898746a5bdde5a76846e1e4e0fd0d
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