forked from mattermost/mattermost-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
28 lines (28 loc) · 928 Bytes
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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',
'@constants': './app/constants',
'@i18n': './app/i18n',
'@selectors': './app/selectors',
'@telemetry': './app/telemetry',
'@utils': './app/utils',
'@websocket': './app/client/websocket',
'@mm-redux': './app/mm-redux',
},
}],
],
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],
};