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

[DataGridPremium] Fix Excel export Web Worker demo not working in dev mode #16517

Merged
merged 8 commits into from
Feb 11, 2025

Conversation

cherniavskii
Copy link
Member

@cherniavskii cherniavskii commented Feb 10, 2025

Fixes

I assume it works in production because of tree shaking, which is unavailable in dev mode.

I reorganized the code to ensure setupExcelExportWebWorker doesn't pull in things it doesn't use.
Also, added a subpath export: @mui/x-data-grid-premium/setupExcelExportWebWorker. It's optional, but looks like a much better option for usage in a WebWorker.

@cherniavskii cherniavskii added component: data grid This is the name of the generic UI component, not the React module! plan: Premium Impact at least one Premium user feature: Export labels Feb 10, 2025
@mui-bot
Copy link

mui-bot commented Feb 10, 2025

Deploy preview: https://deploy-preview-16517--material-ui-x.netlify.app/

Updated pages:

Generated by 🚫 dangerJS against e1217c9

@cherniavskii cherniavskii marked this pull request as ready for review February 10, 2025 13:45
@cherniavskii cherniavskii requested a review from a team February 10, 2025 13:45
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this file was ever used

@cherniavskii cherniavskii added needs cherry-pick The PR should be cherry-picked to master after merge v7.x labels Feb 10, 2025
Copy link
Member

@KenanYusuf KenanYusuf left a comment

Choose a reason for hiding this comment

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

Tested locally, working without errors 👍

@cherniavskii cherniavskii changed the title [DataGridPremium] Fix Excel export Web Worker demo not working locally [DataGridPremium] Fix Excel export Web Worker demo not working in dev mode Feb 11, 2025
@cherniavskii cherniavskii merged commit c737a5b into mui:master Feb 11, 2025
18 checks passed
@cherniavskii cherniavskii deleted the fix-excel-webworker-in-dev-mode branch February 11, 2025 09:56
Copy link

Cherry-pick PRs will be created targeting branches: v7.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Export needs cherry-pick The PR should be cherry-picked to master after merge plan: Premium Impact at least one Premium user v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants