Skip to content

Vite Plugin for Svelte Support #3503

Closed
Closed

Description

@Sahasrara

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description

It's not currently possible to build a svelte app using Vite with Electron Forge. It'd be super cool if that was possible. Forge doesn't work with @sveltejs/vite-plugin-svelte.

Proposed solution

I'm not sure what would be required, but I'd like to be able to use Svelte + Vite + Electron + Forge. Right now, you can't import @sveltejs/vite-plugin-svelte because it's an ESM only module.

Alternatives considered

I'm currently using electron-vite, but I'd feel safer working with a Forge since it has a larger community backing it.

Additional information

No response

Activity

  1. caoxiemeihao commented on Apr 19, 2024

    @caoxiemeihao
    Member

    I provide a Forge + Vite + Svelte sample here. 👉 https://github.com/caoxiemeihao/electron-vite-samples/tree/main/forge-svelte

    screenshot

    BTW, Perhaps the next version of @forge/template-vite will support ESM fully, I'm currently testing the feasibility of ESM in electron-vite-vue.

  2. caoxiemeihao commented on Apr 25, 2024

    @caoxiemeihao
    Member

    I've provided samples for esm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions