add features
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
const createVirtualModule = ({ config, navigations }) => ({
|
||||
const createVirtualModule = ({ config, navigations, features }) => ({
|
||||
getConfig: () => config,
|
||||
getConfigValue: (key) => config[key],
|
||||
getConfigValue: (pkg: string) => config[pkg],
|
||||
getNavigations: () => navigations,
|
||||
getNavigationsValue: (key) => navigations[key],
|
||||
getNavigationsValue: (pkg: string) => navigations[pkg],
|
||||
getAllFeatures: () => features,
|
||||
getFeatures: (pkg: string) => features[pkg]
|
||||
})
|
||||
|
||||
export const defineVirtualModule = (params) => {
|
||||
|
||||
Reference in New Issue
Block a user