Open markhicken opened 5 years ago
Since the developer do not answer, how can we use the fixed version of the module with npm (or yarn) ?
We just forked it and referenced my fork directly in our package.json... https://github.com/markhicken/babel-plugin-transform-glob-import
"babel-plugin-transform-glob-import": "git+https://github.com/markhicken/babel-plugin-transform-glob-import.git#glob-inside-node-module",
I just made a PR so you can see the code diff though.
Thank you !
We have a need to import all files in a folder that exist in a child installed node module.
We expect this...
...to resolve to here...
...but instead, it tries to resolve to here...
...which of course breaks because the path doesn't exist.
One simple fix might be to do the following in
index.js
...I've tested this locally and it appears to work against relative paths, regular node module paths, and scoped npm package paths.
Thanks!
@jhicken Thanks for the help digging into this issue!