chore: migrate Jest and website to SWC (#6944)

* chore: migrate Jest and website to SWC

* ignore template
This commit is contained in:
Joshua Chen 2022-03-19 20:56:30 +08:00 committed by GitHub
parent 53f152c42d
commit 19942f990a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 134 additions and 186 deletions

View file

@ -47,7 +47,8 @@ export class ReactContextError extends Error {
super();
this.name = 'ReactContextError';
this.message = `Hook ${
this.stack?.split('\n')[1]?.match(/at (?<name>\w+)/)?.groups!.name
this.stack?.split('\n')[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups!
.name
} is called outside the <${providerName}>. ${additionalInfo || ''}`;
}
}