Skip to content

solid-refresh isn't used #26

@lxsmnsyc

Description

@lxsmnsyc

Issue for visibility.

Babel transform works, but not solid-refresh, the problem might be:

  • one of the 3 conditions used to prevent solid-refresh from running has a false-positive
  • mergeAndConcat might not be working.

Adding solid-refresh's babel plugin through babel option works:

import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import solidRefresh from 'solid-refresh/babel';

export default defineConfig({
  plugins: [
    solidPlugin({
      babel: {
        plugins: [
          [solidRefresh, { bundler: 'vite'}],
        ],
      },
    }),
  ],
});

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