vite-plugin-components
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.5.2](https://github.com/antfu/vite-plugin-components/compare/v0.5.1...v0.5.2) (2020-12-24) | ||
### Bug Fixes | ||
* use custom resolver after fs ([e254da8](https://github.com/antfu/vite-plugin-components/commit/e254da8b8d397cbab403bab2aaa3a35f3a0e1f2a)) | ||
### [0.5.1](https://github.com/antfu/vite-plugin-components/compare/v0.5.0...v0.5.1) (2020-12-24) | ||
@@ -7,0 +14,0 @@ |
@@ -292,2 +292,5 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/generator/resolver.ts | ||
findComponent(name, excludePaths = []) { | ||
const info = this._componentNameMap[name]; | ||
if (info && !excludePaths.includes(info.path) && !excludePaths.includes(info.path.slice(1))) | ||
return info; | ||
for (const resolver3 of this._resolvers) { | ||
@@ -298,5 +301,2 @@ const path4 = resolver3(name); | ||
} | ||
const info = this._componentNameMap[name]; | ||
if (info && !excludePaths.includes(info.path) && !excludePaths.includes(info.path.slice(1))) | ||
return info; | ||
return void 0; | ||
@@ -303,0 +303,0 @@ } |
{ | ||
"name": "vite-plugin-components", | ||
"description": "Components auto importing for Vite", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"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
42608