Skip to content

How do I disable Visual Editing (and react deps)? #1285

@Lippiece

Description

@Lippiece

I'm not using Visual Editing, but still have problems like #1277 and #1284 which breaks HMR. Looks like this feature has some react dependencies which not always work well. So would it be possible to ditch it?

I should note that it only happens if I install deps with bun.

The current workaround (nuxt.config.ts):

  vite: {
    optimizeDeps: {
      include: ['react-compiler-runtime', 'react', 'react-dom']
    },
  },

This workaround makes builds and dev compiling at least 5 times longer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions