@nx/expo
Version:
13 lines (12 loc) • 476 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.initRootBabelConfig = initRootBabelConfig;
const devkit_1 = require("@nx/devkit");
function initRootBabelConfig(tree) {
if (tree.exists('/babel.config.json') || tree.exists('/babel.config.js')) {
return;
}
(0, devkit_1.writeJson)(tree, '/babel.config.json', {
babelrcRoots: ['*'], // Make sure .babelrc files other than root can be loaded in a monorepo
});
}