Skip to content

Commit

Permalink
docs: clarify rollup plugin order (#7193)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Mar 6, 2022
1 parent b81e1a2 commit cf6c817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/api-plugin.md
Expand Up @@ -458,7 +458,7 @@ In general, as long as a Rollup plugin fits the following criteria then it shoul
- It doesn't use the [`moduleParsed`](https://rollupjs.org/guide/en/#moduleparsed) hook.
- It doesn't have strong coupling between bundle-phase hooks and output-phase hooks.
If a Rollup plugin only makes sense for the build phase, then it can be specified under `build.rollupOptions.plugins` instead.
If a Rollup plugin only makes sense for the build phase, then it can be specified under `build.rollupOptions.plugins` instead. It will work the same as a Vite plugin with `enforce: 'post'` and `apply: 'build'`.
You can also augment an existing Rollup plugin with Vite-only properties:
Expand Down

0 comments on commit cf6c817

Please sign in to comment.