build: migrate from rollup to tsdown#1469
Merged
Merged
Conversation
Deleted unnecessary vendor UMD target in `tsdown.config.mts`
Contributor
size-limit report 📦
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1469 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 122 122
Branches 31 31
=========================================
Hits 122 122 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the motivation for this pull request?
Refactor the package build from Rollup to tsdown while preserving the existing published module layout, and remove the now-unused
dist/htmlparser2.jsbrowser bundle.What is the current behavior?
The package build is orchestrated through Rollup plus shell/codemod helpers, including a source-mutating ESM build flow. The build also emits
dist/htmlparser2.js, which is no longer used by the current test suite.What is the new behavior?
The package now builds through
tsdownwith explicit CJS, ESM, and UMD targets. The Rollup config and helper scripts are removed, the ESM smoke test is kept under__tests__/esm, ESLint/TS config is adjusted for the new bundler config file, anddist/htmlparser2.jsis no longer produced.plan.md
Checklist: