Skip to content

ref(build): Stop building Vue CDN bundles by default #4839

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

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 1, 2022

As recently discovered, neither Vue nor WASM bundles are uploaded as build artifacts or published to our CDN. Therefore it is not necessary to build them by default (i.e. every time when when running yarn build).

This PR removes bundle creation from the yarn build(:watch) scripts so that they are not built anymore by default. It is still possible to build them by explicitly by running yarn build:bundle(:watch).

Tiny additional change: added missing build dir in the yarn clean command for WASM.

ref: https://getsentry.atlassian.net/browse/WEB-782

neither Vue nor WASM bundles are uploaded as build artifacts or
published to our CDN. Therefore it is not necessary to build them
by default (i.e. when running `yarn build`). It is still possible
to build them by explicitly running `yarn build:bundle(:watch)`.
@Lms24 Lms24 requested a review from lobsterkatie April 1, 2022 10:17
@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.07 KB (+0.01% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 64.54 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.78 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 57.95 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 23.21 KB (0%)
@sentry/browser - Webpack (minified) 82.45 KB (0%)
@sentry/react - Webpack (gzipped + minified) 23.25 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 48 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.98 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.41 KB (+0.01% 🔺)

@AbhiPrasad
Copy link
Member

Ah it seems the WASM bundles are needed for the tests?

@Lms24
Copy link
Member Author

Lms24 commented Apr 1, 2022

Right, did not think about that 🤔 That's a good point. So I guess WASM bundles should in fact stay.

@Lms24 Lms24 changed the title ref(build): Stop building Vue and WASM CDN bundles by default ref(build): Stop building Vue CDN bundles by default Apr 1, 2022
gonna be taken care of in other PR
@Lms24 Lms24 merged commit 43e861d into master Apr 1, 2022
@Lms24 Lms24 deleted the lms-deactivate-bundles-vue-wasm branch April 1, 2022 15:19
@AbhiPrasad AbhiPrasad added this to the Pre 7.0.0 Work milestone Apr 6, 2022
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