Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/react-native-builder-bob/babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
const path = require('path');
const { loadConfig } = require('./lib/utils/loadConfig');

const tag = '[react-native-builder-bob]'

Check failure on line 6 in packages/react-native-builder-bob/babel-config.js

View workflow job for this annotation

GitHub Actions / check-project

Insert `;`

/**
* Get Babel configuration for the example project.
* This sets up appropriate presets and plugins for the library.
Expand All @@ -18,14 +20,14 @@
const result = loadConfig(root);

if (result == null) {
throw new Error(`Couldn't find a valid configuration at ${root}.`);
throw new Error(`${tag} Couldn't find a valid configuration at ${root}.`);
}

const { source } = result.config;

if (source == null) {
throw new Error(
"Couldn't determine the source directory. Does your config specify a 'source' field?"
`${tag} Couldn't determine the source directory. Does your config specify a 'source' field?`
);
}

Expand Down
Loading