Skip to content

Implement rolldown's composable filter API in Vite #21956

@benmccann

Description

@benmccann

Describe the bug

I tried to use rolldown's composable filter API, but it's not in the types yet. I had to cast to any as a result:

	// Vite's resolveId filter types don't yet expose the composable filter API,
	// but rolldown (the underlying bundler) supports it at runtime
	filter: /** @type {any} */ ([exclude(importerId(/index\.html$/)), include(importerId(/.+/))]),

Reproduction

sveltejs/kit@70626f9

Steps to reproduce

No response

System Info

vite 8.0.0-beta.15
rolldown 1.0.0-rc.6

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-nice-to-haveNot breaking anything but nice to have (priority)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions