@sdata/web-vue-auto-import-resolver 3.22.0 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function resolveAliasedPath(url, componentsDir) {
|
|
|
102
102
|
]).find((c) => existsSync(c)) ?? null;
|
|
103
103
|
}
|
|
104
104
|
function getComponentsDir(packageName) {
|
|
105
|
-
const packageRoot = path.dirname(createRequire(import.meta.url)(`${packageName}/package.json`));
|
|
105
|
+
const packageRoot = path.dirname(createRequire(import.meta.url).resolve(`${packageName}/package.json`));
|
|
106
106
|
return path.resolve(packageRoot, "es");
|
|
107
107
|
}
|
|
108
108
|
function createImporter(componentsDir) {
|
package/package.json
CHANGED