Skip to content

BilalBudhani/esbuild-svelte-inertia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESBuild Svelte Inertia Plugin

This plugin enables importing all the pages component to pass it to resolve function of Inertia.

Installation

yarn add esbuild-svelte-inertia
# esbuild.config.js
const svelteInertiaPlugin = require("esbuild-svelte-inertia")

esbuid.build({
  ...
  plugins: [sveltePlugin(), svelteInertiaPlugin()],
})

Example usage

import * as pages from "./Pages/**/*"
createInertiaApp({
  resolve: name => pages[name.replace("/", "")],
  setup({ el, App, props }) {
    new App({ target: el, props })
  },
})

🙏 Contributing

If you have an issue you'd like to submit, please do so using the issue tracker in GitHub. In order for us to help you in the best way possible, please be as detailed as you can.

📝 License

The gem is available as open source under the terms of the MIT License.

About

Esbuild Plugin for running Inertia with Svelte

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published