Skip to content

Disabling dev option does nothing #62

Description

@thetarnav

I imagine that putting { dev: false } should prevent vite from loading the development runtime of solid, and load production instead. This doesn't seem to be happening though.

Simple repro: (the DEV object logged to console shouldn't have those functions available)
https://stackblitz.com/edit/github-z6ct5t?file=src%2Findex.tsx,vite.config.ts

Activity

  1. ryansolid commented on Nov 4, 2022

    @ryansolid
    Member

    Hmm.. vite seems to be doing this themselves even when we don't pass development as a condition to the compiler.

  2. aminya commented on Jan 24, 2023

    @aminya
    Contributor

    I have also faced the same problem with Solid Start. The bundle size is increased by 35 Kb and 560 ms of startup time because of this option.

  3. ryansolid commented on Oct 9, 2026

    @ryansolid
    Member

    Fixed on next by #405.

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

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