Skip to content

feat(build): Allow for multiple bundle entrypoints #5143

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

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented May 20, 2022

This adds the ability to create more than one bundle with a single bundle rollup config, by specifying multiple entrypoints. Because multiple files can now be output, the way they're named also needed to be switched, from providing a static string to providing a function to determine the name of each bundle. Finally, the name of the option (input) was changed to match the corresponding option used in the building of npm packages (entryponts).

@github-actions
Copy link
Contributor

github-actions bot commented May 20, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.41 KB (-3.61% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.11 KB (-6.97% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.26 KB (-3.19% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 53.8 KB (-7.2% 🔽)
@sentry/browser - Webpack (gzipped + minified) 20 KB (-13.92% 🔽)
@sentry/browser - Webpack (minified) 63.34 KB (-22.49% 🔽)
@sentry/react - Webpack (gzipped + minified) 20.03 KB (-13.96% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 43.5 KB (-9.48% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.1 KB (-3.76% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 23.63 KB (-3.5% 🔽)

@lobsterkatie lobsterkatie force-pushed the kmclb-allow-multiple-entrypoints-in-bundle-configs branch from fb23e68 to 6cccfef Compare May 20, 2022 07:07
@lobsterkatie lobsterkatie merged commit 7c71013 into 7.x May 20, 2022
@lobsterkatie lobsterkatie deleted the kmclb-allow-multiple-entrypoints-in-bundle-configs branch May 20, 2022 07:22
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
This adds the ability to create more than one bundle with a single bundle rollup config, by specifying multiple entrypoints. Because multiple files can now be output, the way they're named also needed to be switched, from providing a static string to providing a function to determine the name of each bundle. Finally, the name of the option (`input`) was changed to match the corresponding option used in the building of npm packages (`entryponts`).
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone May 30, 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.

3 participants