taro-plugin-component-config
v0.1.2
Published
A Taro plugin to modify component config.
Downloads
1
Readme
taro-plugin-component-config
A Taro plugin to customize component config.
Usage
config/index.js
:
const config = {
plugins: [
[
'taro-plugin-component-config',
{
additionalIncludes: ['picker-view', 'picker-view-column'],
},
],
],
}
Available Options
interface IComponentConfig {
includes: Set<string>
excludes: Set<string>
thirdPartyComponents: Set<string>
includeAll: boolean
}
export type PluginOptions = {
additionalIncludes?: string[]
additionalExcludes?: string[]
additionalThirdPartyComponents?: string[]
} & Partial<IComponentConfig>
If any field in IComponentConfig
(e.g. includes
) is specified, its corresponding additional
field (e.g. additionalIncludes
) will be ignored.
License
MIT.