The target JavaScript environment the plugin should be applied to.
bun
: The default environment when usingbun run
orbun
to load a scriptbrowser
: The plugin will be applied to browser buildsnode
: The plugin will be applied to Node.js builds
If unspecified, it is assumed that the plugin is compatible with all targets.
This field is not read by Bun.plugin, only Bun.build and bun build