forked from Ivasoft/mattermost-mobile
* Android and iOS requirements
* external types
* babel config for calls, package.json for calls dependencies
* state in rxJS; tests
* actions, client/rest, websocket events, constants
* webrtc connection logic
* calls components / screens
* handle peer destroyed gracefully
* PR comments
* remove ViewPropTypes from mocks; no need to ignore error in LogBox
* calls.d.ts -> calls.ts; i18-extract
* @app/products/calls -> @calls
* PR comments; test cleanup
* Revert "remove ViewPropTypes from mocks; no need to ignore error in LogBox"
This reverts commit f9bd171a54.
* working on typing withServerUrl
* added exportedForInternalUse instead of commenting "internal export"
* better switchToThread in call_screen
* i18n
* typed withServerUrl
61 lines
2.2 KiB
JavaScript
61 lines
2.2 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',
|
|
'@babel/preset-typescript',
|
|
['@babel/preset-env', {targets: {node: 'current'}}],
|
|
],
|
|
env: {
|
|
production: {
|
|
plugins: ['transform-remove-console'],
|
|
},
|
|
},
|
|
plugins: [
|
|
'@babel/plugin-transform-runtime',
|
|
['@babel/plugin-proposal-decorators', {legacy: true}],
|
|
['@babel/plugin-transform-flow-strip-types'],
|
|
['@babel/plugin-proposal-class-properties', {loose: true}],
|
|
['@babel/plugin-proposal-private-property-in-object', {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'],
|
|
};
|