{"version":3,"sources":["../../src/plugins/withInternal.ts"],"names":["EXPO_DEBUG","withInternal","config","internals","_internal","isDebug"],"mappings":";;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIO,MAAMA,UAAU,GAAG,uBAAQ,YAAR,EAAsB,KAAtB,CAAnB;AAEP;AACA;AACA;AACA;AACA;AACA;;;;AACO,MAAMC,YAEZ,GAAG,CAACC,MAAD,EAASC,SAAT,KAAuB;AACzB,MAAI,CAACD,MAAM,CAACE,SAAZ,EAAuB;AACrBF,IAAAA,MAAM,CAACE,SAAP,GAAmB,EAAnB;AACD;;AAEDF,EAAAA,MAAM,CAACE,SAAP,GAAmB;AACjBC,IAAAA,OAAO,EAAEL,UADQ;AAEjB,OAAGE,MAAM,CAACE,SAFO;AAGjB,OAAGD;AAHc,GAAnB;AAMA,SAAOD,MAAP;AACD,CAdM","sourcesContent":["import { ConfigPlugin } from '@expo/config-plugins';\nimport { boolish } from 'getenv';\n\nimport { ConfigFilePaths } from '../Config.types';\n\nexport const EXPO_DEBUG = boolish('EXPO_DEBUG', false);\n\n/**\n * Adds the _internal object.\n *\n * @param config\n * @param projectRoot\n */\nexport const withInternal: ConfigPlugin<\n { projectRoot: string; packageJsonPath?: string } & Partial\n> = (config, internals) => {\n if (!config._internal) {\n config._internal = {};\n }\n\n config._internal = {\n isDebug: EXPO_DEBUG,\n ...config._internal,\n ...internals,\n };\n\n return config;\n};\n"],"file":"withInternal.js"}