babel.config.js 359 B

1234567891011121314151617
  1. const path = require('path');
  2. const pak = require('../package.json');
  3. module.exports = {
  4. presets: ['module:@react-native/babel-preset'],
  5. plugins: [
  6. [
  7. 'module-resolver',
  8. {
  9. extensions: ['.tsx', '.ts', '.js', '.json'],
  10. alias: {
  11. [pak.name]: path.join(__dirname, '..', pak.source),
  12. },
  13. },
  14. ],
  15. ],
  16. };