From 5fdc3d71adb8d9364c8c6b345de841f0f3f1de7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Edenstr=C3=B6m?= Date: Wed, 6 Oct 2021 07:09:54 +0200 Subject: [PATCH] fix: ui-kitten metro config --- apps/skolplattformen-sthlm/metro.config.js | 46 +++++++++------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/apps/skolplattformen-sthlm/metro.config.js b/apps/skolplattformen-sthlm/metro.config.js index 917701d2c..d4f904015 100644 --- a/apps/skolplattformen-sthlm/metro.config.js +++ b/apps/skolplattformen-sthlm/metro.config.js @@ -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: [], +})