Skip to content

Commit 1e99042

Browse files
committed
fix broken sentryWebpackPlugin import
1 parent 3a45dd4 commit 1e99042

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getSentryRelease } from '@sentry/node';
22
import { dropUndefinedKeys, logger } from '@sentry/utils';
3-
import * as SentryWebpackPlugin from '@sentry/webpack-plugin';
3+
import { default as SentryWebpackPlugin } from '@sentry/webpack-plugin';
44
import * as fs from 'fs';
55
import * as path from 'path';
66
import { DefinePlugin, WebpackPluginInstance } from 'webpack';
@@ -109,8 +109,6 @@ export function constructWebpackConfigFunction(
109109
}
110110

111111
newConfig.plugins.push(
112-
// @ts-ignore Our types for the plugin are messed up somehow - TS wants this to be `SentryWebpackPlugin.default`,
113-
// but that's not actually a thing
114112
new SentryWebpackPlugin(getWebpackPluginOptions(buildContext, userSentryWebpackPluginOptions)),
115113
);
116114
}

0 commit comments

Comments
 (0)