@baleada/source-transform-files-to-index

Transform function, compatible with Baleada Source Transform, that indexes files so they can be imported more easily as ES modules.

Usage no npm install needed!

<script type="module">
  import baleadaSourceTransformFilesToIndex from 'https://cdn.skypack.dev/@baleada/source-transform-files-to-index';
</script>

README

@baleada/source-transform-files-to-routes

Transform files and directory structures into SPA routes for React Router or Vue Router. In other words, imitate the functionality of the Nuxt.js, Next.js, and Sapper "pages" directory in your app.

Designed to be used with Baleada Source Transform.

See the docs for more guidance.