vite-plugin-virtual-mpa
Advanced tools
Comparing version 1.9.2 to 1.9.3
@@ -0,1 +1,6 @@ | ||
# 1.9.3 | ||
fix: Built-in matching rules preferentially match longer paths. Closed [#52](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/52). | ||
chore: Upgrade all of workspace dependencies. | ||
# 1.9.2 | ||
@@ -2,0 +7,0 @@ |
@@ -103,3 +103,7 @@ "use strict"; | ||
{ | ||
from: new RegExp(vite.normalizePath(`/${base}/(${Object.keys(inputMap).join("|")})`)), | ||
/** | ||
* Put built-in matching rules in order of length so that to preferentially match longer paths. | ||
* Closed #52. | ||
*/ | ||
from: new RegExp(vite.normalizePath(`/${base}/(${Object.keys(inputMap).sort((a, b) => b.length - a.length).join("|")})`)), | ||
to: (ctx) => { | ||
@@ -106,0 +110,0 @@ return vite.normalizePath(`/${base}/${inputMap[ctx.match[1]]}`); |
{ | ||
"name": "vite-plugin-virtual-mpa", | ||
"version": "1.9.2", | ||
"version": "1.9.3", | ||
"license": "MIT", | ||
@@ -49,4 +49,4 @@ "author": "秦旭洋", | ||
"dependencies": { | ||
"@types/connect-history-api-fallback": "^1.5.0", | ||
"@types/html-minifier-terser": "^7.0.0", | ||
"@types/connect-history-api-fallback": "^1.5.2", | ||
"@types/html-minifier-terser": "^7.0.1", | ||
"connect-history-api-fallback": "^2.0.0", | ||
@@ -58,6 +58,6 @@ "ejs": "^3.1.9", | ||
"devDependencies": { | ||
"@types/ejs": "^3.1.2", | ||
"@types/node": "^18.16.3", | ||
"@types/ejs": "^3.1.4", | ||
"@types/node": "^18.18.6", | ||
"typescript": "^4.9.5", | ||
"vite": "^4.3.4", | ||
"vite": "^4.5.0", | ||
"vite-plugin-checker": "^0.5.6", | ||
@@ -64,0 +64,0 @@ "vite-plugin-dts": "^2.3.0", |
Sorry, the diff of this file is not supported yet
57364
745