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

chore(nextjs): Remove obsolete dataFetchers loader #5713

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Sep 8, 2022

This removes the dataFetchers loader and its associated files and dependencies, now that it's been supplanted by the proxy loader. It also changes the build config slightly - somehow, the presence of everything this PR deletes made it so the loaders files output themselves where we want them, even without the entryFileNames setting they ought to have needed. Alas, doing the deletions broke the spell, and now they won't build to the right place without entryFileNames, so this adds it. (Even though we've now reverted to what logically should be true, I'm still baffled, because what on earth was happening before?)

Note: Until we fully settle the CJS questions, I'm leaving isESM.ts in the SDK, even though after this change it will be (for the moment) unused.

Ref: #5505

@lobsterkatie lobsterkatie mentioned this pull request Sep 8, 2022
43 tasks
@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-remove-datafetchers-loader branch from 40db6c3 to 2a85b61 Compare September 9, 2022 07:17
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

rip jscodeshift dreams - maybe one day

@lobsterkatie
Copy link
Member Author

rip jscodeshift dreams - maybe one day

Oh, man, I know. All that AST stuff was hard work, LOL! Makes me sad to rip it all out so soon (even though I fully agree that its replacement is better). Ah, well...

@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-remove-datafetchers-loader branch from 2a85b61 to 74dde35 Compare September 9, 2022 22:02
@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.46 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified) 60.11 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.04 KB (-0.02% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 53.03 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 19.83 KB (0%)
@sentry/browser - Webpack (minified) 64.42 KB (0%)
@sentry/react - Webpack (gzipped + minified) 19.85 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 44.84 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.97 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.35 KB (-0.01% 🔽)

@lobsterkatie lobsterkatie merged commit efd32f0 into master Sep 9, 2022
@lobsterkatie lobsterkatie deleted the kmclb-nextjs-remove-datafetchers-loader branch September 9, 2022 22:33
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.

2 participants