From 8652e867c66d9eb0fc11f045eae5ad4aecef815b Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Tue, 14 Sep 2021 09:57:33 -0700 Subject: [PATCH] exclude dist versions, too --- packages/nextjs/src/config/webpack.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nextjs/src/config/webpack.ts b/packages/nextjs/src/config/webpack.ts index 6a1efaca3af7..76dd5a8382da 100644 --- a/packages/nextjs/src/config/webpack.ts +++ b/packages/nextjs/src/config/webpack.ts @@ -72,6 +72,8 @@ export function constructWebpackConfigFunction( alias: { ...newConfig.resolve?.alias, [path.resolve(buildContext.dir, `./node_modules/@sentry/tracing/esm/${excludedTracingDir}`)]: false, + // TODO It's not clear if it will ever pull from `dist` (in testing it never does), so we may not need this. + [path.resolve(buildContext.dir, `./node_modules/@sentry/tracing/dist/${excludedTracingDir}`)]: false, }, }; }