github rolldown/rolldown v1.0.0-beta.56

14 hours ago

[1.0.0-beta.56] - 2025-12-22

✨ Support importerId hook filter

  • The hook filter supports filtering by importer ID
  • Useful when you only want to handle imports from specific modules
import { defineConfig } from 'rolldown';
import { importerId, include } from '@rolldown/pluginutils';

export default defineConfig({
  input: ['./index.ts'],
  plugins: [{
    name: 'my-plugin',
    resolveId: {
      filter: [include(importerId(/main\.js$/))],
      handler(id, importer) {
        // ...
      },
    },
  }],
});

💥 BREAKING CHANGES

🚀 Features

🐛 Bug Fixes

  • types: better "go to definition" experience for interface OutputPlugin (#7610) by @KazariEX
  • postBanner content should be placed after shebang (#7583) by @btea
  • use sanitized filename for preserve modules chunk name (#7603) by @IWANABETHATGUY
  • correct filter out unused cjs namespace (#7602) by @IWANABETHATGUY
  • watch: property respect notify.pollInternal and notify.compareContents (#7595) by @sapphi-red
  • make cleanDir work with default output directory (#7579) by @shulaoda
  • merge MISSING_NAME_OPTION_FOR_UMD_EXPORT error to MISSING_NAME_OPTION_FOR_IIFE_EXPORT error (#7566) by @sapphi-red
  • dev/hmr: ensure cjs modules with no exports reference correct module identifier (#7544) by @leegeunhyeok

🚜 Refactor

⚙️ Miscellaneous Tasks

  • renovate: add kill-port in ignoreDeps in renovate.json (#7619) by @sapphi-red
  • deps: update rust crates (#7617) by @renovate[bot]
  • deps: update npm packages (#7616) by @renovate[bot]
  • deps: update github-actions (#7615) by @renovate[bot]
  • ci: skip benchmark workflows on draft PRs (#7611) by @Copilot
  • deps: update dependency rolldown-plugin-dts to ^0.19.0 (#7607) by @renovate[bot]
  • deps: update dependency oxlint-tsgolint to v0.10.0 (#7601) by @renovate[bot]
  • deps: update dependency rolldown-plugin-dts to v0.18.4 (#7599) by @renovate[bot]
  • deps: update notify (#7594) by @sapphi-red
  • test-dev-server: add retry mechanism to hmr-full-bundle-mode tests (#7588) by @Copilot
  • deps: update napi to v3.7.1 (#7590) by @renovate[bot]
  • add JSDoc documentation for memfs type (#7587) by @Copilot
  • deps: update dependency oxlint to v1.34.0 (#7589) by @renovate[bot]
  • move some tests in ignored-by-unsupported-features that are passing (#7569) by @sapphi-red
  • deps: update dependency oxlint-tsgolint to v0.9.2 (#7582) by @renovate[bot]
  • deps: update oxc resolver to v11.16.0 (#7574) by @renovate[bot]
  • test/dev-server: don't run pnpm install during tests (#7560) by @hyf0
  • test/dev-server: use kill-port@1 to improve performance (#7575) by @hyf0
  • normalize error object to make some Rollup tests pass (#7562) by @sapphi-red
  • ci: separate dev-server(hmr) tests and normal tests (#7558) by @hyf0
  • ci: make native rolldown build reusable (#7557) by @hyf0
  • resolve some TODOs (#7561) by @sapphi-red

❤️ New Contributors

Co-authored-by: shulaoda 165626830+shulaoda@users.noreply.github.com

Don't miss a new rolldown release

NewReleases is sending notifications on new releases.