Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot exclude stories.ts file from auto import #484

Open
5 tasks done
drik98 opened this issue Apr 10, 2024 · 1 comment
Open
5 tasks done

Cannot exclude stories.ts file from auto import #484

drik98 opened this issue Apr 10, 2024 · 1 comment

Comments

@drik98
Copy link

drik98 commented Apr 10, 2024

Describe the bug

This describes the same problems as in #407

Excluding files with a regex does not work. In my case I also want to exclude all stories files because they are only used for storybook and often times story names overlap.

I added a failing test case to highlight the problem in my fork.

Reproduction

https://github.com/drik98/unplugin-auto-import

System Info

System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 75.55 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/Library/Caches/fnm_multishells/28829_1712732212332/bin/node
    npm: 10.2.3 - ~/Library/Caches/fnm_multishells/28829_1712732212332/bin/npm
    pnpm: 8.15.1 - ~/Library/Caches/fnm_multishells/28829_1712732212332/bin/pnpm
  Browsers:
    Chrome: 123.0.6312.107
    Safari: 17.4.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@chopperqt
Copy link

I have the same problem :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants