Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rolldown/tsdown
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.21.0
Choose a base ref
...
head repository: rolldown/tsdown
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.21.1
Choose a head ref
  • 18 commits
  • 80 files changed
  • 5 contributors

Commits on Mar 5, 2026

  1. fix(css): handle virtual module IDs from framework plugins

    Move CSS processing from `load` to `transform` hook so framework
    plugins (e.g. Vue SFC) can load virtual modules first. This prevents
    ENOENT errors when the CSS plugin tried to read virtual paths like
    `MyButton.vue?vue&type=style&index=0&lang.css` from disk.
    
    closes #800
    sxzz committed Mar 5, 2026
    Configuration menu
    Copy the full SHA
    c421fa5 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2026

  1. chore(deps): update all non-major dependencies (#803)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 6, 2026
    Configuration menu
    Copy the full SHA
    bf9f2e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    848a7b7 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2026

  1. chore: upgrade deps

    sxzz committed Mar 7, 2026
    Configuration menu
    Copy the full SHA
    42b562f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f915b43 View commit details
    Browse the repository at this point in the history
  3. fix(css): ignore css imports with URL query (#806)

    Co-authored-by: Kevin Deng <sxzz@sxzz.moe>
    ocavue and sxzz authored Mar 7, 2026
    Configuration menu
    Copy the full SHA
    c1d23a9 View commit details
    Browse the repository at this point in the history
  4. feat(css): add css.inject option to preserve CSS imports in JS outp…

    …ut (#808)
    
    * feat(css): add `css.inject` option to preserve CSS imports in JS output
    
    When enabled, JS output retains `import './style.css'` statements pointing
    to emitted CSS files so consumers automatically load the CSS.
    
    - Add `css.inject` option to `CssOptions` (requires `@tsdown/css`)
    - Support deprecated `injectStyle` top-level option for tsup migration
    - Refactor `createCssPostHooks` into standalone `CssPostPlugin`
    - Return `Plugin[]` from both `CssPlugin` functions
    - Fix CSS asset hash resolution for async/split chunks
    - Add migration transform: `injectStyle: true` → `css: { inject: true }`
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    * fix(css): preserve JS sourcemap when injecting CSS imports
    
    Prepend a `;` to sourcemap mappings for each injected CSS import line,
    keeping the JS sourcemap accurate after code modification.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    * fix(css): rewrite pure CSS chunk imports in-place for correct order and sourcemap
    
    Instead of removing pure CSS chunk imports and prepending CSS imports
    (which reverses order and breaks sourcemap), swap the file extension
    in-place (.mjs/.cjs/.js → .css). This preserves both CSS cascade
    order and sourcemap line positions.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    * fix(css): handle empty CSS wrapper chunks and dynamic entry injection
    
    - Add relaxed detection in removePureCssChunks for wrapper chunks (JS
      files that only import CSS) while preserving entry/dynamic entry chunks
    - Exclude isEntry and isDynamicEntry from pureCssChunks in inject plugin
      so dynamic entries get CSS imports prepended correctly
    - Add test for shared CSS-only chunk import rewriting
    
    * [autofix.ci] apply automated fixes
    
    * refactor
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    3 people authored Mar 7, 2026
    Configuration menu
    Copy the full SHA
    ad74582 View commit details
    Browse the repository at this point in the history
  5. feat(css)!: move all CSS support to @tsdown/css package (#809)

    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    sxzz and autofix-ci[bot] authored Mar 7, 2026
    Configuration menu
    Copy the full SHA
    1b1a172 View commit details
    Browse the repository at this point in the history
  6. feat(css): support ?inline query for CSS imports (#810)

    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    sxzz and autofix-ci[bot] authored Mar 7, 2026
    Configuration menu
    Copy the full SHA
    b737941 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8e3fa9c View commit details
    Browse the repository at this point in the history
  8. docs: comprehensive documentation review and update

    - Fix `greet`/`hello` inconsistency in cjs-default examples (EN + ZH)
    - Add missing `css.inject` option documentation (EN + ZH)
    - Add missing CLI options: `--workspace`, `--filter`, `--unbundle`, `--fail-on-warn`, `--attw` (EN + ZH)
    - Standardize deprecated flag formatting with `::: warning` admonitions
    - Expand FAQ with 4 new entries (EN + ZH)
    - Add practical hook usage examples (EN + ZH)
    - Standardize Chinese quotation marks to 「」
    - Fix Chinese translation fluency issues
    - Refresh skills: update GENERATION.md, SKILL.md, README.md
    - Add 5 new skill reference files (solid, svelte, introduction, faq, benchmark)
    - Update CLI and CSS skill references with new options
    sxzz committed Mar 7, 2026
    Configuration menu
    Copy the full SHA
    73d7d0f View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2026

  1. chore(deps): update all non-major dependencies (#805)

    * chore(deps): update all non-major dependencies
    
    * [autofix.ci] apply automated fixes
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    renovate[bot] and autofix-ci[bot] authored Mar 9, 2026
    Configuration menu
    Copy the full SHA
    26bd50d View commit details
    Browse the repository at this point in the history
  2. docs: remove FAQ additions and simplify hooks examples

    - Revert faq.md to original (EN + ZH)
    - Remove concrete code from hooks examples, keep descriptions only
    - Remove guide-faq.md skill reference
    - Update file counts in skills metadata
    sxzz committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    05dabf4 View commit details
    Browse the repository at this point in the history
  3. feat(css): support node_modules package resolution (#812)

    Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
    sxzz and claude authored Mar 9, 2026
    Configuration menu
    Copy the full SHA
    b06b421 View commit details
    Browse the repository at this point in the history
  4. chore(deps): update all non-major dependencies (#813)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 9, 2026
    Configuration menu
    Copy the full SHA
    7aa0d7d View commit details
    Browse the repository at this point in the history
  5. chore(deps): update dependency vite to ^8.0.0-beta.18 (#814)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 9, 2026
    Configuration menu
    Copy the full SHA
    34b7326 View commit details
    Browse the repository at this point in the history
  6. chore: upgrade unrun

    sxzz committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    38ca9c1 View commit details
    Browse the repository at this point in the history
  7. chore: release v0.21.1

    sxzz committed Mar 9, 2026
    Configuration menu
    Copy the full SHA
    2b1be7e View commit details
    Browse the repository at this point in the history
Loading