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

fast-glob make "import" import from external lib #7

Open
xiaohui-zhangxh opened this issue Sep 12, 2021 · 1 comment
Open

fast-glob make "import" import from external lib #7

xiaohui-zhangxh opened this issue Sep 12, 2021 · 1 comment

Comments

@xiaohui-zhangxh
Copy link

fast-glob removed relative file symbol ./, so it report this error message:

image

When I change fast-glob to glob, it works.

rails/jsbundling-rails@main...xiaohui-zhangxh:main

@MartinKolbAtWork
Copy link

MartinKolbAtWork commented Feb 9, 2022

Same problem here. I use the glob plugin in conjunction with "esbuild-plugin-properties" and I get the same error message (see screenshot) when importing '.properties' files via globbing:

esbuild-properties

Suggestion
If I modify the code to explicitly add the current directory ./ as starting point, then everything works correctly:


.map((module, index) => `import * as module${index} from './${module}'`) 

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