mattermost-mobile-upstream/metro.config.js
Avinash Lingaloo e6b139d526 trials
Update config.yml

Update Fastfile

Update Fastfile

Update Fastfile

trying out gradle build scans

Revert "trying out gradle build scans"

This reverts commit 4a0f412025.

maxWorker 2

Update Fastfile

Update Fastfile

removes gradle cache step

revert changes

Update Fastfile

test

Update Fastfile

Update config.yml

Update Fastfile

Update @sentry+react-native+4.6.0.patch

Create @sentry+react-native+4.6.0.patch

update patch package
2022-11-01 11:30:08 +04:00

27 lines
805 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const {getDefaultConfig} = require('metro-config');
module.exports = (async () => {
const {
resolver: {sourceExts, assetExts},
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve('react-native-svg-transformer'),
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
},
maxWorkers: 2,
};
})();