Skip to content

Commit

Permalink
fix(cli): update esbuild options for better compat (#5461)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler authored Jan 9, 2024
1 parent 30f9bef commit fc45930
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export function mockBrowserEnvironment(basePath: string): () => void {
)

const {unregister: unregisterESBuild} = registerESBuild({
target: 'node14',
target: 'node18',
format: 'cjs',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs'],
})

return function cleanupBrowserEnvironment() {
Expand Down

2 comments on commit fc45930

@vercel
Copy link

@vercel vercel bot commented on fc45930 Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

performance-studio – ./

performance-studio.sanity.build
performance-studio-git-next.sanity.build

@vercel
Copy link

@vercel vercel bot commented on fc45930 Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.