From 3682286db2b844a001bf2dddffc0f27bc8628dc1 Mon Sep 17 00:00:00 2001 From: RitaDias Date: Tue, 23 Jul 2024 16:34:21 +0200 Subject: [PATCH] fix(sanity/cli): issue with plugins would crash --- packages/sanity/src/_internal/cli/server/getViteConfig.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/sanity/src/_internal/cli/server/getViteConfig.ts b/packages/sanity/src/_internal/cli/server/getViteConfig.ts index 50dd3aa7422..12d84f0a179 100644 --- a/packages/sanity/src/_internal/cli/server/getViteConfig.ts +++ b/packages/sanity/src/_internal/cli/server/getViteConfig.ts @@ -86,13 +86,7 @@ export async function getViteConfig(options: ViteOptions): Promise const defaultFaviconsPath = path.join(path.dirname(sanityPkgPath), 'static', 'favicons') const staticPath = `${basePath}static` - const conditions = [ - 'import', - 'browser', - // the `es2015` condition is primarily rxjs - // https://github.com/ReactiveX/rxjs/blob/4a2d0d29a7b17607e74afcb6fb8037fe58ef9021/package.json#L22 - 'es2015', - ] + const conditions = ['import', 'browser'] const viteConfig: InlineConfig = { // Define a custom cache directory so that sanity's vite cache