Files
inji-wallet/babel.config.js
2022-09-06 15:36:11 +08:00

39 lines
908 B
JavaScript

module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module:react-native-dotenv',
{
envName: 'APP_ENV',
moduleName: 'react-native-dotenv',
path: '.env',
blocklist: null,
allowlist: null,
safe: false,
allowUndefined: true,
verbose: false,
},
],
[
'babel-plugin-inline-import',
{
extensions: ['.md'],
},
],
[
'module-resolver',
{
alias: {
'isomorphic-webcrypto': 'isomorphic-webcrypto/src/react-native',
'fast-text-encoding': 'fast-text-encoding/text',
'jsonld': '@digitalcredentials/jsonld',
'jsonld-signatures': '@digitalcredentials/jsonld-signatures',
},
},
],
],
};
};