Preact/X/Default Import To Namespace Import

1.0.0Last update Aug 21, 2024
by@manishjha-04

A codemod that converts named imports of Preact to namespace imports for improved compatibility and consistency.

Before

import Preact from 'preact';

After

import * as preact from 'preact';

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now