Not completely working
jbjanot opened this issue · 2 comments
Hey there! Thanks for writing this plugin.
It is partially working, as ESBuild does not return any error when I use it on this kind of syntax :
import 'core/*/js/__*.js';
import 'components/*/*/js/__*.js';
import 'flexibles/*/js/__*.js';
But my files are still not loaded.
They are auto instanced classes that looks like that:
export default new class {
constructor() {
console.log( 'hello you' );
}
};
When I try to debug it this way:
import cores from 'core/*/js/__*.js';
console.log(cores);
I get an infinite object with each part of the path, never seeing the expected class.
Any idea what could be causing it?
Thanks a lot for your help!
Thanks for reporting this! I'll definitely look into it. If you've made any headway keep me updated. I've had a next branch with quite a few updates that I never quite wrapped up last year that may have covered this. I'll try to set up some unit tests and see where I'm at.
Hey Dustin, thanks for your comment.
I did fork it here: https://github.com/lesanimals/esbuild-plugin-glob-import
It works for my use case, but I didn't particularly tested it, and it is the first time I have a look at esbuild plugins.
If it can be of any help to you, I'll be more than happy!
Thanks again!