You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,22 @@ terser (considered by default in production)
72
72
replace (considered by default in production)
73
73
```
74
74
75
-
You can pass an input plugin with their supported option:
75
+
### Override Default Options for the plugins `[name, overriddenOptions, true]`
76
+
77
+
You can pass an input plugin with the overridden options using the `[name, overriddenOptions, true]` syntax.
78
+
79
+
```ts
80
+
const plugins =createPlugins([
81
+
["ts", { tsconfig: "./lib/tsconfig.json" }, true], // third element makes the config merge to and override the default options
82
+
"js",
83
+
])
84
+
```
85
+
86
+
The difference with the next syntax is that these are merged into the default options and if there is a config with the same name, they override it, but the next syntax completely replaces the default options.
87
+
88
+
### Completely New Options for the plugins `[name, newOptions]`
89
+
90
+
You can pass an input plugin with their supported option using the `[name, newOptions]` syntax:
0 commit comments