UNPKG

@expo/metro-runtime

Version:

Tools for making advanced Metro bundler features work

16 lines (13 loc) 345 B
export class MetroServerError extends Error { code = 'METRO_SERVER_ERROR'; constructor( errorObject: { message: string } & Record<string, any>, public url: string ) { super(errorObject.message); this.name = 'MetroServerError'; for (const key in errorObject) { (this as any)[key] = errorObject[key]; } } }