Skip to content

Commit

Permalink
build(svelte): 修复 Svelte 无法解析 enum 等 TypeScript 特性问题 | Fix the issu…
Browse files Browse the repository at this point in the history
…e that Svelte cannot parse TypeScript features such as `enum`.
  • Loading branch information
Zuoqiu-Yingyi committed Nov 20, 2024
1 parent 9f9ffeb commit c7990e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
preprocess: vitePreprocess({ script: true }),
};

0 comments on commit c7990e1

Please sign in to comment.