unplugin-vue-router
Advanced tools
Comparing version
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
@@ -403,5 +403,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -777,2 +779,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -797,2 +802,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -799,0 +810,0 @@ }, |
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
@@ -380,5 +380,7 @@ var __create = Object.create; | ||
var VIRTUAL_PREFIX = "virtual:"; | ||
var ROUTE_BLOCK_ID = `${VIRTUAL_PREFIX}/@vue-router/route-block`; | ||
function getVirtualId(id) { | ||
return id.startsWith(VIRTUAL_PREFIX) ? id.slice(VIRTUAL_PREFIX.length) : null; | ||
} | ||
var routeBlockQueryRE = /\?vue&type=route/; | ||
function asVirtualId(id) { | ||
@@ -754,2 +756,5 @@ return VIRTUAL_PREFIX + id; | ||
} | ||
if (routeBlockQueryRE.test(id)) { | ||
return ROUTE_BLOCK_ID; | ||
} | ||
return null; | ||
@@ -774,2 +779,8 @@ }, | ||
} | ||
if (id === ROUTE_BLOCK_ID) { | ||
return { | ||
code: `export default {}`, | ||
map: null | ||
}; | ||
} | ||
return null; | ||
@@ -776,0 +787,0 @@ }, |
{ | ||
"name": "unplugin-vue-router", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"packageManager": "pnpm@7.5.0", | ||
@@ -5,0 +5,0 @@ "description": "File based typed routing for Vue Router", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
196504
0.98%5064
1.32%