esbuild-plugin-import-glob icon indicating copy to clipboard operation
esbuild-plugin-import-glob copied to clipboard

fast-glob make "import" import from external lib

Open xiaohui-zhangxh opened this issue 4 years ago • 1 comments

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

image

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

https://github.com/rails/jsbundling-rails/compare/main...xiaohui-zhangxh:main

xiaohui-zhangxh avatar Sep 12 '21 17:09 xiaohui-zhangxh

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}'`) 

MartinKolbAtWork avatar Feb 09 '22 07:02 MartinKolbAtWork