Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/pages/docs/reference/plugins-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ Below is an example from [Greenwood's codebase](https://github.com/ProjectEvergr

## Rollup

Though rare, there may be cases for tapping into the bundling process for Greenwood. If so, this plugin type allow users to tap into Greenwood's [**Rollup**](https://rollupjs.org/) configuration to provide any custom Rollup behaviors you may need.
Though rare, there may be some cases for tapping into the bundling phase of Greenwood's build pipeline, like [externalizing dependencies](https://rollupjs.org/configuration-options/#external) (e.g. the AWS SDK) or [pre-fixing specifiers](https://docs.deno.com/runtime/fundamentals/node/) for certain runtimes (e.g. `npm:`, `node:`). For these kinds of use cases, this plugin type allow users to tap into Greenwood's [**Rollup**](https://rollupjs.org/) bundling configuration to provide any custom Rollup behaviors you may need.

Simply use the `provider` method to return an array of Rollup plugins:

Expand Down Expand Up @@ -741,6 +741,8 @@ Simply use the `provider` method to return an array of Rollup plugins:

<!-- prettier-ignore-end -->

> Reminder: this plugin type will only to production builds, and _not_ during development. Resource plugins are the best way to handle transformations for development and production.

## Server

Server plugins allow developers to start and stop custom servers as part of the _development_ lifecycle of Greenwood.
Expand Down