How to use @expo/metro-config - 1 common examples

To help you get started, we’ve selected a few @expo/metro-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alan-ai / alan-sdk-reactnative / testtools / node_modules / expo-updates / scripts / createManifest.js View on Github external
async function fetchAssetManifestAsync(platform, projectRoot, entryFile) {
  // Project-level babel config does not load unless we change to the
  // projectRoot before instantiating the server
  process.chdir(projectRoot);

  const config = await loadAsync(projectRoot);
  const server = new Server(config);

  const requestOpts = {
    entryFile,
    dev: false,
    minify: false,
    platform,
  };

  let assetManifest;
  let error;
  try {
    assetManifest = await server.getAssets({
      ...Server.DEFAULT_BUNDLE_OPTIONS,
      ...requestOpts,
    });

@expo/metro-config

A Metro config for running React Native projects with the Metro bundler

MIT
Latest version published 10 days ago

Package Health Score

83 / 100
Full package analysis

Popular @expo/metro-config functions