We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
在 build-scripts 2.0 设计中支持的 plugin 设置包括以下两种:
PluginOption 的类型名称定位上不够清晰,跟其内部的 plugin 关系有重叠
备选方案:
统一导出 plugins 配置类型: type Plugin = PluginOption | PluginLegacy | [string, object] PluginOption 包含 { name, setup, runtime } / { name, config, runtime }
{ name, setup, runtime }
{ name, config, runtime }
type Plugin = _Plugin | PluginLegacy; interface _Plugin { name: string; setup?: Setup; runtime?: string; } PluginLegacy 就是兼容之前各种类型, 但是不推荐的
Activity
wssgcg1213 commentedon Jun 15, 2022