Skip to content

Contributing Bun plugins via package.json #21859

@perezd

Description

@perezd

What is the problem this feature would solve?

I'd like to reduce setup friction for my module's dependents, who need a Bun plugin configured before using the module. Currently, they'd need to add to preload in bunfig.toml.

What is the feature you are proposing to solve the problem?

Ideally, Bun would automatically preload TypeScript files that I could declare in my module's package.json, allowing me to contribute an array of module-relative files to the preload key that would be properly resolved.

What alternatives have you considered?

Providing a README.md of instructions and hoping the end user notices the extra setup steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bun.jsSomething to do with a Bun-specific APIenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions