File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,14 @@ export function createPlugins(
220220 plugins . push ( pluginFunction ( pluginDefaultOptions ) )
221221 } else if ( typeof inputPluginsNames [ index ] [ 2 ] === "boolean" && inputPluginsNames [ index ] [ 2 ] === true ) {
222222 // plugin with options that override pluginDefaultOptions
223- plugins . push ( pluginFunction ( { ...pluginDefaultOptions , ...inputPluginsNames [ index ] [ 1 ] } ) )
223+ const pluginOptions = inputPluginsNames [ index ] [ 1 ]
224+ plugins . push (
225+ pluginFunction (
226+ typeof pluginOptions === "object"
227+ ? { ...pluginDefaultOptions , ...pluginOptions }
228+ : { ...pluginDefaultOptions , pluginOptions }
229+ )
230+ )
224231 } else {
225232 // plugin with options
226233 plugins . push ( pluginFunction ( inputPluginsNames [ index ] [ 1 ] ) )
You can’t perform that action at this time.
0 commit comments