UNPKG

vue-router

Version:

> - This is the repository for Vue Router 4 (for Vue 3) > - For Vue Router 3 (for Vue 2) see [vuejs/vue-router](https://github.com/vuejs/vue-router). > To see what versions are currently supported, please refer to the [Security Policy](./packages/router

219 lines 6.61 kB
{ "name": "vue-router", "version": "5.0.3", "homepage": "https://router.vuejs.org", "bugs": { "url": "https://github.com/vuejs/router/issues" }, "license": "MIT", "author": { "name": "Eduardo San Martin Morote", "email": "posva13@gmail.com" }, "repository": { "type": "git", "url": "git+https://github.com/vuejs/router.git" }, "funding": "https://github.com/sponsors/posva", "files": [ "dist", "index.cjs", "README.md", "route.schema.json", "vue-router-auto-resolver.d.mts", "vue-router-auto-routes.d.mts", "vue-router-auto.d.ts", "vue-router.node.mjs", "vetur/attributes.json", "vetur/tags.json" ], "type": "module", "sideEffects": false, "main": "index.cjs", "module": "dist/vue-router.js", "types": "dist/vue-router.d.ts", "typesVersions": { "*": { "vite": [ "./dist/unplugin/vite.d.mts" ], "unplugin": [ "./dist/unplugin/index.d.mts" ], "unplugin/*": [ "./dist/unplugin/*.d.mts" ], "volar/*": [ "./dist/volar/*.d.cts" ] } }, "unpkg": "dist/vue-router.global.js", "jsdelivr": "dist/vue-router.global.js", "exports": { ".": { "types": "./dist/vue-router.d.ts", "node": { "import": { "production": "./vue-router.node.mjs", "development": "./vue-router.node.mjs", "default": "./vue-router.node.mjs" }, "require": { "production": "./dist/vue-router.prod.cjs", "development": "./dist/vue-router.cjs", "default": "./index.cjs" } }, "import": "./dist/vue-router.js", "require": "./index.cjs" }, "./dist/*": "./dist/*", "./vetur/*": "./vetur/*", "./package.json": "./package.json", "./experimental": { "types": "./dist/experimental/index.d.ts", "default": "./dist/experimental/index.js" }, "./experimental/pinia-colada": { "types": "./dist/experimental/pinia-colada.d.ts", "default": "./dist/experimental/pinia-colada.js" }, "./auto-resolver": { "types": "./vue-router-auto-resolver.d.mts" }, "./auto-routes": { "types": "./vue-router-auto-routes.d.mts" }, "./auto": { "types": "./vue-router-auto.d.ts", "node": { "import": { "production": "./vue-router.node.mjs", "development": "./vue-router.node.mjs", "default": "./vue-router.node.mjs" }, "require": { "production": "./dist/vue-router.prod.cjs", "development": "./dist/vue-router.cjs", "default": "./index.cjs" } }, "import": "./dist/vue-router.js", "require": "./index.cjs" }, "./vite": { "types": "./dist/unplugin/vite.d.mts", "import": "./dist/unplugin/vite.mjs", "require": "./dist/unplugin/vite.cjs" }, "./unplugin": { "types": "./dist/unplugin/index.d.mts", "import": "./dist/unplugin/index.mjs", "require": "./dist/unplugin/index.cjs" }, "./unplugin/*": "./dist/unplugin/*", "./volar/sfc-route-blocks": { "types": "./dist/volar/sfc-route-blocks.d.cts", "default": "./dist/volar/sfc-route-blocks.cjs" }, "./volar/sfc-typed-router": { "types": "./dist/volar/sfc-typed-router.d.cts", "default": "./dist/volar/sfc-typed-router.cjs" } }, "dependencies": { "@babel/generator": "^7.28.6", "@vue-macros/common": "^3.1.1", "@vue/devtools-api": "^8.0.6", "ast-walker-scope": "^0.8.3", "chokidar": "^5.0.0", "json5": "^2.2.3", "local-pkg": "^1.1.2", "magic-string": "^0.30.21", "mlly": "^1.8.0", "muggle-string": "^0.4.1", "pathe": "^2.0.3", "picomatch": "^4.0.3", "scule": "^1.3.0", "tinyglobby": "^0.2.15", "unplugin": "^3.0.0", "unplugin-utils": "^0.3.1", "yaml": "^2.8.2" }, "devDependencies": { "@babel/types": "^7.29.0", "@pinia/colada": "^0.21.2", "@playwright/test": "^1.58.1", "@rollup/plugin-commonjs": "^28.0.9", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-replace": "^6.0.3", "@rollup/plugin-terser": "^0.4.4", "@types/babel__generator": "^7.27.0", "@types/nightwatch": "^2.3.32", "@types/picomatch": "^4.0.2", "@typescript/native-preview": "7.0.0-dev.20260106.1", "@vitejs/plugin-vue": "^6.0.4", "@vue/compiler-sfc": "3.6.0-beta.2", "@vue/language-core": "^3.2.1", "@vue/server-renderer": "3.6.0-beta.2", "@vue/test-utils": "^2.4.6", "browserstack-local": "^1.5.8", "chromedriver": "^144.0.1", "connect-history-api-fallback": "^2.0.0", "dotenv": "^17.2.3", "faked-promise": "^2.2.2", "geckodriver": "^6.1.0", "happy-dom": "^20.5.0", "nightwatch": "^3.15.0", "nightwatch-helpers": "^1.2.0", "pinia": "^3.0.4", "rimraf": "^6.1.2", "rollup": "^4.57.1", "rollup-plugin-typescript2": "^0.36.0", "tsdown": "^0.20.1", "tsup": "^8.5.1", "vite": "^7.3.0", "vue": "3.6.0-beta.2" }, "peerDependencies": { "@pinia/colada": ">=0.21.2", "@vue/compiler-sfc": "^3.5.17", "pinia": "^3.0.4", "vue": "^3.5.0" }, "peerDependenciesMeta": { "@vue/compiler-sfc": { "optional": true }, "pinia": { "optional": true }, "@pinia/colada": { "optional": true } }, "vetur": { "tags": "vetur/tags.json", "attributes": "vetur/attributes.json" }, "scripts": { "dev": "vitest --ui", "build": "tsdown", "build:old": "rimraf dist && rollup -c rollup.config.mjs", "build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.ts", "build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.mjs", "build:size": "pnpm run build && rollup -c size-checks/rollup.config.mjs", "dev:e2e": "vite --config e2e/vite.config.mjs", "test:types": "tsc --build tsconfig.json", "test:unit": "vitest --coverage run", "test": "pnpm run '/^(build|test:types)$/' && pnpm run '/^test:(unit|e2e|e2e:hmr)$/'", "test:e2e": "pnpm run test:e2e:headless", "test:e2e:hmr": "pnpm exec playwright test", "test:e2e:headless": "node e2e/runner.mjs --env chrome-headless", "test:e2e:native": "node e2e/runner.mjs --env chrome", "test:e2e:ci": "node e2e/runner.mjs --env chrome-headless --retries 2", "test:e2e:bs": "node e2e/runner.mjs --local -e android5 --tag browserstack", "test:e2e:bs-test": "node e2e/runner.mjs --local --env browserstack.local_chrome --tag browserstack" } }