vite-plugin-dts 3.7.1 → 3.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -698,9 +698,9 @@ ${logPrefix} ${kolorist.yellow(
|
|
|
698
698
|
const { baseUrl, paths } = compilerOptions;
|
|
699
699
|
if (pathsToAliases && baseUrl && paths) {
|
|
700
700
|
const basePath = ensureAbsolute(baseUrl, configPath ? node_path.dirname(configPath) : root);
|
|
701
|
-
for (const [
|
|
701
|
+
for (const [pathWithAsterisk, replacements] of Object.entries(paths)) {
|
|
702
702
|
const find = new RegExp(
|
|
703
|
-
|
|
703
|
+
`^${pathWithAsterisk.replace(regexpSymbolRE, "\\$1").replace(asteriskRE, "(.+)")}$`
|
|
704
704
|
);
|
|
705
705
|
let index = 1;
|
|
706
706
|
aliases.push({
|
package/dist/index.mjs
CHANGED
|
@@ -696,9 +696,9 @@ ${logPrefix} ${yellow(
|
|
|
696
696
|
const { baseUrl, paths } = compilerOptions;
|
|
697
697
|
if (pathsToAliases && baseUrl && paths) {
|
|
698
698
|
const basePath = ensureAbsolute(baseUrl, configPath ? dirname(configPath) : root);
|
|
699
|
-
for (const [
|
|
699
|
+
for (const [pathWithAsterisk, replacements] of Object.entries(paths)) {
|
|
700
700
|
const find = new RegExp(
|
|
701
|
-
|
|
701
|
+
`^${pathWithAsterisk.replace(regexpSymbolRE, "\\$1").replace(asteriskRE, "(.+)")}$`
|
|
702
702
|
);
|
|
703
703
|
let index = 1;
|
|
704
704
|
aliases.push({
|