unplugin-vue-router
Advanced tools
Comparing version 0.5.2 to 0.5.3
import * as esbuild from 'esbuild'; | ||
import { O as Options } from './options-fe7d5846.js'; | ||
import { O as Options } from './options-0c890603.js'; | ||
import 'vue-router'; | ||
@@ -4,0 +4,0 @@ |
@@ -189,4 +189,5 @@ "use strict"; | ||
} | ||
function appendExtensionListToPattern(filePattern, extensions) { | ||
return filePattern + (extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`); | ||
function appendExtensionListToPattern(filePatterns, extensions) { | ||
const extensionPattern = extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`; | ||
return Array.isArray(filePatterns) ? filePatterns.map((filePattern) => `${filePattern}${extensionPattern}`) : `${filePatterns}${extensionPattern}`; | ||
} | ||
@@ -1312,3 +1313,3 @@ | ||
const globalPattern = appendExtensionListToPattern( | ||
options.filePattern, | ||
options.filePatterns, | ||
options.extensions | ||
@@ -1321,4 +1322,4 @@ ); | ||
} | ||
const pattern = folder.filePattern ? appendExtensionListToPattern( | ||
folder.filePattern, | ||
const pattern = folder.filePatterns ? appendExtensionListToPattern( | ||
folder.filePatterns, | ||
// also override the extensions if the folder has a custom extensions | ||
@@ -1482,3 +1483,3 @@ folder.extensions || options.extensions | ||
routesFolder: [{ src: "src/pages" }], | ||
filePattern: "**/*", | ||
filePatterns: "**/*", | ||
routeBlockLang: "json5", | ||
@@ -1485,0 +1486,0 @@ getRouteName: getFileBasedRouteName, |
import * as unplugin from 'unplugin'; | ||
import { R as ResolvedOptions, S as ServerContext, L as LiteralStringUnion, O as Options } from './options-fe7d5846.js'; | ||
export { E as EditableTreeNode, T as TreeNode, d as TreeNodeValueParam, e as TreeNodeValueStatic, c as createPrefixTree, b as createTreeNodeValue, g as getFileBasedRouteName, a as getPascalCaseRouteName } from './options-fe7d5846.js'; | ||
import { R as ResolvedOptions, S as ServerContext, L as LiteralStringUnion, O as Options } from './options-0c890603.js'; | ||
export { E as EditableTreeNode, T as TreeNode, d as TreeNodeValueParam, e as TreeNodeValueStatic, c as createPrefixTree, b as createTreeNodeValue, g as getFileBasedRouteName, a as getPascalCaseRouteName } from './options-0c890603.js'; | ||
import { RouteParamsRaw, RouteParams, RouteMeta, RouteLocationNormalized, RouteRecordName, RouteLocationNormalizedLoaded, RouteQueryAndHash, RouteLocationOptions, RouteLocation, NavigationGuardNext, NavigationFailure, Router, RouteLocationRaw, RouterLinkProps as RouterLinkProps$1 } from 'vue-router'; | ||
@@ -5,0 +5,0 @@ import { Ref, AllowedComponentProps, ComponentCustomProps, VNodeProps, UnwrapRef, VNode, ComputedRef } from 'vue'; |
@@ -217,4 +217,5 @@ "use strict"; | ||
} | ||
function appendExtensionListToPattern(filePattern, extensions) { | ||
return filePattern + (extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`); | ||
function appendExtensionListToPattern(filePatterns, extensions) { | ||
const extensionPattern = extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`; | ||
return Array.isArray(filePatterns) ? filePatterns.map((filePattern) => `${filePattern}${extensionPattern}`) : `${filePatterns}${extensionPattern}`; | ||
} | ||
@@ -1340,3 +1341,3 @@ | ||
const globalPattern = appendExtensionListToPattern( | ||
options.filePattern, | ||
options.filePatterns, | ||
options.extensions | ||
@@ -1349,4 +1350,4 @@ ); | ||
} | ||
const pattern = folder.filePattern ? appendExtensionListToPattern( | ||
folder.filePattern, | ||
const pattern = folder.filePatterns ? appendExtensionListToPattern( | ||
folder.filePatterns, | ||
// also override the extensions if the folder has a custom extensions | ||
@@ -1510,3 +1511,3 @@ folder.extensions || options.extensions | ||
routesFolder: [{ src: "src/pages" }], | ||
filePattern: "**/*", | ||
filePatterns: "**/*", | ||
routeBlockLang: "json5", | ||
@@ -1513,0 +1514,0 @@ getRouteName: getFileBasedRouteName, |
@@ -1,2 +0,2 @@ | ||
export { D as DEFAULT_OPTIONS, O as Options, R as ResolvedOptions, h as RoutesFolder, f as RoutesFolderOption, S as ServerContext, i as _OptionsImportMode, _ as _RoutesFolder, r as resolveOptions } from './options-fe7d5846.js'; | ||
export { D as DEFAULT_OPTIONS, O as Options, R as ResolvedOptions, h as RoutesFolder, f as RoutesFolderOption, S as ServerContext, i as _OptionsImportMode, _ as _RoutesFolder, r as resolveOptions } from './options-0c890603.js'; | ||
import 'vue-router'; |
@@ -64,3 +64,3 @@ "use strict"; | ||
routesFolder: [{ src: "src/pages" }], | ||
filePattern: "**/*", | ||
filePatterns: "**/*", | ||
routeBlockLang: "json5", | ||
@@ -67,0 +67,0 @@ getRouteName: getFileBasedRouteName, |
import * as rollup from 'rollup'; | ||
import { O as Options } from './options-fe7d5846.js'; | ||
import { O as Options } from './options-0c890603.js'; | ||
import 'vue-router'; | ||
@@ -4,0 +4,0 @@ |
@@ -189,4 +189,5 @@ "use strict"; | ||
} | ||
function appendExtensionListToPattern(filePattern, extensions) { | ||
return filePattern + (extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`); | ||
function appendExtensionListToPattern(filePatterns, extensions) { | ||
const extensionPattern = extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`; | ||
return Array.isArray(filePatterns) ? filePatterns.map((filePattern) => `${filePattern}${extensionPattern}`) : `${filePatterns}${extensionPattern}`; | ||
} | ||
@@ -1312,3 +1313,3 @@ | ||
const globalPattern = appendExtensionListToPattern( | ||
options.filePattern, | ||
options.filePatterns, | ||
options.extensions | ||
@@ -1321,4 +1322,4 @@ ); | ||
} | ||
const pattern = folder.filePattern ? appendExtensionListToPattern( | ||
folder.filePattern, | ||
const pattern = folder.filePatterns ? appendExtensionListToPattern( | ||
folder.filePatterns, | ||
// also override the extensions if the folder has a custom extensions | ||
@@ -1482,3 +1483,3 @@ folder.extensions || options.extensions | ||
routesFolder: [{ src: "src/pages" }], | ||
filePattern: "**/*", | ||
filePatterns: "**/*", | ||
routeBlockLang: "json5", | ||
@@ -1485,0 +1486,0 @@ getRouteName: getFileBasedRouteName, |
import { Router, RouteLocationNormalized, RouteRecordRaw } from 'vue-router'; | ||
import { a as DataLoader } from './defineLoader-bde635fd.js'; | ||
export { D as DefineLoaderOptions, d as _defineLoader, s as _stopDataFetchingScope } from './defineLoader-bde635fd.js'; | ||
import { A as Awaitable } from './options-fe7d5846.js'; | ||
import { A as Awaitable } from './options-0c890603.js'; | ||
import 'vue'; | ||
@@ -6,0 +6,0 @@ |
import * as vite from 'vite'; | ||
import { O as Options } from './options-fe7d5846.js'; | ||
import { O as Options } from './options-0c890603.js'; | ||
import 'vue-router'; | ||
@@ -4,0 +4,0 @@ |
@@ -189,4 +189,5 @@ "use strict"; | ||
} | ||
function appendExtensionListToPattern(filePattern, extensions) { | ||
return filePattern + (extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`); | ||
function appendExtensionListToPattern(filePatterns, extensions) { | ||
const extensionPattern = extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`; | ||
return Array.isArray(filePatterns) ? filePatterns.map((filePattern) => `${filePattern}${extensionPattern}`) : `${filePatterns}${extensionPattern}`; | ||
} | ||
@@ -1312,3 +1313,3 @@ | ||
const globalPattern = appendExtensionListToPattern( | ||
options.filePattern, | ||
options.filePatterns, | ||
options.extensions | ||
@@ -1321,4 +1322,4 @@ ); | ||
} | ||
const pattern = folder.filePattern ? appendExtensionListToPattern( | ||
folder.filePattern, | ||
const pattern = folder.filePatterns ? appendExtensionListToPattern( | ||
folder.filePatterns, | ||
// also override the extensions if the folder has a custom extensions | ||
@@ -1482,3 +1483,3 @@ folder.extensions || options.extensions | ||
routesFolder: [{ src: "src/pages" }], | ||
filePattern: "**/*", | ||
filePatterns: "**/*", | ||
routeBlockLang: "json5", | ||
@@ -1485,0 +1486,0 @@ getRouteName: getFileBasedRouteName, |
import * as webpack from 'webpack'; | ||
import { O as Options } from './options-fe7d5846.js'; | ||
import { O as Options } from './options-0c890603.js'; | ||
import 'vue-router'; | ||
@@ -4,0 +4,0 @@ |
@@ -189,4 +189,5 @@ "use strict"; | ||
} | ||
function appendExtensionListToPattern(filePattern, extensions) { | ||
return filePattern + (extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`); | ||
function appendExtensionListToPattern(filePatterns, extensions) { | ||
const extensionPattern = extensions.length === 1 ? extensions[0] : `.{${extensions.map((extension) => extension.replace(".", "")).join(",")}}`; | ||
return Array.isArray(filePatterns) ? filePatterns.map((filePattern) => `${filePattern}${extensionPattern}`) : `${filePatterns}${extensionPattern}`; | ||
} | ||
@@ -1312,3 +1313,3 @@ | ||
const globalPattern = appendExtensionListToPattern( | ||
options.filePattern, | ||
options.filePatterns, | ||
options.extensions | ||
@@ -1321,4 +1322,4 @@ ); | ||
} | ||
const pattern = folder.filePattern ? appendExtensionListToPattern( | ||
folder.filePattern, | ||
const pattern = folder.filePatterns ? appendExtensionListToPattern( | ||
folder.filePatterns, | ||
// also override the extensions if the folder has a custom extensions | ||
@@ -1482,3 +1483,3 @@ folder.extensions || options.extensions | ||
routesFolder: [{ src: "src/pages" }], | ||
filePattern: "**/*", | ||
filePatterns: "**/*", | ||
routeBlockLang: "json5", | ||
@@ -1485,0 +1486,0 @@ getRouteName: getFileBasedRouteName, |
{ | ||
"name": "unplugin-vue-router", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"packageManager": "pnpm@7.28.0", | ||
@@ -122,2 +122,3 @@ "description": "File based typed routing for Vue Router", | ||
"vite": "^4.1.4", | ||
"vite-plugin-vue-markdown": "^0.22.4", | ||
"vitest": "^0.29.1", | ||
@@ -124,0 +125,0 @@ "vue": "^3.2.47", |
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 too big to display
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
1521180
42373
26