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

[Docs] improve rollup section of the bundling guide #32440

Merged
merged 5 commits into from
Jan 22, 2025

Conversation

jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Jan 6, 2025

  • rename rollup.config.js to rollup.config.mjs so it works regardless of the
    consuming package's module type

  • add a simpler configuration for packages that don't require polyfills/shims.

  • change bundle output format from iife to esm format as latter should be supported by recent browsers.

- rename `rollup.config.js` to `rollup.config.mjs` so it works regardless of the
consuming package's module type

- add a simpler configuration for packages that don't require polyfills/shims.
- bring dependencies up to their latest versions

- add `"type"="module"` for script blocks in HTML

- remove tsc from parcel samples as transpilation is natively supported now

- remove `"main": "index.js"` per parcel migration guide https://parceljs.org/getting-started/migration/#package.json%23main
@jeremymeng jeremymeng requested a review from a team as a code owner January 7, 2025 19:41
Copy link
Member

@MaryGao MaryGao left a comment

Choose a reason for hiding this comment

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

Thanks @jeremymeng for improving this and JiaoDi to help verify! LGTM :)~

@jeremymeng
Copy link
Member Author

thanks @v-jiaodi and @MaryGao for reviewing!

@jeremymeng jeremymeng merged commit 928c680 into Azure:main Jan 22, 2025
14 checks passed
@jeremymeng jeremymeng deleted the docs/improve-bundling-rollup branch January 22, 2025 19:03
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