esbuild-plugin-import-glob
esbuild-plugin-import-glob copied to clipboard
Make sure that imports are properly scoped to directories that are requested from
This PR fixes the case were there're same-sounding imports used in different paths.
There's sample scenario in conflicts directory in tests. It contains 2 subdirectories with same-sounding index.js that imports all nested files (export * as default from './cases/*.js';), but they contain completely different set of files.
Without the change, both the imports equals to contents of files from the later directory.