Migrates a Marko v3 widget to a v4 component.
Note: You probably want to use the marko migrate command instead of using this directly.
npm install @marko/migrate-v3-widget
import migrate from "@marko/migrate-v3-widget";
migrate("./path-to-widget-file.js").then(code => {
code; // Migrated code
});
This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.