Skip to content

Commit 5ffcdd9

Browse files
committed
chore: add the list of all plugins to readme
1 parent 90f7722 commit 5ffcdd9

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,16 @@ json
6868
css
6969
wasm
7070
visualizer
71-
terser (considered by default in production)
72-
replace (considered by default in production)
71+
```
72+
73+
Default plugins configured automatically:
74+
```
75+
commonjs
76+
resolve
77+
autoExternal
78+
sourcemaps
79+
terser (in production)
80+
replace (in production)
7381
```
7482

7583
### Override Default Options for the plugins `[name, overriddenOptions, true]`
@@ -106,6 +114,8 @@ createPlugins(["ts"], [multyentry()])
106114
```
107115

108116

117+
-----------
118+
109119
### createConfig (not recommend)
110120

111121
This is a simple wrapper around the rollup config, so it is recommended to use the default Rollup syntax.

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export type Plugin =
3333
| "sourcemaps"
3434
| "commonjs"
3535
| "resolve"
36+
| "autoExternal"
3637
| ["ts", typeof typescript, boolean?]
3738
| ["babel", typeof babel, boolean?]
3839
| ["coffee", typeof coffeescript, boolean?]
@@ -45,6 +46,7 @@ export type Plugin =
4546
| ["sourcemaps", typeof sourcemaps, boolean?]
4647
| ["commonjs", typeof commonjs, boolean?]
4748
| ["resolve", typeof resolve, boolean?]
49+
| ["autoExternal", typeof resolve, boolean?]
4850

4951
export function createPlugins(
5052
inputPluginsNames: Array<Plugin> = ["ts", "js", "json", "coffee"],

0 commit comments

Comments
 (0)