You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where a glob string (e.g. ./processor/**/*) is used in multiple places in files that are in different directories.
In these directories, the resolution of the globbing must result in different files. However, during processing, the globbing is done only once, and when the same glob string appears in a another file, then the same files are used again.
The files in ProcessorManagerA.js and ProcessorManagerB.js both use the same glob string ./processor/**/*
The esbuild process can be started using npm run build.
The globbing from ProcessorManagerA.js should result in using the files Processor1 and Processor2.
The globbing from ProcessorManagerB.js should result in using the files Processor3, Processor4, and Processor5.
However, when looking into the output file out.js, it can be seen that only Processor1 and Processor2 were found and processed.
A pull-request that proposes a possible solution can be found here: #10
The text was updated successfully, but these errors were encountered:
I have a scenario where a glob string (e.g.
./processor/**/*
) is used in multiple places in files that are in different directories.In these directories, the resolution of the globbing must result in different files. However, during processing, the globbing is done only once, and when the same glob string appears in a another file, then the same files are used again.
I provided an example in this Github repository:
https://github.com/MartinKolbAtWork/esbuild-plugin-import-glob-issue
The files in
ProcessorManagerA.js
andProcessorManagerB.js
both use the same glob string./processor/**/*
The esbuild process can be started using
npm run build
.The globbing from
ProcessorManagerA.js
should result in using the filesProcessor1
andProcessor2
.The globbing from
ProcessorManagerB.js
should result in using the filesProcessor3
,Processor4
, andProcessor5
.However, when looking into the output file
out.js
, it can be seen that onlyProcessor1
andProcessor2
were found and processed.A pull-request that proposes a possible solution can be found here: #10
The text was updated successfully, but these errors were encountered: