svelte.config.js 601 B

1234567891011121314151617
  1. import adapter from '@sveltejs/adapter-auto';
  2. /** @type {import('@sveltejs/kit').Config} */
  3. const config = {
  4. kit: {
  5. // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
  6. // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
  7. // See https://svelte.dev/docs/kit/adapters for more information about adapters.
  8. adapter: adapter(),
  9. },
  10. vitePlugin: {
  11. dynamicCompileOptions: ({ filename }) =>
  12. filename.includes('node_modules') ? undefined : { runes: true },
  13. },
  14. };
  15. export default config;