refactor(plugins): switched from require to await import() when loading plugins (#2558)

This commit is contained in:
Matt Travi
2022-09-17 14:10:05 -07:00
committed by GitHub
parent 466898b3b4
commit 4cd3641dbf
7 changed files with 98 additions and 83 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ Your configuration for the \`${type}\` plugin is \`${stringify(pluginConf)}\`.`,
message: 'The `plugins` configuration is invalid.',
details: `The [plugins](${linkify(
'docs/usage/configuration.md#plugins'
)}) option must be an array of plugin definions. A plugin definition is an npm module name, optionally wrapped in an array with an object.
)}) option must be an array of plugin definitions. A plugin definition is an npm module name, optionally wrapped in an array with an object.
The invalid configuration is \`${stringify(plugin)}\`.`,
}),