We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d25856 commit fb622cdCopy full SHA for fb622cd
adminforth/commands/utils.js
@@ -86,8 +86,7 @@ function processJsFilesInDir(directory) {
86
fileContent = fileContent.replace(
87
/import (.+?) from ["'](.+?)\/index\.js["'];/g,
88
(match, imports, modulePath) => {
89
- // Check if the path is not relative (doesn't start with ./ or ../)
90
- if (!modulePath.startsWith("./") && !modulePath.startsWith("../")) {
+ if (!modulePath.startsWith(".") && !modulePath.startsWith("..")) {
91
return `import ${imports} from "${modulePath}";`;
92
}
93
return match;
0 commit comments