-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGridPremium] Fix Excel export Web Worker demo not working in dev mode #16517
Conversation
Deploy preview: https://deploy-preview-16517--material-ui-x.netlify.app/ Updated pages: |
There was a problem hiding this comment.
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
There was a problem hiding this 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 👍
Cherry-pick PRs will be created targeting branches: v7.x |
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.