Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

lforst
Copy link
Member

@lforst lforst commented Jan 19, 2023

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
Member Author

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
Contributor

size-limit report 📦

Path Size
@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 master Jan 19, 2023
@lforst lforst deleted the lforst-fix-sdk-multiplexer-on-windows branch January 19, 2023 13:25
Sign up for free to 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