(config, {plugin, local}, opts, context)
| 173 | } |
| 174 | |
| 175 | function pluginOpts(config, {plugin, local}, opts, context) { |
| 176 | const keys = config.pluginScopeKeys(plugin); |
| 177 | const scopes = config.getOptionScopes(opts, keys); |
| 178 | if (local && plugin.defaults) { |
| 179 | // make sure plugin defaults are in scopes for local (not registered) plugins |
| 180 | scopes.push(plugin.defaults); |
| 181 | } |
| 182 | return config.createResolver(scopes, context, [''], { |
| 183 | // These are just defaults that plugins can override |
| 184 | scriptable: false, |
| 185 | indexable: false, |
| 186 | allKeys: true |
| 187 | }); |
| 188 | } |
no test coverage detected