diff --git a/.changeset/stupid-ads-smoke.md b/.changeset/stupid-ads-smoke.md new file mode 100644 index 0000000000..588c5a5cb0 --- /dev/null +++ b/.changeset/stupid-ads-smoke.md @@ -0,0 +1,6 @@ +--- +"@clerk/nextjs": patch +"@clerk/shared": patch +--- + +Remove sourecmap generation. diff --git a/packages/astro/tsup.config.ts b/packages/astro/tsup.config.ts index 608373d993..439ca161c8 100644 --- a/packages/astro/tsup.config.ts +++ b/packages/astro/tsup.config.ts @@ -22,7 +22,7 @@ export default defineConfig(() => { PACKAGE_VERSION: `"${version}"`, }, bundle: true, - sourcemap: true, + sourcemap: false, format: ['esm'], external: ['astro', 'react', 'react-dom', 'node:async_hooks', '#async-local-storage'], }; diff --git a/packages/backend/tsup.config.ts b/packages/backend/tsup.config.ts index ff644ffe2f..4b36cf0238 100644 --- a/packages/backend/tsup.config.ts +++ b/packages/backend/tsup.config.ts @@ -12,7 +12,7 @@ export default defineConfig(overrideOptions => { const common: Options = { entry: ['src/index.ts', 'src/errors.ts', 'src/internal.ts', 'src/jwt/index.ts'], onSuccess: `cpy 'src/runtime/**/*.{mjs,js,cjs}' dist/runtime`, - sourcemap: true, + sourcemap: false, define: { PACKAGE_NAME: `"${name}"`, PACKAGE_VERSION: `"${version}"`, diff --git a/packages/chrome-extension/tsup.config.ts b/packages/chrome-extension/tsup.config.ts index 5ac8cc6afa..d15b2f35a5 100644 --- a/packages/chrome-extension/tsup.config.ts +++ b/packages/chrome-extension/tsup.config.ts @@ -14,7 +14,7 @@ export default defineConfig(overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, legacyOutput: true, define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/elements/tsup.config.ts b/packages/elements/tsup.config.ts index 8a60447c3a..8b93aacb6f 100644 --- a/packages/elements/tsup.config.ts +++ b/packages/elements/tsup.config.ts @@ -24,6 +24,6 @@ export default defineConfig(overrideOptions => { external: ['react', 'react-dom', 'next', '@statelyai/inspect'], format: ['cjs', 'esm'], minify: false, - sourcemap: true, + sourcemap: false, }; }); diff --git a/packages/expo/tsup.config.ts b/packages/expo/tsup.config.ts index 7dae145a8a..fb79fe1412 100644 --- a/packages/expo/tsup.config.ts +++ b/packages/expo/tsup.config.ts @@ -16,7 +16,7 @@ export default defineConfig(overrideOptions => { bundle: false, clean: true, minify: false, - sourcemap: true, + sourcemap: false, legacyOutput: true, define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/express/tsup.config.ts b/packages/express/tsup.config.ts index f402b39bbd..73110a32ea 100644 --- a/packages/express/tsup.config.ts +++ b/packages/express/tsup.config.ts @@ -11,7 +11,7 @@ export default defineConfig(overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, dts: true, define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/fastify/tsup.config.ts b/packages/fastify/tsup.config.ts index f1712f79fa..5316d3df5f 100644 --- a/packages/fastify/tsup.config.ts +++ b/packages/fastify/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig(overrideOptions => { onSuccess: 'tsc', minify: isProd, clean: true, - sourcemap: true, + sourcemap: false, format: ['cjs', 'esm'], legacyOutput: true, define: { diff --git a/packages/localizations/tsup.config.ts b/packages/localizations/tsup.config.ts index 7e69e5b33c..f913600358 100644 --- a/packages/localizations/tsup.config.ts +++ b/packages/localizations/tsup.config.ts @@ -7,7 +7,7 @@ export default defineConfig(_overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, dts: true, splitting: false, }; diff --git a/packages/nextjs/tsup.config.ts b/packages/nextjs/tsup.config.ts index ea7ced1935..83a0f9a281 100644 --- a/packages/nextjs/tsup.config.ts +++ b/packages/nextjs/tsup.config.ts @@ -17,7 +17,7 @@ export default defineConfig(overrideOptions => { bundle: false, clean: true, minify: false, - sourcemap: true, + sourcemap: false, legacyOutput: true, define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/react/tsup.config.ts b/packages/react/tsup.config.ts index 6ed467a3bc..011b0e69a0 100644 --- a/packages/react/tsup.config.ts +++ b/packages/react/tsup.config.ts @@ -21,7 +21,7 @@ export default defineConfig(overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, external: ['react', 'react-dom'], define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/remix/tsup.config.ts b/packages/remix/tsup.config.ts index 7dae145a8a..fb79fe1412 100644 --- a/packages/remix/tsup.config.ts +++ b/packages/remix/tsup.config.ts @@ -16,7 +16,7 @@ export default defineConfig(overrideOptions => { bundle: false, clean: true, minify: false, - sourcemap: true, + sourcemap: false, legacyOutput: true, define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/sdk-node/tsup.config.ts b/packages/sdk-node/tsup.config.ts index f402b39bbd..73110a32ea 100644 --- a/packages/sdk-node/tsup.config.ts +++ b/packages/sdk-node/tsup.config.ts @@ -11,7 +11,7 @@ export default defineConfig(overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, dts: true, define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/shared/tsup.config.ts b/packages/shared/tsup.config.ts index 12bb36aac3..0f6e7491c7 100644 --- a/packages/shared/tsup.config.ts +++ b/packages/shared/tsup.config.ts @@ -15,7 +15,7 @@ export default defineConfig(overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, dts: true, external: ['react', 'react-dom'], esbuildPlugins: [WebWorkerMinifyPlugin as any], diff --git a/packages/tailwindcss-transformer/tsup.config.ts b/packages/tailwindcss-transformer/tsup.config.ts index d8131fdc2c..45436cd9db 100644 --- a/packages/tailwindcss-transformer/tsup.config.ts +++ b/packages/tailwindcss-transformer/tsup.config.ts @@ -19,6 +19,6 @@ export default defineConfig(overrideOptions => { external: ['react', 'react-dom'], format: ['cjs', 'esm'], minify: false, - sourcemap: true, + sourcemap: false, }; }); diff --git a/packages/tanstack-start/tsup.config.ts b/packages/tanstack-start/tsup.config.ts index 601e3e57e5..b9e07a2d61 100644 --- a/packages/tanstack-start/tsup.config.ts +++ b/packages/tanstack-start/tsup.config.ts @@ -15,7 +15,7 @@ export default defineConfig(overrideOptions => { bundle: true, clean: true, minify: false, - sourcemap: true, + sourcemap: false, treeshake: true, format: 'esm', outDir: './dist', diff --git a/packages/testing/tsup.config.ts b/packages/testing/tsup.config.ts index c11058b56c..c77eece1cb 100644 --- a/packages/testing/tsup.config.ts +++ b/packages/testing/tsup.config.ts @@ -11,7 +11,7 @@ export default defineConfig(overrideOptions => { onSuccess: 'tsc', minify: isProd, clean: true, - sourcemap: true, + sourcemap: false, format: ['cjs', 'esm'], define: { PACKAGE_NAME: `"${name}"`, diff --git a/packages/types/tsup.config.ts b/packages/types/tsup.config.ts index 992fe31fd0..e25f227b6b 100644 --- a/packages/types/tsup.config.ts +++ b/packages/types/tsup.config.ts @@ -7,7 +7,7 @@ export default defineConfig(() => { }, minify: false, clean: true, - sourcemap: true, + sourcemap: false, format: ['cjs', 'esm'], legacyOutput: true, dts: true, diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.ts index cb4bf4d684..553277a60a 100644 --- a/packages/ui/tsup.config.ts +++ b/packages/ui/tsup.config.ts @@ -49,7 +49,7 @@ export default defineConfig(overrideOptions => { external: ['react', 'react-dom'], format: ['cjs', 'esm'], minify: false, - sourcemap: true, + sourcemap: false, esbuildPlugins: [tailwindcssTransformerCode], }; });