CCodemod

nuxt/4/absolute-watch-path

No description available

Legacy
nuxt4migration
Public
1,114 downloads
0 stars
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

This codemod converts paths emitted by Nuxt's builder:watch hook from relative to absolute, enhancing support for external directories and complex patterns.

🚦 Impact Level: Minimal

What Changed

The Nuxt builder:watch hook now emits a path that is absolute rather than relative to your project srcDir.

Reasons for Change

This change allows support for watching paths that are outside your srcDir, and offers better support for layers and other more complex patterns.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.