From 780c6cc9ef3fc4cf9f8c0d71cb70a987d6f66fae Mon Sep 17 00:00:00 2001 From: dominikg Date: Thu, 8 Jul 2021 16:56:13 +0200 Subject: [PATCH] chore: remove vite config option knownJsSrcExtensions as vite won't support it in the near future [skip ci] --- packages/vite-plugin-svelte/src/utils/options.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite-plugin-svelte/src/utils/options.ts b/packages/vite-plugin-svelte/src/utils/options.ts index c29651f1e..dbbd3614a 100644 --- a/packages/vite-plugin-svelte/src/utils/options.ts +++ b/packages/vite-plugin-svelte/src/utils/options.ts @@ -175,11 +175,11 @@ export function buildExtraViteConfig( resolve: { mainFields: [...SVELTE_RESOLVE_MAIN_FIELDS], dedupe: allSvelteImports - }, + } // this option is still awaiting a PR in vite to be supported // see https://github.com/sveltejs/vite-plugin-svelte/issues/60 // @ts-ignore - knownJsSrcExtensions: options.extensions + // knownJsSrcExtensions: options.extensions }; if (options.isBuild && config.build?.ssr) {