fix: ui-kitten metro config

This commit is contained in:
Jonathan Edenström 2021-10-06 07:09:54 +02:00
parent 18ed8620af
commit 5fdc3d71ad
1 changed files with 18 additions and 28 deletions

View File

@ -3,34 +3,24 @@ const { withNxMetro } = require('@nrwl/react-native')
const MetroConfig = require('@ui-kitten/metro-config')
const evaConfig = {
evaPackage: '@eva-design/eva',
customMappingPath: './design/mapping.json',
customMappingPath: './apps/skolplattformen-sthlm/design/mapping.json',
}
// const evaMetroConfig = MetroConfig.create(evaConfig, {transformer: {
// getTransformOptions: async () => ({
// transform: {
// experimentalImportSupport: false,
// inlineRequires: true,
// },
// }),
// },})
module.exports = withNxMetro(
{
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
const evaMetroConfig = MetroConfig.create(evaConfig, {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
{
// Change this to true to see debugging info.
// Useful if you have issues resolving modules
debug: false,
// all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx'
extensions: [],
}
)
})
module.exports = withNxMetro(evaMetroConfig, {
// Change this to true to see debugging info.
// Useful if you have issues resolving modules
debug: false,
// all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx'
extensions: [],
})