We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using a glob import syntax starting with ./ the relative path gets evaluated incorrectly
./
Example folder structure: ├── themes │ ├── dark.theme.json │ ├── light.theme.json │ ├── contrast.theme.json │ └── Themes.js <-- relative import from here └── index.js
the following import
import * as ThemeObjects from "./*.theme.json
gets evaluated into
import * as module0 from 'dark.theme.json' import * as module1 from 'light.theme.json'" import * as module2 from 'contrast.theme.json'
which incorrectly refers to the root directory resulting in a crash
the mentioned import should get evaluated into:
import * as module0 from './dark.theme.json' import * as module1 from './light.theme.json'" import * as module2 from './contrast.theme.json'
Use a relative import to refer to contents in the same folder
After inspecting the source files I discovered a possible culprit:
fast-glob/src/providers/provider.ts
Line 26 in 79260ad
The conditional statement on this line destroys otherwise perfectly working import. Is this the intended behaviour?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Actual behaviour
When using a glob import syntax starting with
./
the relative path gets evaluated incorrectlyExample folder structure:
├── themes
│ ├── dark.theme.json
│ ├── light.theme.json
│ ├── contrast.theme.json
│ └── Themes.js <-- relative import from here
└── index.js
the following import
gets evaluated into
which incorrectly refers to the root directory resulting in a crash
Expected behaviour
the mentioned import should get evaluated into:
Steps to reproduce
Use a relative import to refer to contents in the same folder
Possible fix
After inspecting the source files I discovered a possible culprit:
fast-glob/src/providers/provider.ts
Line 26 in 79260ad
The conditional statement on this line destroys otherwise perfectly working import. Is this the intended behaviour?
The text was updated successfully, but these errors were encountered: