Skip to content

Use Rspack / Rsbuild instead of Vite #62

Description

@ahdinosaur

My main issue with Vite is that there's poor support for monorepos / workspaces.

For a few reasons, I want @villagekit modules to be re-compiled and re-bundled:

  • Better dev experience to re-load directly in app
  • Handle worker imports correctly

I had to make a hack to trick Vite into thinking workspace packages were internal files.

In Next.js, this is as easy as transpilePackages.

I wonder if Rspack / Rsbuild would be better than Vite. I see source.include.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions