Skip to content

Commit

Permalink
fix: ui-kitten metro config
Browse files Browse the repository at this point in the history
  • Loading branch information
edenstrom committed Oct 6, 2021
1 parent 18ed862 commit 5fdc3d7
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions apps/skolplattformen-sthlm/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
})

0 comments on commit 5fdc3d7

Please sign in to comment.