vite-plugin-components
Advanced tools
Comparing version 0.6.3 to 0.6.5
@@ -139,3 +139,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __assign = Object.assign; | ||
} | ||
function resolveAlias(filepath, alias = {}) { | ||
function resolveAlias(filepath, alias = []) { | ||
let result = filepath; | ||
@@ -145,7 +145,2 @@ if (Array.isArray(alias)) { | ||
result.replace(find, replacement); | ||
} else { | ||
Object.entries(alias).forEach(([k, p]) => { | ||
if (k.startsWith("/") && k.endsWith("/") && result.startsWith(k)) | ||
result = _path2.default.join(p, result.replace(k, "")); | ||
}); | ||
} | ||
@@ -322,2 +317,3 @@ return result; | ||
name: "vite-plugin-components", | ||
enforce: "post", | ||
configResolved(config) { | ||
@@ -324,0 +320,0 @@ ctx.viteConfig = config; |
{ | ||
"name": "vite-plugin-components", | ||
"description": "Components auto importing for Vite", | ||
"version": "0.6.3", | ||
"version": "0.6.5", | ||
"main": "dist/index.js", | ||
@@ -36,11 +36,11 @@ "module": "dist/index.mjs", | ||
"@types/minimatch": "^3.0.3", | ||
"@types/node": "^14.14.19", | ||
"@typescript-eslint/eslint-plugin": "^4.11.1", | ||
"@types/node": "^14.14.20", | ||
"@typescript-eslint/eslint-plugin": "^4.12.0", | ||
"eslint": "^7.17.0", | ||
"rollup": "^2.35.1", | ||
"rollup": "^2.36.1", | ||
"standard-version": "^9.1.0", | ||
"tsup": "^3.11.0", | ||
"typescript": "^4.1.3", | ||
"vite": "^2.0.0-beta.3" | ||
"vite": "^2.0.0-beta.19" | ||
} | ||
} |
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
28429
720