Skip to content

Commit

Permalink
fix(sanity/cli): issue with plugins would crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Jul 23, 2024
1 parent c0cec21 commit 3682286
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/sanity/src/_internal/cli/server/getViteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,7 @@ export async function getViteConfig(options: ViteOptions): Promise<InlineConfig>
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
Expand Down

0 comments on commit 3682286

Please sign in to comment.