UNPKG

react-native-windows

Version:
23 lines (20 loc) 661 B
/** * @format */ const fs = require('fs'); const path = require('path'); // Check that we have built our JS files before running the bundler, otherwise we'll get a harder to diagnose "Unable to resolve module" error if ( !fs.existsSync( path.resolve( __dirname, 'Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js', ), ) ) { throw new Error( '\nThis package must be built before running the bundler. Did you mean to run "yarn build" first?\n', ); } const {makeMetroConfig} = require('@rnw-scripts/metro-dev-config'); module.exports = makeMetroConfig({projectRoot: __dirname});