svelte.config.js 388 B

123456789101112
  1. import sveltePreprocess from "svelte-preprocess";
  2. const dev = process.env.NODE_ENV === "development";
  3. export const preprocess = sveltePreprocess({
  4. typescript: {
  5. // This returns compilation times back to what they're like without TypeScript
  6. // And still type checks for production builds
  7. // Use IDE tools for type checking during development instead
  8. transpileOnly: dev,
  9. },
  10. });