Closed
Description
Describe the bug
Consider the code below
const results = import.meta.glob('./*.txt', {
as: 'raw',
eager: true,
})
console.log(results)
It will not re-run after changing foo.txt
. But if removes as: 'raw'
it just works.
Reproduction
https://github.com/sxzz/vitest-glob-test
nr test
and modify tests/a.txt
System Info
System:
OS: macOS 13.2.1
CPU: (10) arm64 Apple M1 Max
Memory: 3.63 GB / 32.00 GB
Shell: 3.6.0 - /opt/homebrew/bin/fish
Binaries:
Node: 18.14.0 - ~/Library/Caches/fnm_multishells/18655_1677326277920/bin/node
Yarn: 1.22.19 - ~/Library/pnpm/yarn
npm: 9.3.1 - ~/Library/Caches/fnm_multishells/18655_1677326277920/bin/npm
Browsers:
Chrome: 110.0.5481.177
Chrome Canary: 113.0.5616.0
Firefox: 109.0
Safari: 16.3
Safari Technology Preview: 16.4
npmPackages:
vite: ^4.1.4 => 4.1.4
vitest: ^0.29.1 => 0.29.1
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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 open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
No labels