Skip to content

Fix mangleErrors not preserving different error types #4586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 30, 2024

Conversation

aryaemami59
Copy link
Member

This PR:

  • Resolves an issue where mangleErrorsPlugin did not preserve the original error constructor type. Previously, if a TypeError or any other custom error was thrown, the plugin would incorrectly transform it into a generic Error.
  • Convert mangleErrors to TS and ESM.
  • Improve on the docs.
  • Fixes TS-related issues (Part of Centralize tooling configs in monorepo #4138).

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
Richienb Richie Bendall

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature.
Richienb Richie Bendall

Verified

This commit was signed with the committer’s verified signature.
Richienb Richie Bendall

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature.
Richienb Richie Bendall

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
- Resolved an issue where `mangleErrorsPlugin` did not preserve the original error constructor type. Previously, if a `TypeError` or any other custom error was thrown, the plugin would incorrectly transform it into a generic `Error`.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link

codesandbox bot commented Aug 28, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 9cc383e
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/66d0e94719ab5d0008cbb6d8
😎 Deploy Preview https://deploy-preview-4586--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codesandbox-ci bot commented Aug 28, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9cc383e:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…o fix-mangleErrors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants