@marko/migrate-v3-widget

Migrates a Marko v3 widget to a v4 component.

Usage no npm install needed!

<script type="module">
  import markoMigrateV3Widget from 'https://cdn.skypack.dev/@marko/migrate-v3-widget';
</script>

README


@marko/migrate-v3-widget
TypeScript Styled with prettier Build status Test Coverage

Migrates a Marko v3 widget to a v4 component.

Note: You probably want to use the marko migrate command instead of using this directly.

Installation

npm install @marko/migrate-v3-widget

Example

import migrate from "@marko/migrate-v3-widget";

migrate("./path-to-widget-file.js").then(code => {
  code; // Migrated code
});

Code of Conduct

This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.