vite-tsconfig-paths
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -140,5 +140,6 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/path.ts | ||
importer = _vite.normalizePath.call(void 0, importer); | ||
if (!importerExtRE.test(importer)) | ||
const importerFile = importer.replace(/[#?].+$/, ""); | ||
if (!importerExtRE.test(importerFile)) | ||
return; | ||
if (!isIncluded(relative(root, importer))) | ||
if (!isIncluded(relative(root, importerFile))) | ||
return; | ||
@@ -145,0 +146,0 @@ const suffix = (_a = /\?.+$/.exec(id)) == null ? void 0 : _a[0]; |
{ | ||
"name": "vite-tsconfig-paths", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "Vite resolver for TypeScript compilerOptions.paths", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -116,6 +116,8 @@ import { dirname, isAbsolute, join, relative, resolve } from './path' | ||
importer = normalizePath(importer) | ||
const importerFile = importer.replace(/[#?].+$/, '') | ||
// Ignore importers with unsupported extensions. | ||
if (!importerExtRE.test(importer)) return | ||
if (!importerExtRE.test(importerFile)) return | ||
// Respect the include/exclude properties. | ||
if (!isIncluded(relative(root, importer))) return | ||
if (!isIncluded(relative(root, importerFile))) return | ||
@@ -122,0 +124,0 @@ // Find and remove Vite's suffix (e.g. "?url") if present. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
57097
775