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