8000 [real] compensate for output path differences between webpack versions · sdemjanenko/sentry-javascript@ce2de89 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce2de89

Browse files
committed
[real] compensate for output path differences between webpack versions
1 parent 2bc0845 commit ce2de89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/nextjs/src/utils/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export function withSentryConfig(
153153
}
154154

155155
const newWebpackExport = (config: WebpackConfig, options: WebpackOptions): WebpackConfig => {
156+
console.log('webpack config:', config);
157+
debugger;
156158
// if we're building server code, store the webpack output path as an env variable, so we know where to look for the
157159
// webpack-processed version of `sentry.server.config.js` when we need it
158160
if (config.target === 'node') {
@@ -187,6 +189,7 @@ export function withSentryConfig(
187189
// could also be fixed by using `bind`, but this is way simpler.)
188190
const origEntryProperty = newConfig.entry;
189191
newConfig.entry = () => injectSentry(origEntryProperty, options.isServer);
192+
console.log(newConfig.entry);
190193

191194
// Add the Sentry plugin, which uploads source maps to Sentry when not in dev
192195
newConfig.plugins.push(

0 commit comments

Comments
 (0)
0