(config: Config, {plugin, local}, opts, context)
| 165 | } |
| 166 | |
| 167 | function pluginOpts(config: Config, {plugin, local}, opts, context) { |
| 168 | const keys = config.pluginScopeKeys(plugin); |
| 169 | const scopes = config.getOptionScopes(opts, keys); |
| 170 | if (local && plugin.defaults) { |
| 171 | // make sure plugin defaults are in scopes for local (not registered) plugins |
| 172 | scopes.push(plugin.defaults); |
| 173 | } |
| 174 | return config.createResolver(scopes, context, [''], { |
| 175 | // These are just defaults that plugins can override |
| 176 | scriptable: false, |
| 177 | indexable: false, |
| 178 | allKeys: true |
| 179 | }); |
| 180 | } |
no test coverage detected