Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-components

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-components - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

8

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc