C

msw/2/req-passthrough

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

A new way of calling a passthrough is available in msw v2. This codemod replaces req.passthrough() calls with the new way of doing that using exported function.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.