INNER CODE UNIT · JavaScript

getDefaultConfig

react/metro · packages/metro-config/src/defaults/index.js:177

async function getDefaultConfig(rootPath: ?string): Promise<ConfigT> {
  // We can add more logic here to get a sensible default configuration, for
  // now we just return a stub.

  return getDefaultValues(rootPath);
}

getDefaultConfig.getDefaultValues = getDefaultValues;

export default getDefaultConfig as interface {
  (rootPath?: string): Promise<ConfigT>,
  getDefaultValues: (rootPath?: string) => ConfigT,
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…