babel.config.js 384 B

123456789101112131415161718192021
  1. import path from "path";
  2. import {
  3. getConfig
  4. } from "react-native-builder-bob/babel-config";
  5. import pkg from "../package.json";
  6. const root = path.resolve(__dirname, "..");
  7. module.exports = function (api) {
  8. api.cache(true);
  9. return getConfig(
  10. {
  11. presets: ["babel-preset-expo"],
  12. },
  13. {
  14. root,
  15. pkg
  16. }
  17. );
  18. };