Skip to content

[Feature Request]: glob input patterns #8467

@KTrain5169

Description

@KTrain5169

What problem does this feature solve?

I have some TSX files that will be rendered as a webview in a VS Code extension, currently it's one .tsx per view.
In esbuild, I could just specify a glob pattern such as webview/**/*.tsx which would automatically build them and output them in the structure they were previously in, but with Rolldown there seems to be no equivalent.

What does the proposed API look like?

Probably something like this can be added to the config shape:

import { defineConfig } from 'rolldown';

export default defineConfig({
    input: 'webview/**/*.tsx',
    output: {
        dir: 'out/webview',
    }
});

I have no Rust knowledge so I wouldn't know how to implement it, sorry 😅

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions