D

remix-js/v2/remix-1-add-meta-v1-wrapper

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

Using the metaV1 function, you can pass in the meta function's arguments and the same object it currently returns. This function will use the same merging logic to merge the leaf route's meta with its direct parent route meta before converting it to an array of meta descriptors usable in v2.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.