Skip to content

fix(nextjs): Fix SDK multiplexer loader on Windows - #6866

Merged
lforst merged 1 commit into
masterfrom
lforst-fix-sdk-multiplexer-on-windows
Jan 19, 2023
Merged

fix(nextjs): Fix SDK multiplexer loader on Windows#6866
lforst merged 1 commit into
masterfrom
lforst-fix-sdk-multiplexer-on-windows

Conversation

@lforst

Copy link
Copy Markdown
Contributor

The SDK multiplexer loader in the Next.js SDK responsible for routing imports to the correct runtime SDK wasn't matching files correctly on Windows. This PR adjusts the loader matching to be able to deal with Windows paths.

Fixes#6858

use: [
{
loader: path.resolve(__dirname, 'loaders/sdkMultiplexerLoader.js'),
loader: path.resolve(__dirname, 'loaders', 'sdkMultiplexerLoader.js'),

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to sneak this in

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser - ES5 CDN Bundle (gzipped + minified)19.82 KB (+0.01% 🔺)
@sentry/browser - ES5 CDN Bundle (minified)61.47 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified)18.5 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (minified)54.77 KB (0%)
@sentry/browser - Webpack (gzipped + minified)20.21 KB (0%)
@sentry/browser - Webpack (minified)66.17 KB (0%)
@sentry/react - Webpack (gzipped + minified)20.24 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified)47.48 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)26.74 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)25.03 KB (+0.02% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified)43.27 KB (-0.82% 🔽)
@sentry/replay - Webpack (gzipped + minified)38.04 KB (-1.01% 🔽)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified)60.53 KB (-0.59% 🔽)

@lforst
lforst merged commit ecdb01c into masterJan 19, 2023
@lforst
lforst deleted the lforst-fix-sdk-multiplexer-on-windows branch January 19, 2023 13:25
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] TypeError when running Next.js app with middleware and latest @sentry/nextjs package

3 participants

@lforst@timfish@AbhiPrasad