metro.config.js 636 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Metro configuration for React Native
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. */
  7. const { getDefaultConfig } = require("metro-config");
  8. module.exports = (async () => {
  9. const {
  10. resolver: { sourceExts }
  11. } = await getDefaultConfig();
  12. return {
  13. transformer: {
  14. babelTransformerPath: require.resolve("./vueTransformerPlugin.js"),
  15. getTransformOptions: async () => ({
  16. transform: {
  17. experimentalImportSupport: false,
  18. inlineRequires: false,
  19. },
  20. })
  21. },
  22. resolver: {
  23. sourceExts: [...sourceExts, "vue"]
  24. }
  25. };
  26. })();