-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new error extraction mechanism (#10887)
Co-authored-by: Jerel Miller <jerelmiller@gmail.com>
- Loading branch information
1 parent
79df2c7
commit f8c0b96
Showing
56 changed files
with
811 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@apollo/client': minor | ||
--- | ||
|
||
Add a new mechanism for Error Extraction to reduce bundle size by including | ||
error message texts on an opt-in basis. | ||
By default, errors will link to an error page with the entire error message. | ||
This replaces "development" and "production" errors and works without | ||
additional bundler configuration. | ||
Bundling the text of error messages and development warnings can be enabled by | ||
```js | ||
import { loadErrorMessages, loadDevMessages } from "@apollo/client/dev"; | ||
if (process.env.NODE_ENV !== "production") { | ||
loadErrorMessages(); | ||
loadDevMessages(); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.