Skip to content

Version 4.1.2 doesn't work #437

@Corvince

Description

@Corvince

Environment

Package version 4.1.2
Node Version 20.18

Reproduction

In a nuxt project I am using the following Vitest config to auto-import utility functions from different Nuxt Layers.
This stopped working after installing the latest version of unimport (4.1.2). Reverting to 4.1.0 helped.

import { defineVitestConfig } from '@nuxt/test-utils/config';
import Unimport from 'unimport/unplugin';

export default defineVitestConfig({
  plugins: [
    Unimport.vite({
      dirs: ['../**/server/utils'],
    }),
  ],
});

Describe the bug

I did not investigate the source of the problem and in which context it arises except the one above.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions