package.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. {
  2. "name": "vite",
  3. "version": "7.1.4",
  4. "type": "module",
  5. "license": "MIT",
  6. "author": "Evan You",
  7. "description": "Native-ESM powered web dev build tool",
  8. "bin": {
  9. "vite": "bin/vite.js"
  10. },
  11. "keywords": [
  12. "frontend",
  13. "framework",
  14. "hmr",
  15. "dev-server",
  16. "build-tool",
  17. "vite"
  18. ],
  19. "main": "./dist/node/index.js",
  20. "types": "./dist/node/index.d.ts",
  21. "exports": {
  22. ".": "./dist/node/index.js",
  23. "./client": {
  24. "types": "./client.d.ts"
  25. },
  26. "./module-runner": "./dist/node/module-runner.js",
  27. "./dist/client/*": "./dist/client/*",
  28. "./types/*": {
  29. "types": "./types/*"
  30. },
  31. "./types/internal/*": null,
  32. "./package.json": "./package.json"
  33. },
  34. "typesVersions": {
  35. "*": {
  36. "module-runner": [
  37. "dist/node/module-runner.d.ts"
  38. ]
  39. }
  40. },
  41. "imports": {
  42. "#module-sync-enabled": {
  43. "module-sync": "./misc/true.js",
  44. "default": "./misc/false.js"
  45. }
  46. },
  47. "files": [
  48. "bin",
  49. "dist",
  50. "misc/**/*.js",
  51. "client.d.ts",
  52. "index.cjs",
  53. "index.d.cts",
  54. "types"
  55. ],
  56. "engines": {
  57. "node": "^20.19.0 || >=22.12.0"
  58. },
  59. "repository": {
  60. "type": "git",
  61. "url": "git+https://github.com/vitejs/vite.git",
  62. "directory": "packages/vite"
  63. },
  64. "bugs": {
  65. "url": "https://github.com/vitejs/vite/issues"
  66. },
  67. "homepage": "https://vite.dev",
  68. "funding": "https://github.com/vitejs/vite?sponsor=1",
  69. "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
  70. "dependencies": {
  71. "esbuild": "^0.25.0",
  72. "fdir": "^6.5.0",
  73. "picomatch": "^4.0.3",
  74. "postcss": "^8.5.6",
  75. "rollup": "^4.43.0",
  76. "tinyglobby": "^0.2.14"
  77. },
  78. "optionalDependencies": {
  79. "fsevents": "~2.3.3"
  80. },
  81. "devDependencies": {
  82. "@babel/parser": "^7.28.3",
  83. "@jridgewell/remapping": "^2.3.5",
  84. "@jridgewell/trace-mapping": "^0.3.30",
  85. "@oxc-project/types": "0.81.0",
  86. "@polka/compression": "^1.0.0-next.25",
  87. "@rolldown/pluginutils": "^1.0.0-beta.34",
  88. "@rollup/plugin-alias": "^5.1.1",
  89. "@rollup/plugin-commonjs": "^28.0.6",
  90. "@rollup/plugin-dynamic-import-vars": "2.1.4",
  91. "@rollup/pluginutils": "^5.2.0",
  92. "@types/escape-html": "^1.0.4",
  93. "@types/pnpapi": "^0.0.5",
  94. "artichokie": "^0.4.0",
  95. "baseline-browser-mapping": "^2.7.2",
  96. "cac": "^6.7.14",
  97. "chokidar": "^3.6.0",
  98. "connect": "^3.7.0",
  99. "convert-source-map": "^2.0.0",
  100. "cors": "^2.8.5",
  101. "cross-spawn": "^7.0.6",
  102. "debug": "^4.4.1",
  103. "dep-types": "link:./src/types",
  104. "dotenv": "^17.2.1",
  105. "dotenv-expand": "^12.0.2",
  106. "es-module-lexer": "^1.7.0",
  107. "escape-html": "^1.0.3",
  108. "estree-walker": "^3.0.3",
  109. "etag": "^1.8.1",
  110. "host-validation-middleware": "^0.1.1",
  111. "http-proxy-3": "^1.21.0",
  112. "launch-editor-middleware": "^2.11.1",
  113. "lightningcss": "^1.30.1",
  114. "magic-string": "^0.30.18",
  115. "mlly": "^1.8.0",
  116. "mrmime": "^2.0.1",
  117. "nanoid": "^5.1.5",
  118. "open": "^10.2.0",
  119. "parse5": "^8.0.0",
  120. "pathe": "^2.0.3",
  121. "periscopic": "^4.0.2",
  122. "picocolors": "^1.1.1",
  123. "postcss-import": "^16.1.1",
  124. "postcss-load-config": "^6.0.1",
  125. "postcss-modules": "^6.0.1",
  126. "premove": "^4.0.0",
  127. "resolve.exports": "^2.0.3",
  128. "rolldown": "^1.0.0-beta.32",
  129. "rolldown-plugin-dts": "^0.15.6",
  130. "rollup-plugin-license": "^3.6.0",
  131. "sass": "^1.91.0",
  132. "sass-embedded": "^1.91.0",
  133. "sirv": "^3.0.1",
  134. "strip-literal": "^3.0.0",
  135. "terser": "^5.43.1",
  136. "tsconfck": "^3.1.6",
  137. "types": "link:./types",
  138. "ufo": "^1.6.1",
  139. "ws": "^8.18.3"
  140. },
  141. "peerDependencies": {
  142. "@types/node": "^20.19.0 || >=22.12.0",
  143. "jiti": ">=1.21.0",
  144. "less": "^4.0.0",
  145. "lightningcss": "^1.21.0",
  146. "sass": "^1.70.0",
  147. "sass-embedded": "^1.70.0",
  148. "stylus": ">=0.54.8",
  149. "sugarss": "^5.0.0",
  150. "terser": "^5.16.0",
  151. "tsx": "^4.8.1",
  152. "yaml": "^2.4.2"
  153. },
  154. "peerDependenciesMeta": {
  155. "@types/node": {
  156. "optional": true
  157. },
  158. "jiti": {
  159. "optional": true
  160. },
  161. "sass": {
  162. "optional": true
  163. },
  164. "sass-embedded": {
  165. "optional": true
  166. },
  167. "stylus": {
  168. "optional": true
  169. },
  170. "less": {
  171. "optional": true
  172. },
  173. "sugarss": {
  174. "optional": true
  175. },
  176. "lightningcss": {
  177. "optional": true
  178. },
  179. "terser": {
  180. "optional": true
  181. },
  182. "tsx": {
  183. "optional": true
  184. },
  185. "yaml": {
  186. "optional": true
  187. }
  188. },
  189. "scripts": {
  190. "dev": "premove dist && pnpm build-bundle -w",
  191. "build": "premove dist && pnpm build-bundle && pnpm build-types",
  192. "build-bundle": "rolldown --config rolldown.config.ts",
  193. "build-types": "pnpm build-types-roll && pnpm build-types-check",
  194. "build-types-roll": "rolldown --config rolldown.dts.config.ts",
  195. "build-types-check": "tsc --project tsconfig.check.json",
  196. "typecheck": "tsc && tsc -p src/node",
  197. "lint": "eslint --cache --ext .ts src/**",
  198. "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
  199. "generate-target": "tsx scripts/generateTarget.ts"
  200. }
  201. }