mattermost-mobile/babel.config.js
Elias Nahum 1b36529853
MM-34407 Use Avatars for Sidebar DMs (#5334)
* MM-34407 Use Avatars for Sidebar DMs

* Update app/components/channel_icon.js

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

* UI feedback

* Align the private channel icon

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
2021-04-28 18:54:54 -04:00

43 lines
1.4 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
env: {
production: {
plugins: ['transform-remove-console'],
},
},
plugins: [
'@babel/plugin-transform-runtime',
['module-resolver', {
root: ['.'],
alias: {
'@assets': './dist/assets',
'@actions': './app/actions',
'@client': './app/client',
'@components': './app/components',
'@constants': './app/constants',
'@hooks': './app/hooks',
'@i18n': './app/i18n',
'@init': './app/init',
'@mm-redux': './app/mm-redux',
'@share': './share_extension',
'@screens': './app/screens',
'@selectors': './app/selectors',
'@store': './app/store',
'@telemetry': './app/telemetry',
'@utils': './app/utils',
'@websocket': './app/client/websocket',
},
}],
['module:react-native-dotenv', {
moduleName: '@env',
path: '.env',
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
}],
],
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],
};