* update js dependencies * update react-native libraries * update watermelonDB * update RN to 0.72.7 * update fastlane * fix remove_markdown/at_mention import * update mattermost libraries * update fastlane deps * remove haptic-feedback patch * update okhttp to 4.12.0 and patch netinfo to accurately identify VPN connections * create ImaegStyles intersection type
25 lines
743 B
JavaScript
25 lines
743 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
|
|
const defaultConfig = getDefaultConfig(__dirname);
|
|
const {assetExts, sourceExts} = defaultConfig.resolver;
|
|
|
|
/**
|
|
* Metro configuration
|
|
* https://facebook.github.io/metro/docs/configuration
|
|
*
|
|
* @type {import('metro-config').MetroConfig}
|
|
*/
|
|
const config = {
|
|
transformer: {
|
|
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
},
|
|
resolver: {
|
|
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
sourceExts: [...sourceExts, 'svg'],
|
|
},
|
|
};
|
|
|
|
module.exports = mergeConfig(defaultConfig, config);
|