Skip to content

Commit

Permalink
fix: remove deprecated API from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Aug 12, 2021
1 parent 73d8a64 commit 73988ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ module.exports = {
use `createPlugins` to create the plugins you need.

```ts
createPlugins(
inputPlugins: Array<Plugin> = ["ts", "babel", "json", "coffee"], // languages/plugins you use
extraPlugins?: Array<any> // pass any extra plugins functions as an array like `[multientry()]`
)
createPlugins(inputPlugins: Array<Plugin> = ["ts", "babel", "json", "coffee"])
```

which `inputPlugins` is among these:
Expand Down Expand Up @@ -114,6 +111,7 @@ Passing false as the third argument results in discarding the `rollup-config-ato
For adding extra plugins, you can simply concatenate your plugins with the output of `createPlugins`

```ts
import multyentry from "@rollup/plugin-multi-entry"
import multyentry from "@rollup/plugin-multi-entry" // an extra plugin
const plugins = [...createPlugins(["ts"]), multyentry()]
```

0 comments on commit 73988ff

Please sign in to comment.