diff --git a/.changeset/lazy-jars-brake.md b/.changeset/lazy-jars-brake.md new file mode 100644 index 00000000000..d5371571942 --- /dev/null +++ b/.changeset/lazy-jars-brake.md @@ -0,0 +1,5 @@ +--- +'@clerk/astro': patch +--- + +Remove the Vite `optimizeDeps` target override, which is no longer needed and logged a deprecation warning on Astro 7. diff --git a/packages/astro/src/integration/create-integration.ts b/packages/astro/src/integration/create-integration.ts index fc2bfa17fb8..6b5582d372b 100644 --- a/packages/astro/src/integration/create-integration.ts +++ b/packages/astro/src/integration/create-integration.ts @@ -73,12 +73,6 @@ function createIntegration() external: ['node:async_hooks'], }, - // We need this for top-level await - optimizeDeps: { - esbuildOptions: { - target: 'es2022', - }, - }, build: { target: 'es2022', rollupOptions: {