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(bundle): include codecs chunks into bundle in bundle mode #517

Merged
merged 1 commit into from
Mar 21, 2023
Merged

fix(bundle): include codecs chunks into bundle in bundle mode #517

merged 1 commit into from
Mar 21, 2023

Conversation

NikGurev
Copy link
Contributor

previously webpack:bundle script created 610.bundle.min.js and 888.bundle.min.js files that caused incorrect referencing in other applications (examples: [ #511 , #479 , #439 ]).

Updated webpack config to include all chunks together. Actually, this approanch helped with incorrect referencing in embedded OHIF Viewer that we're using in our app

Previous dist build:
image

Current dist build:
MoMAAZXepB

@netlify
Copy link

netlify bot commented Mar 17, 2023

Deploy Preview for cornerstone-wado-image-loader ready!

Name Link
🔨 Latest commit 688661a
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-wado-image-loader/deploys/64146947d8209800089eb51b
😎 Deploy Preview https://deploy-preview-517--cornerstone-wado-image-loader.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@NikGurev
Copy link
Contributor Author

@sedghi @swederik could you please review and give a feedback? Thank you in advance

@swederik
Copy link
Member

Thanks! I think this is fine. Looks like an oversight on our part. Multiple chunks is okay for the dynamic import version but indeed we should only have one for the bundled UMD version of the library. I'll leave it to @sedghi to merge.

@sedghi
Copy link
Member

sedghi commented Mar 21, 2023

I will merge this, but interested to know why you are not using dynamic import one which is smaller and faster?

@sedghi sedghi changed the title fix: include codecs chunks into bundle in bundle mode fix(bundle): include codecs chunks into bundle in bundle mode Mar 21, 2023
@sedghi sedghi merged commit f6998be into cornerstonejs:master Mar 21, 2023
@sedghi
Copy link
Member

sedghi commented Mar 21, 2023

🎉 This PR is included in version 4.10.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants