vite-plugin-components
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -153,8 +153,10 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __assign = Object.assign; | ||
function searchComponents(ctx) { | ||
var _a, _b; | ||
debug4(`started with: [${ctx.globs.join(", ")}]`); | ||
const files = _fastglob2.default.sync(ctx.globs, { | ||
ignore: ["node_modules"], | ||
onlyFiles: true | ||
onlyFiles: true, | ||
cwd: ((_a = ctx.viteConfig) == null ? void 0 : _a.root) || process.cwd() | ||
}); | ||
if (!files.length) | ||
if (!files.length && !((_b = ctx.options.customComponentResolvers) == null ? void 0 : _b.length)) | ||
console.warn("[vite-plugin-components] no components found"); | ||
@@ -244,3 +246,3 @@ debug4(`${files.length} components found.`); | ||
var _a; | ||
return resolveAlias(path5, ((_a = this.viteConfig) == null ? void 0 : _a.alias) || {}); | ||
return resolveAlias(path5, ((_a = this.viteConfig) == null ? void 0 : _a.alias) || []); | ||
} | ||
@@ -247,0 +249,0 @@ relative(path5) { |
{ | ||
"name": "vite-plugin-components", | ||
"description": "Components auto importing for Vite", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28771
724