svelte.config.js 679 B

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