Open danieldelcore opened 1 year ago
I found that adding the following check before this line fixes the problem:
Because fullPath
wrongfully adds index.js
by default.
if (checkPath(fullPath) === "none") {
const isDirectory = this.tryResolveAsDirectory(
fullPath.replace("/index.js", "")
);
if (isDirectory) {
return isDirectory;
}
}
I'm sure there is a more elegant way to fix this.
Not sure about that. That additional check seems to be good, but maybe the original problem is that .json
files are not loaded by default? Maybe we should try to load index.js
or index.json
(or any other compatible extensions)?
I've run into an issue with this module
spdx-license-ids
which is transitively brought in by one of my dependencies.And imported like so:
Keen to hear your thoughts on how live-plugin-manager should handle or workaround this module 🤔