Bjarne Knutzen e7091a8441
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / build-library (push) Waiting to run
CI / build-android (push) Waiting to run
CI / build-ios (push) Waiting to run
first commit
2026-01-16 08:45:37 +01:00

35 lines
775 B
JavaScript

const path = require('path');
const { getConfig } = require('react-native-builder-bob/babel-config');
const pkg = require('../package.json');
const root = path.resolve(__dirname, '..');
module.exports = getConfig(
{
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module:react-native-dotenv',
{
envName: 'APP_ENV',
moduleName: '@env',
path: '.env',
safe: false,
allowUndefined: true,
verbose: false,
},
],
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
[pkg.name]: path.join(__dirname, '..', pkg.source),
},
},
],
],
},
{ root, pkg }
);