'Can I give multiple 'transformer' statements in metro.config.js?

module.exports = {
  transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: true,
      },
    }),
  },
  transformer: {
    babelTransformerPath: require.resolve('@dynatrace/react-native-plugin/lib/dynatrace-transformer')
  },
  reporter: require("@dynatrace/react-native-plugin/lib/dynatrace-reporter")
};

Can we have the multiple transformers in the metro.config.js file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source