forked from mattermost/mattermost-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
54 lines (54 loc) · 2.02 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
module.exports = {
presets: [
'module:metro-react-native-babel-preset',
'@babel/preset-typescript',
['@babel/preset-env', {targets: {node: 'current'}}],
],
plugins: [
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-decorators', {legacy: true}],
['@babel/plugin-transform-flow-strip-types'],
['@babel/plugin-proposal-class-properties', {loose: true}],
['module-resolver', {
root: ['.'],
alias: {
'@actions': './app/actions',
'@app': './app/',
'@assets': './dist/assets/',
'@calls': './app/products/calls',
'@client': './app/client',
'@components': './app/components',
'@constants': './app/constants',
'@context': './app/context',
'@database': './app/database',
'@helpers': './app/helpers',
'@hooks': './app/hooks',
'@i18n': './app/i18n',
'@init': './app/init',
'@managers': './app/managers',
'@notifications': './app/notifications',
'@queries': './app/queries',
'@screens': './app/screens',
'@share': './share_extension',
'@store': './app/store',
'@telemetry': './app/telemetry',
'@test': './test',
'@typings': './types',
'@utils': './app/utils',
'@websocket': './app/client/websocket',
},
}],
['module:react-native-dotenv', {
moduleName: 'react-native-dotenv',
path: '.env',
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
}],
'react-native-reanimated/plugin',
],
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],
};